From 07a6f2675535b9fe4938deb620e110cc25622f37 Mon Sep 17 00:00:00 2001 From: izeye Date: Wed, 18 May 2022 19:46:12 +0900 Subject: [PATCH] Polish See gh-808 --- .../com/example/mockmvc/ExampleApplicationJUnit5Tests.java | 6 +++--- .../example/restassured/ExampleApplicationJUnit5Tests.java | 6 +++--- .../webtestclient/ExampleApplicationJUnit5Tests.java | 6 +++--- .../restdocs/mockmvc/RestDocumentationRequestBuilders.java | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/src/test/java/com/example/mockmvc/ExampleApplicationJUnit5Tests.java b/docs/src/test/java/com/example/mockmvc/ExampleApplicationJUnit5Tests.java index a2e6ccc6..2f9d3155 100644 --- a/docs/src/test/java/com/example/mockmvc/ExampleApplicationJUnit5Tests.java +++ b/docs/src/test/java/com/example/mockmvc/ExampleApplicationJUnit5Tests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2021 the original author or authors. + * Copyright 2014-2022 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. @@ -28,14 +28,14 @@ import org.springframework.web.context.WebApplicationContext; import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.documentationConfiguration; @ExtendWith(RestDocumentationExtension.class) -public class ExampleApplicationJUnit5Tests { +class ExampleApplicationJUnit5Tests { @SuppressWarnings("unused") // tag::setup[] private MockMvc mockMvc; @BeforeEach - public void setUp(WebApplicationContext webApplicationContext, RestDocumentationContextProvider restDocumentation) { + void setUp(WebApplicationContext webApplicationContext, RestDocumentationContextProvider restDocumentation) { this.mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext) .apply(documentationConfiguration(restDocumentation)) // <1> .build(); diff --git a/docs/src/test/java/com/example/restassured/ExampleApplicationJUnit5Tests.java b/docs/src/test/java/com/example/restassured/ExampleApplicationJUnit5Tests.java index 275e591e..64fbd42d 100644 --- a/docs/src/test/java/com/example/restassured/ExampleApplicationJUnit5Tests.java +++ b/docs/src/test/java/com/example/restassured/ExampleApplicationJUnit5Tests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2021 the original author or authors. + * Copyright 2014-2022 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. @@ -27,14 +27,14 @@ import org.springframework.restdocs.RestDocumentationExtension; import static org.springframework.restdocs.restassured3.RestAssuredRestDocumentation.documentationConfiguration; @ExtendWith(RestDocumentationExtension.class) -public class ExampleApplicationJUnit5Tests { +class ExampleApplicationJUnit5Tests { @SuppressWarnings("unused") // tag::setup[] private RequestSpecification spec; @BeforeEach - public void setUp(RestDocumentationContextProvider restDocumentation) { + void setUp(RestDocumentationContextProvider restDocumentation) { this.spec = new RequestSpecBuilder().addFilter(documentationConfiguration(restDocumentation)) // <1> .build(); } diff --git a/docs/src/test/java/com/example/webtestclient/ExampleApplicationJUnit5Tests.java b/docs/src/test/java/com/example/webtestclient/ExampleApplicationJUnit5Tests.java index 10379ab4..bf4e6df1 100644 --- a/docs/src/test/java/com/example/webtestclient/ExampleApplicationJUnit5Tests.java +++ b/docs/src/test/java/com/example/webtestclient/ExampleApplicationJUnit5Tests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2021 the original author or authors. + * Copyright 2014-2022 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. @@ -27,14 +27,14 @@ import org.springframework.test.web.reactive.server.WebTestClient; import static org.springframework.restdocs.webtestclient.WebTestClientRestDocumentation.documentationConfiguration; @ExtendWith(RestDocumentationExtension.class) -public class ExampleApplicationJUnit5Tests { +class ExampleApplicationJUnit5Tests { @SuppressWarnings("unused") // tag::setup[] private WebTestClient webTestClient; @BeforeEach - public void setUp(ApplicationContext applicationContext, RestDocumentationContextProvider restDocumentation) { + void setUp(ApplicationContext applicationContext, RestDocumentationContextProvider restDocumentation) { this.webTestClient = WebTestClient.bindToApplicationContext(applicationContext).configureClient() .filter(documentationConfiguration(restDocumentation)) // <1> .build(); diff --git a/spring-restdocs-mockmvc/src/main/java/org/springframework/restdocs/mockmvc/RestDocumentationRequestBuilders.java b/spring-restdocs-mockmvc/src/main/java/org/springframework/restdocs/mockmvc/RestDocumentationRequestBuilders.java index 9c305139..9714f55d 100644 --- a/spring-restdocs-mockmvc/src/main/java/org/springframework/restdocs/mockmvc/RestDocumentationRequestBuilders.java +++ b/spring-restdocs-mockmvc/src/main/java/org/springframework/restdocs/mockmvc/RestDocumentationRequestBuilders.java @@ -255,7 +255,7 @@ public abstract class RestDocumentationRequestBuilders { /** * Create a {@link MockMultipartHttpServletRequestBuilder} for a multipart request. * @param uri the URL - * @return the builder for the file upload request + * @return the builder for the multipart request * @since 2.0.6 */ public static MockMultipartHttpServletRequestBuilder multipart(URI uri) {