File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
org.springframework.test/src/main/java/org/springframework/mock/web Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 46
46
47
47
/**
48
48
* Mock implementation of the {@link javax.servlet.http.HttpServletRequest}
49
- * interface. Supports the Servlet 2.4 API level.
49
+ * interface. Supports the Servlet 2.5 API level.
50
50
*
51
51
* <p>Used for testing the web framework; also useful for testing
52
52
* application controllers.
@@ -447,7 +447,7 @@ public String[] getParameterValues(String name) {
447
447
return this .parameters .get (name );
448
448
}
449
449
450
- public Map getParameterMap () {
450
+ public Map < String , String []> getParameterMap () {
451
451
return Collections .unmodifiableMap (this .parameters );
452
452
}
453
453
Original file line number Diff line number Diff line change 41
41
42
42
/**
43
43
* Mock implementation of the {@link javax.servlet.http.HttpServletResponse}
44
- * interface. Supports the Servlet 2.4 API level.
44
+ * interface. Supports the Servlet 2.5 API level.
45
45
*
46
46
* <p>Used for testing the web framework; also useful for testing
47
47
* application controllers.
Original file line number Diff line number Diff line change 34
34
import javax .servlet .jsp .PageContext ;
35
35
import javax .servlet .jsp .el .ExpressionEvaluator ;
36
36
import javax .servlet .jsp .el .VariableResolver ;
37
+ import javax .el .ELContext ;
37
38
38
39
import org .springframework .util .Assert ;
39
40
@@ -277,8 +278,12 @@ public ExpressionEvaluator getExpressionEvaluator() {
277
278
return new MockExpressionEvaluator (this );
278
279
}
279
280
281
+ public ELContext getELContext () {
282
+ throw new UnsupportedOperationException ("getELContext" );
283
+ }
284
+
280
285
public VariableResolver getVariableResolver () {
281
- return null ;
286
+ throw new UnsupportedOperationException ( "getVariableResolver" ) ;
282
287
}
283
288
284
289
public HttpSession getSession () {
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ public String getMimeType(String filePath) {
188
188
return MimeTypeResolver .getMimeType (filePath );
189
189
}
190
190
191
- public Set getResourcePaths (String path ) {
191
+ public Set < String > getResourcePaths (String path ) {
192
192
String actualPath = (path .endsWith ("/" ) ? path : path + "/" );
193
193
Resource resource = this .resourceLoader .getResource (getResourceLocation (actualPath ));
194
194
try {
You can’t perform that action at this time.
0 commit comments