@@ -85,10 +85,9 @@ public void allUndocumentedPathParametersCanBeIgnored() throws IOException {
85
85
86
86
@ Test
87
87
public void missingOptionalPathParameter () throws IOException {
88
- this .snippets .expectPathParameters ()
89
- .withContents (tableWithTitleAndHeader (
90
- getTitle ("/{a}" ),
91
- "Parameter" , "Description" ).row ("`a`" , "one" ).row ("`b`" , "two" ));
88
+ this .snippets .expectPathParameters ().withContents (
89
+ tableWithTitleAndHeader (getTitle ("/{a}" ), "Parameter" , "Description" )
90
+ .row ("`a`" , "one" ).row ("`b`" , "two" ));
92
91
new PathParametersSnippet (Arrays .asList (parameterWithName ("a" ).description ("one" ),
93
92
parameterWithName ("b" ).description ("two" ).optional ()))
94
93
.document (this .operationBuilder .attribute (
@@ -98,10 +97,9 @@ public void missingOptionalPathParameter() throws IOException {
98
97
99
98
@ Test
100
99
public void presentOptionalPathParameter () throws IOException {
101
- this .snippets .expectPathParameters ()
102
- .withContents (tableWithTitleAndHeader (
103
- getTitle ("/{a}" ),
104
- "Parameter" , "Description" ).row ("`a`" , "one" ));
100
+ this .snippets .expectPathParameters ().withContents (
101
+ tableWithTitleAndHeader (getTitle ("/{a}" ), "Parameter" , "Description" )
102
+ .row ("`a`" , "one" ));
105
103
new PathParametersSnippet (
106
104
Arrays .asList (parameterWithName ("a" ).description ("one" ).optional ()))
107
105
.document (this .operationBuilder .attribute (
0 commit comments