This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hello I have a JSE (desktop) application which uses JPA.
When I try to JUnitTest it, I run into a strange problem.
Basically I have two Entities which extend a superclass.
I need to test that the attribute nr is unique for each subclass, but that same values are allowed between subclasses.
I think this works, but my JUnit test behaves strangely:
When run each test in isolation, the tests pass. But when I run the whole class, testUniqueNr() is executed and then the RollbackException somehow causes
public void cleanUp()
not to be executed and the testSelbeNrInVerschiedenenSchluessellisten() fails.
When I (expected=RollbackException.class) and use a try catch block I get the same behavior.
Many thanks for any input
from my pom.xml:
Joined: Feb 25, 2007
I have to correct myself slightly. The debugging with the failed test indication had confused me.
After the execution of