Skip to content

Commit 4e75e00

Browse files
committed
Polish
1 parent 6bb90d6 commit 4e75e00

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spring-restdocs-core/src/test/java/org/springframework/restdocs/request/PathParametersSnippetTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ public void allUndocumentedPathParametersCanBeIgnored() throws IOException {
8787
public void missingOptionalPathParameter() throws IOException {
8888
this.snippets.expectPathParameters()
8989
.withContents(tableWithTitleAndHeader(
90-
this.templateFormat == TemplateFormats.asciidoctor() ? "+/{a}+"
91-
: "`/{a}`",
90+
getTitle("/{a}"),
9291
"Parameter", "Description").row("`a`", "one").row("`b`", "two"));
9392
new PathParametersSnippet(Arrays.asList(parameterWithName("a").description("one"),
9493
parameterWithName("b").description("two").optional()))
@@ -101,8 +100,7 @@ public void missingOptionalPathParameter() throws IOException {
101100
public void presentOptionalPathParameter() throws IOException {
102101
this.snippets.expectPathParameters()
103102
.withContents(tableWithTitleAndHeader(
104-
this.templateFormat == TemplateFormats.asciidoctor() ? "+/{a}+"
105-
: "`/{a}`",
103+
getTitle("/{a}"),
106104
"Parameter", "Description").row("`a`", "one"));
107105
new PathParametersSnippet(
108106
Arrays.asList(parameterWithName("a").description("one").optional()))

0 commit comments

Comments
 (0)