JUnit succeeds when run as "debug as junit test" but fails as "debug as gradle test".
I'm doing a simple hibernate test and the code all works fine when run from Eclipse normally as well as when I create a junit to test it.
But I'm now trying to run as ./gradlew test (from bash or within eclipse) and I'm having a problem with:
em.persist(jazz);
causing:
org.opentest4j.AssertionFailedError: Unexpected exception thrown: java.lang.IllegalArgumentException: Unable to locate persister: entities.Genre
There must be some config or context which is missing from the gradle test which is generally present.
But I'm now trying to run as ./gradlew test (from bash or within eclipse) and I'm having a problem with:
em.persist(jazz);
causing:
org.opentest4j.AssertionFailedError: Unexpected exception thrown: java.lang.IllegalArgumentException: Unable to locate persister: entities.Genre
There must be some config or context which is missing from the gradle test which is generally present.