Skip to content

QuickPerfSpringRunner did not call the Spring TestExecutionListener instances after the test method execution#135

Merged
jeanbisutti merged 1 commit into
quick-perf:masterfrom
jeanbisutti:master
Dec 9, 2020
Merged

QuickPerfSpringRunner did not call the Spring TestExecutionListener instances after the test method execution#135
jeanbisutti merged 1 commit into
quick-perf:masterfrom
jeanbisutti:master

Conversation

@jeanbisutti

@jeanbisutti jeanbisutti commented Dec 9, 2020

Copy link
Copy Markdown
Collaborator

Bug example

@RunWith(QuickPerfSpringRunner.class)
@Import(QuickPerfSqlConfig.class)
@DataJpaTest()
public class QuickPerfSpringRunnerAfterTest {

    @Autowired
    private TestEntityManager testEntityManager;

    @Test
    public void should_find_all_players() {
    }

    @After
    public void after() {
        Player player = new Player();
        testEntityManager.persist(player);
    }
    
}

Exception: No transactional EntityManager found

@jeanbisutti jeanbisutti merged commit 0770d01 into quick-perf:master Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant