Merge pull request #948 from LeeSJ0109/fix-typo

Closes gh-948
This commit is contained in:
Andy Wilkinson
2024-10-23 11:39:59 +01:00
committed by GitHub
2 changed files with 8 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2023 the original author or authors.
* Copyright 2014-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -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

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2023 the original author or authors.
* Copyright 2014-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -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())