Skip to content
Advertisement

Tag: unit-testing

Jpa unit test – Service – entity manager null

This is what I tried: the error that I get is ‘ Runner org.junit.internal.runners.ErrorReportingRunner (used on class com.unibuc.AWBD_Project_v1.services.ServiceTest) does not support filtering and will therefore be run completely. Test class should have exactly one public zero-argument constructor’ Here is the LocationService: Answer Hello there is 3 issues in your test code. 1 you should remove the EntityManager entityManager from your

How to run mock server tests in isolation?

I have these two mock server tests. When I launch these, the second test fail because the two tests are not launched in isolation. The mocking of the HTTP call in the first method isn’t override in the second method. Is there a Mock Server property or a JUnit property to run these two tests in isolation ? Answer At

Advertisement