File tree 1 file changed +2
-4
lines changed
spring-restdocs-core/src/test/java/org/springframework/restdocs/request 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,7 @@ public void allUndocumentedPathParametersCanBeIgnored() throws IOException {
87
87
public void missingOptionalPathParameter () throws IOException {
88
88
this .snippets .expectPathParameters ()
89
89
.withContents (tableWithTitleAndHeader (
90
- this .templateFormat == TemplateFormats .asciidoctor () ? "+/{a}+"
91
- : "`/{a}`" ,
90
+ getTitle ("/{a}" ),
92
91
"Parameter" , "Description" ).row ("`a`" , "one" ).row ("`b`" , "two" ));
93
92
new PathParametersSnippet (Arrays .asList (parameterWithName ("a" ).description ("one" ),
94
93
parameterWithName ("b" ).description ("two" ).optional ()))
@@ -101,8 +100,7 @@ public void missingOptionalPathParameter() throws IOException {
101
100
public void presentOptionalPathParameter () throws IOException {
102
101
this .snippets .expectPathParameters ()
103
102
.withContents (tableWithTitleAndHeader (
104
- this .templateFormat == TemplateFormats .asciidoctor () ? "+/{a}+"
105
- : "`/{a}`" ,
103
+ getTitle ("/{a}" ),
106
104
"Parameter" , "Description" ).row ("`a`" , "one" ));
107
105
new PathParametersSnippet (
108
106
Arrays .asList (parameterWithName ("a" ).description ("one" ).optional ()))
You can’t perform that action at this time.
0 commit comments