Skip to content

Commit 690371b

Browse files
authored
Merge pull request #948 from LeeSJ0109/fix-typo
Closes gh-948
2 parents 840e055 + ba89d68 commit 690371b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/RequestFieldsSnippetTests.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2023 the original author or authors.
2+
* Copyright 2014-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -44,6 +44,7 @@
4444
* Tests for {@link RequestFieldsSnippet}.
4545
*
4646
* @author Andy Wilkinson
47+
* @author Sungjun Lee
4748
*/
4849
public class RequestFieldsSnippetTests extends AbstractSnippetTests {
4950

@@ -239,15 +240,15 @@ public void requestFieldsWithCustomDescriptorAttributes() throws IOException {
239240
}
240241

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

249250
@Test
250-
public void fieldWithExplictVariesType() throws IOException {
251+
public void fieldWithExplicitVariesType() throws IOException {
251252
new RequestFieldsSnippet(Arrays.asList(fieldWithPath("a").description("one").type(JsonFieldType.VARIES)))
252253
.document(this.operationBuilder.request("http://localhost").content("{\"a\": 5 }").build());
253254
assertThat(this.generatedSnippets.requestFields())

spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/ResponseFieldsSnippetTests.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2023 the original author or authors.
2+
* Copyright 2014-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -43,6 +43,7 @@
4343
* Tests for {@link ResponseFieldsSnippet}.
4444
*
4545
* @author Andy Wilkinson
46+
* @author Sungjun Lee
4647
*/
4748
public class ResponseFieldsSnippetTests extends AbstractSnippetTests {
4849

@@ -224,15 +225,15 @@ public void responseFieldsWithCustomDescriptorAttributes() throws IOException {
224225
}
225226

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

234235
@Test
235-
public void fieldWithExplictVariesType() throws IOException {
236+
public void fieldWithExplicitVariesType() throws IOException {
236237
new ResponseFieldsSnippet(Arrays.asList(fieldWithPath("a").description("one").type(JsonFieldType.VARIES)))
237238
.document(this.operationBuilder.response().content("{\"a\": 5 }").build());
238239
assertThat(this.generatedSnippets.responseFields())

0 commit comments

Comments
 (0)