package de.superx; import org.junit.Before; import org.junit.Ignore; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.web.WebAppConfiguration; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.servlet.config.annotation.EnableWebMvc; @Ignore @WebAppConfiguration @EnableWebMvc @ContextConfiguration(classes = { WebTestConfig.class }) public class BaseWebTest extends BaseDbTest { @Autowired protected WebApplicationContext context; protected MockMvc mockMvc; @Before public void setup() { mockMvc = MockMvcBuilders.webAppContextSetup(context).build(); } }