cucumber tests in docker container
I’ve some problem with running cucumber tests in docker container. When container started cucumber can’t find steps for all my scenarios.
MockBean in Spring Boot with Cucumber results in NullPointerException
I am testing with Spring Boot (3.3.0) and Cucumber (7.18.0). I have a repository which I want to mock and I have included the necessary (I think) configuration for Spring and Cucumber but I get
“java.lang.NullPointerException: Cannot invoke “com.example.sampleproject.repository.ArtistRepository.findById(Object)” because “this.artistRepository” is null”.