I cannot test my spring crud repository using spring boot 2.1.0.M4 with Junit5 and @DataJpaTest
.
I am using the following spring crud repository interface.
Do not mix @SpringBootTest
with @DataJpaTest
From JavaDoc's one can read:
Annotation that can be used in combination with {@code @RunWith(SpringRunner.class)} for a typical JPA test. Can be used when a test focuses only on JPA components.
For full integration tests you should instead use @SpringBootTest
If you are looking to load your full application configuration, but use an embedded database, you should consider {@link SpringBootTest @SpringBootTest} combined with {@link AutoConfigureTestDatabase @AutoConfigureTestDatabase} rather than this annotation.
I think your problem is cause by changed naming strategy. Try to check this issue