File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
spring-test-mvc/src/main/java/org/springframework/test/web/servlet/setup Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2013 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.
@@ -201,15 +201,22 @@ public StandaloneMockMvcBuilder setCustomReturnValueHandlers(HandlerMethodReturn
201
201
return this ;
202
202
}
203
203
204
-
205
204
/**
206
- * Set the HandlerExceptionResolver types to use.
205
+ * Set the HandlerExceptionResolver types to use as a list .
207
206
*/
208
207
public StandaloneMockMvcBuilder setHandlerExceptionResolvers (List <HandlerExceptionResolver > exceptionResolvers ) {
209
208
this .handlerExceptionResolvers = exceptionResolvers ;
210
209
return this ;
211
210
}
212
211
212
+ /**
213
+ * Set the HandlerExceptionResolver types to use as an array.
214
+ */
215
+ public StandaloneMockMvcBuilder setHandlerExceptionResolvers (HandlerExceptionResolver ... exceptionResolvers ) {
216
+ this .handlerExceptionResolvers = Arrays .asList (exceptionResolvers );
217
+ return this ;
218
+ }
219
+
213
220
/**
214
221
* Set up view resolution with the given {@link ViewResolver}s.
215
222
* If not set, an {@link InternalResourceViewResolver} is used by default.
You can’t perform that action at this time.
0 commit comments