File tree 4 files changed +10
-10
lines changed
docs/src/test/java/com/example
spring-restdocs-mockmvc/src/main/java/org/springframework/restdocs/mockmvc
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2021 the original author or authors.
2
+ * Copyright 2014-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
28
28
import static org .springframework .restdocs .mockmvc .MockMvcRestDocumentation .documentationConfiguration ;
29
29
30
30
@ ExtendWith (RestDocumentationExtension .class )
31
- public class ExampleApplicationJUnit5Tests {
31
+ class ExampleApplicationJUnit5Tests {
32
32
33
33
@ SuppressWarnings ("unused" )
34
34
// tag::setup[]
35
35
private MockMvc mockMvc ;
36
36
37
37
@ BeforeEach
38
- public void setUp (WebApplicationContext webApplicationContext , RestDocumentationContextProvider restDocumentation ) {
38
+ void setUp (WebApplicationContext webApplicationContext , RestDocumentationContextProvider restDocumentation ) {
39
39
this .mockMvc = MockMvcBuilders .webAppContextSetup (webApplicationContext )
40
40
.apply (documentationConfiguration (restDocumentation )) // <1>
41
41
.build ();
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2021 the original author or authors.
2
+ * Copyright 2014-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
27
27
import static org .springframework .restdocs .restassured3 .RestAssuredRestDocumentation .documentationConfiguration ;
28
28
29
29
@ ExtendWith (RestDocumentationExtension .class )
30
- public class ExampleApplicationJUnit5Tests {
30
+ class ExampleApplicationJUnit5Tests {
31
31
32
32
@ SuppressWarnings ("unused" )
33
33
// tag::setup[]
34
34
private RequestSpecification spec ;
35
35
36
36
@ BeforeEach
37
- public void setUp (RestDocumentationContextProvider restDocumentation ) {
37
+ void setUp (RestDocumentationContextProvider restDocumentation ) {
38
38
this .spec = new RequestSpecBuilder ().addFilter (documentationConfiguration (restDocumentation )) // <1>
39
39
.build ();
40
40
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2021 the original author or authors.
2
+ * Copyright 2014-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
27
27
import static org .springframework .restdocs .webtestclient .WebTestClientRestDocumentation .documentationConfiguration ;
28
28
29
29
@ ExtendWith (RestDocumentationExtension .class )
30
- public class ExampleApplicationJUnit5Tests {
30
+ class ExampleApplicationJUnit5Tests {
31
31
32
32
@ SuppressWarnings ("unused" )
33
33
// tag::setup[]
34
34
private WebTestClient webTestClient ;
35
35
36
36
@ BeforeEach
37
- public void setUp (ApplicationContext applicationContext , RestDocumentationContextProvider restDocumentation ) {
37
+ void setUp (ApplicationContext applicationContext , RestDocumentationContextProvider restDocumentation ) {
38
38
this .webTestClient = WebTestClient .bindToApplicationContext (applicationContext ).configureClient ()
39
39
.filter (documentationConfiguration (restDocumentation )) // <1>
40
40
.build ();
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ public static MockMultipartHttpServletRequestBuilder multipart(String urlTemplat
255
255
/**
256
256
* Create a {@link MockMultipartHttpServletRequestBuilder} for a multipart request.
257
257
* @param uri the URL
258
- * @return the builder for the file upload request
258
+ * @return the builder for the multipart request
259
259
* @since 2.0.6
260
260
*/
261
261
public static MockMultipartHttpServletRequestBuilder multipart (URI uri ) {
You can’t perform that action at this time.
0 commit comments