I am using Spring Boot 2.5 with Spring Data Elastic Search 4.2.1. I would like to do integration tests. I read https://stackoverflow.com/a/60440334/4068218, but would like to know how I can use those classes, i.e they are not part of Maven imports?
For example, I started with https://github.com/spring-projects/spring-data-elasticsearch/blob/main/src/test/java/org/springframework/data/elasticsearch/junit/jupiter/SpringIntegrationTest.java, but Spring Boot did not recognise @SpringIntegrationTest
. I see they are available as part of spring-integration-test, but that is not what I want as I want to use the one under Spring Data Elastic Search.
Sorry could not comment on the other link. I loved the Spring Data Elastic Search documentation - https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/#reference, but I don't see anything related to integration tests there.
Any leads are appreciated.