Hi!
When I want to test my data layer in a usual Spring Boot application, I use a @DataJpaTest
annotation to instantiate my JPA repository tests. However, I didn’t manage to make it work in Jmix, I get a NoSuchBeanDefinitionException: EntityManagerFactory not present. So, there are the questions:
- In Spring Boot I use Hibernate, and there everything is configured automatically. Should I perhaps somehow manually instantiate EntityManagerFactory and TestEntityManager when working with EclipseLink an Jmix?
- Or is there any other conventional way to test the data layer in Jmix, without rising the whole context using a
@SpringBootTest
?