Archive
Posts Tagged ‘junit’
Running your elasticsearch integration tests with JUnit 5, Karate and TestContainers (Docker)
8 July 2019
2 comments
Earlier this year I wrote an article on how to run your integration tests with an embedded elasticsearch. When upgrading to elasticsearch 7 this method didn’t work (yet). An alternative (and maybe even better) method is using Testcontainers to run elasticsearch in a Docker container. I will also show how you can leverage Karate to do your integration testing.
Running your JUnit 5 integration test with an embedded elasticsearch on a random port (and optionally Spring Boot)
22 January 2019
17 comments
With recent versions of elasticsearch (5+) the learning curve for an integration test became a bit steeper but will result in a cleaner solution in the end. In this article I will describe how to set up your test with JUnit 5 to run your elasticsearch integration tests. I will also discuss how to make it work with Spring-Boot Test.
Categories: English, java, Uncategorized, work
elasticsearch, junit, spring
