Is it possible to avoid this @Before
method to set up RestAssuredMockMvc in all the contract base classes.
@Before
public void setup() {
RestAssuredMockMvc.standaloneSetup(object);
//RestAssuredMockMvc.mockMvc(object);
}
Is there any annotation support to auto configure restassured mockmvc ?.
I can abstract out this method and let base classes to extend but would like to know if there are any other way of doing this setup.
Nope. There isn't. It makes no sense (at least i don't see it yet) to automate the standalone setup cause it can be customized in so many different ways. What could be automated however is the web app context setup. Anyways, I'm not familiar with any automation option for now.