@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
Bug example
Exception:
java.lang.IllegalStateException: No transactional EntityManager found