Polish StandaloneMockMvcBuilder

Issue: SPR-10053
This commit is contained in:
Rossen Stoyanchev 2012-12-03 13:49:07 -05:00
parent ab886b82ea
commit 9643ff3f1d
1 changed files with 6 additions and 3 deletions

View File

@ -169,8 +169,9 @@ public class StandaloneMockMvcBuilder extends DefaultMockMvcBuilder<StandaloneMo
/**
* Set a ContentNegotiationManager.
*/
protected void setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager) {
protected StandaloneMockMvcBuilder setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager) {
this.contentNegotiationManager = contentNegotiationManager;
return this;
}
/**
@ -179,8 +180,9 @@ public class StandaloneMockMvcBuilder extends DefaultMockMvcBuilder<StandaloneMo
* complete so that a test can verify the results synchronously.
* @param timeout the timeout value in milliseconds
*/
public void setAsyncRequestTimeout(long timeout) {
public StandaloneMockMvcBuilder setAsyncRequestTimeout(long timeout) {
this.asyncRequestTimeout = timeout;
return this;
}
/**
@ -203,8 +205,9 @@ public class StandaloneMockMvcBuilder extends DefaultMockMvcBuilder<StandaloneMo
/**
* Set the HandlerExceptionResolver types to use.
*/
public void setHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) {
public StandaloneMockMvcBuilder setHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) {
this.handlerExceptionResolvers = exceptionResolvers;
return this;
}
/**