How to flush data into db inside active spring transaction?
Finally I stuck to the following solution: First, my @Test methods are not running within spring @Transactional support. See this article to know how dangerous it may be. Next, instead of using @Repository beans inside @Test methods I autowire @Service beans which use @Transactional annotation. The miracle is that @Test method like this @Test @Transactional(propagation … Read more