Good Morning! I have to create some test cases using Junit5 with Spring Boot Integration.
I followed the same steps in the official documentation: 1. Create a configuration file which replace main Spring boot configuration using h2 database embedded 2. Create a test case Class with DataJpaTest and Import annotation together to link the previous configuration file 3. When I run the tests I have the following error:
16:33:51.761 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class TerritorioRepositorySliceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 16:33:51.946 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration for test class
RepositorySliceTest
Comment From: wilkinsona
Thanks for the report. Unfortunately, it contains insufficient information for us to be able to help you. If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.