From aa94fb1d9cbe572131015ca9185820e239c5b71a Mon Sep 17 00:00:00 2001 From: SJLEE Date: Wed, 23 Oct 2024 16:53:44 +0900 Subject: [PATCH 1/2] Correct typo from 'Explict' to 'Explicit' See gh-948 --- .../restdocs/payload/RequestFieldsSnippetTests.java | 5 +++-- .../restdocs/payload/ResponseFieldsSnippetTests.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/RequestFieldsSnippetTests.java b/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/RequestFieldsSnippetTests.java index 4d8867e3..105a7ef9 100644 --- a/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/RequestFieldsSnippetTests.java +++ b/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/RequestFieldsSnippetTests.java @@ -44,6 +44,7 @@ * Tests for {@link RequestFieldsSnippet}. * * @author Andy Wilkinson + * @author Sungjun Lee */ public class RequestFieldsSnippetTests extends AbstractSnippetTests { @@ -239,7 +240,7 @@ 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()) @@ -247,7 +248,7 @@ public void fieldWithExplictExactlyMatchingType() throws IOException { } @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()) diff --git a/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/ResponseFieldsSnippetTests.java b/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/ResponseFieldsSnippetTests.java index d8545ea4..3aad2927 100644 --- a/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/ResponseFieldsSnippetTests.java +++ b/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/ResponseFieldsSnippetTests.java @@ -43,6 +43,7 @@ * Tests for {@link ResponseFieldsSnippet}. * * @author Andy Wilkinson + * @author Sungjun Lee */ public class ResponseFieldsSnippetTests extends AbstractSnippetTests { @@ -224,7 +225,7 @@ 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()) @@ -232,7 +233,7 @@ public void fieldWithExplictExactlyMatchingType() throws IOException { } @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()) From ba89d685a4348bc07fdff53c2297acfd839b2ed9 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 23 Oct 2024 11:37:09 +0100 Subject: [PATCH 2/2] Polish "Correct typo from 'Explict' to 'Explicit'" See gh-948 --- .../restdocs/payload/RequestFieldsSnippetTests.java | 2 +- .../restdocs/payload/ResponseFieldsSnippetTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/RequestFieldsSnippetTests.java b/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/RequestFieldsSnippetTests.java index 105a7ef9..bb6ff7b4 100644 --- a/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/RequestFieldsSnippetTests.java +++ b/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/RequestFieldsSnippetTests.java @@ -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. diff --git a/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/ResponseFieldsSnippetTests.java b/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/ResponseFieldsSnippetTests.java index 3aad2927..8372ae5e 100644 --- a/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/ResponseFieldsSnippetTests.java +++ b/spring-restdocs-core/src/test/java/org/springframework/restdocs/payload/ResponseFieldsSnippetTests.java @@ -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.