You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-test/src/main/java/org/springframework/test/web/servlet/request/MockMultipartHttpServletRequestBuilder.java
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2021 the original author or authors.
2
+
* Copyright 2002-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.
@@ -69,19 +69,25 @@ public class MockMultipartHttpServletRequestBuilder extends MockHttpServletReque
69
69
}
70
70
71
71
/**
72
-
* Package-private constructor. Use static factory methods in
73
-
* {@link MockMvcRequestBuilders}.
74
-
* <p>For other ways to initialize a {@code MockMultipartHttpServletRequest},
75
-
* see {@link #with(RequestPostProcessor)} and the
76
-
* {@link RequestPostProcessor} extension point.
77
-
* @param uri the URL
72
+
* Variant of {@link #MockMultipartHttpServletRequestBuilder(String, Object...)}
73
+
* with a {@link URI}.
78
74
* @since 4.0.3
79
75
*/
80
76
MockMultipartHttpServletRequestBuilder(URIuri) {
81
77
super(HttpMethod.POST, uri);
82
78
super.contentType(MediaType.MULTIPART_FORM_DATA);
83
79
}
84
80
81
+
/**
82
+
* Variant of {@link #MockMultipartHttpServletRequestBuilder(String, Object...)}
Copy file name to clipboardExpand all lines: spring-test/src/test/java/org/springframework/test/web/servlet/samples/client/standalone/MultipartControllerTests.java
+31-11Lines changed: 31 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2020 the original author or authors.
2
+
* Copyright 2002-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.
0 commit comments