Now working with both hibernate and eclipselink
[utils] / security / jpatest / src / test / java / org / wamblee / security / authorization / jpa / JpaAuthorizationServiceTest.java
index 1573f4734b52efed34dc344ec45739e323c81201..d67e09c4fd3975d5c314077af04a41ad85b37f56 100644 (file)
  */
 package org.wamblee.security.authorization.jpa;
 
+import static org.wamblee.security.authorization.AuthorizationResult.*;
+
 import javax.persistence.EntityManager;
 
 import org.apache.log4j.Logger;
-import org.wamblee.security.authorization.AbstractAuthorizationService;
 import org.wamblee.security.authorization.AllOperation;
-import org.wamblee.security.authorization.AuthorizationResult;
+import org.wamblee.security.authorization.AuthorizationRule;
 import org.wamblee.security.authorization.AuthorizationService;
 import org.wamblee.security.authorization.AuthorizationServiceTest;
-import org.wamblee.security.authorization.TestAuthorizationRule;
+import org.wamblee.security.authorization.DefaultAuthorizationService;
 import org.wamblee.support.persistence.JpaTester;
 import org.wamblee.support.persistence.TransactionProxyFactory;
 import org.wamblee.support.persistence.JpaBuilder.JpaUnitOfWork;
@@ -62,6 +63,12 @@ public class JpaAuthorizationServiceTest extends AuthorizationServiceTest {
         super.setUp();
     }
 
+    @Override
+    protected void tearDown() throws Exception {
+        jpaTester.stop();
+        super.tearDown();
+    }
+
     /*
      * (non-Javadoc)
      *