Correct typo from 'Explict' to 'Explicit'

See gh-948
This commit is contained in:
SJLEE
2024-10-23 16:53:44 +09:00
committed by Andy Wilkinson
parent 840e05561a
commit aa94fb1d9c
2 changed files with 6 additions and 4 deletions

View File

@@ -44,6 +44,7 @@ import static org.springframework.restdocs.snippet.Attributes.key;
* Tests for {@link RequestFieldsSnippet}.
*
* @author Andy Wilkinson
* @author Sungjun Lee
*/
public class RequestFieldsSnippetTests extends AbstractSnippetTests {
@@ -239,7 +240,7 @@ public class RequestFieldsSnippetTests extends AbstractSnippetTests {
}
@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())
@@ -247,7 +248,7 @@ public class RequestFieldsSnippetTests extends AbstractSnippetTests {
}
@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())

View File

@@ -43,6 +43,7 @@ import static org.springframework.restdocs.snippet.Attributes.key;
* Tests for {@link ResponseFieldsSnippet}.
*
* @author Andy Wilkinson
* @author Sungjun Lee
*/
public class ResponseFieldsSnippetTests extends AbstractSnippetTests {
@@ -224,7 +225,7 @@ public class ResponseFieldsSnippetTests extends AbstractSnippetTests {
}
@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())
@@ -232,7 +233,7 @@ public class ResponseFieldsSnippetTests extends AbstractSnippetTests {
}
@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())