rollback all SingleEMTestCase changes

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1006039 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-10-08 21:50:48 +00:00
parent 044164b4ad
commit 7920a950aa
1 changed files with 7 additions and 11 deletions

View File

@ -106,20 +106,16 @@ public abstract class SingleEMTestCase
* @return false if the EntityManager was already closed.
*/
protected boolean close() {
boolean brc = false;
if (em == null)
return brc;
return false;
try {
rollback();
rollback();
if (!em.isOpen())
return brc;
} finally {
em.close();
brc = em.isOpen();
}
return !brc;
if (!em.isOpen())
return false;
em.close();
return !em.isOpen();
}
/**