In my test I would like to be able to do something like this
DefaultMockMvcBuilder builder = MockMvcBuilders.standaloneSetup(controller1,
...)
builder.setValidator(new LocalValidatorFactoryBean())
RestAssuredMockMvc.standaloneSetup(builder);
This gives quiet a few more options to customize the application context.
It should be sufficient to add a builder method to
com.jayway.restassured.module.mockmvc.RestAssuredMockMvc
public static void standaloneSetup(DefaultMockMvcBuilder mockMvcBuilder) {
mockMvc = mockMvcBuilder.build();
}
Original issue reported on code.google.com by Martin.A...@gmail.com on 26 Mar 2014 at 5:48
Original issue reported on code.google.com by
Martin.A...@gmail.com
on 26 Mar 2014 at 5:48