Skip to content
Advertisement

Tag: entitymanager

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

Advertisement