Skip to content

Commit f324611

Browse files
committed
Merge pull request #808 from izeye
* gh-808: Polish Closes gh-808
2 parents 44f7c6b + 07a6f26 commit f324611

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

docs/src/test/java/com/example/mockmvc/ExampleApplicationJUnit5Tests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2021 the original author or authors.
2+
* Copyright 2014-2022 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.
@@ -28,14 +28,14 @@
2828
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.documentationConfiguration;
2929

3030
@ExtendWith(RestDocumentationExtension.class)
31-
public class ExampleApplicationJUnit5Tests {
31+
class ExampleApplicationJUnit5Tests {
3232

3333
@SuppressWarnings("unused")
3434
// tag::setup[]
3535
private MockMvc mockMvc;
3636

3737
@BeforeEach
38-
public void setUp(WebApplicationContext webApplicationContext, RestDocumentationContextProvider restDocumentation) {
38+
void setUp(WebApplicationContext webApplicationContext, RestDocumentationContextProvider restDocumentation) {
3939
this.mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext)
4040
.apply(documentationConfiguration(restDocumentation)) // <1>
4141
.build();

docs/src/test/java/com/example/restassured/ExampleApplicationJUnit5Tests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2021 the original author or authors.
2+
* Copyright 2014-2022 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.
@@ -27,14 +27,14 @@
2727
import static org.springframework.restdocs.restassured3.RestAssuredRestDocumentation.documentationConfiguration;
2828

2929
@ExtendWith(RestDocumentationExtension.class)
30-
public class ExampleApplicationJUnit5Tests {
30+
class ExampleApplicationJUnit5Tests {
3131

3232
@SuppressWarnings("unused")
3333
// tag::setup[]
3434
private RequestSpecification spec;
3535

3636
@BeforeEach
37-
public void setUp(RestDocumentationContextProvider restDocumentation) {
37+
void setUp(RestDocumentationContextProvider restDocumentation) {
3838
this.spec = new RequestSpecBuilder().addFilter(documentationConfiguration(restDocumentation)) // <1>
3939
.build();
4040
}

docs/src/test/java/com/example/webtestclient/ExampleApplicationJUnit5Tests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2021 the original author or authors.
2+
* Copyright 2014-2022 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.
@@ -27,14 +27,14 @@
2727
import static org.springframework.restdocs.webtestclient.WebTestClientRestDocumentation.documentationConfiguration;
2828

2929
@ExtendWith(RestDocumentationExtension.class)
30-
public class ExampleApplicationJUnit5Tests {
30+
class ExampleApplicationJUnit5Tests {
3131

3232
@SuppressWarnings("unused")
3333
// tag::setup[]
3434
private WebTestClient webTestClient;
3535

3636
@BeforeEach
37-
public void setUp(ApplicationContext applicationContext, RestDocumentationContextProvider restDocumentation) {
37+
void setUp(ApplicationContext applicationContext, RestDocumentationContextProvider restDocumentation) {
3838
this.webTestClient = WebTestClient.bindToApplicationContext(applicationContext).configureClient()
3939
.filter(documentationConfiguration(restDocumentation)) // <1>
4040
.build();

spring-restdocs-mockmvc/src/main/java/org/springframework/restdocs/mockmvc/RestDocumentationRequestBuilders.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public static MockMultipartHttpServletRequestBuilder multipart(String urlTemplat
255255
/**
256256
* Create a {@link MockMultipartHttpServletRequestBuilder} for a multipart request.
257257
* @param uri the URL
258-
* @return the builder for the file upload request
258+
* @return the builder for the multipart request
259259
* @since 2.0.6
260260
*/
261261
public static MockMultipartHttpServletRequestBuilder multipart(URI uri) {

0 commit comments

Comments
 (0)