JUnit rollback transaction with @Async method
问题 I am writing an integration test using SpringJUnit4ClassRunner . I have a base class: @RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration @ContextConfiguration({ /*my XML files here*/}) @Ignore public class BaseIntegrationWebappTestRunner { @Autowired protected WebApplicationContext wac; @Autowired protected MockServletContext servletContext; @Autowired protected MockHttpSession session; @Autowired protected MockHttpServletRequest request; @Autowired protected MockHttpServletResponse