Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuickPerfSpringRunner did not call the Spring TestExecutionListener instances before the test method execution #134

Merged
merged 1 commit into from Dec 9, 2020

Conversation

jeanbisutti
Copy link
Collaborator

Bug example

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

    @Autowired
    private TestEntityManager testEntityManager;

    @Before
    public void before() {
        Player player = new Player();
        testEntityManager.persist(player);
    }

    @Test
    public void test() {
    }

}

Exception: java.lang.IllegalStateException: No transactional EntityManager found

@jeanbisutti jeanbisutti merged commit a056d1e 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.

None yet

1 participant