Skip to content

Commit

Permalink
Correct typo from 'Explict' to 'Explicit'
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeSJ0109 committed Oct 23, 2024
1 parent 840e055 commit f2e4d20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
* Tests for {@link RequestFieldsSnippet}.
*
* @author Andy Wilkinson
* @author Sungjun Lee
*/
public class RequestFieldsSnippetTests extends AbstractSnippetTests {

Expand Down Expand Up @@ -239,15 +240,15 @@ public void requestFieldsWithCustomDescriptorAttributes() throws IOException {
}

@Test
public void fieldWithExplictExactlyMatchingType() throws IOException {
public void fieldWithExplicitExactlyMatchingType() throws IOException {
new RequestFieldsSnippet(Arrays.asList(fieldWithPath("a").description("one").type(JsonFieldType.NUMBER)))
.document(this.operationBuilder.request("http://localhost").content("{\"a\": 5 }").build());
assertThat(this.generatedSnippets.requestFields())
.is(tableWithHeader("Path", "Type", "Description").row("`a`", "`Number`", "one"));
}

@Test
public void fieldWithExplictVariesType() throws IOException {
public void fieldWithExplicitVariesType() throws IOException {
new RequestFieldsSnippet(Arrays.asList(fieldWithPath("a").description("one").type(JsonFieldType.VARIES)))
.document(this.operationBuilder.request("http://localhost").content("{\"a\": 5 }").build());
assertThat(this.generatedSnippets.requestFields())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
* Tests for {@link ResponseFieldsSnippet}.
*
* @author Andy Wilkinson
* @author Sungjun Lee
*/
public class ResponseFieldsSnippetTests extends AbstractSnippetTests {

Expand Down Expand Up @@ -224,15 +225,15 @@ public void responseFieldsWithCustomDescriptorAttributes() throws IOException {
}

@Test
public void fieldWithExplictExactlyMatchingType() throws IOException {
public void fieldWithExplicitExactlyMatchingType() throws IOException {
new ResponseFieldsSnippet(Arrays.asList(fieldWithPath("a").description("one").type(JsonFieldType.NUMBER)))
.document(this.operationBuilder.response().content("{\"a\": 5 }").build());
assertThat(this.generatedSnippets.responseFields())
.is(tableWithHeader("Path", "Type", "Description").row("`a`", "`Number`", "one"));
}

@Test
public void fieldWithExplictVariesType() throws IOException {
public void fieldWithExplicitVariesType() throws IOException {
new ResponseFieldsSnippet(Arrays.asList(fieldWithPath("a").description("one").type(JsonFieldType.VARIES)))
.document(this.operationBuilder.response().content("{\"a\": 5 }").build());
assertThat(this.generatedSnippets.responseFields())
Expand Down

0 comments on commit f2e4d20

Please sign in to comment.