X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fjpatest%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsecurity%2Fauthorization%2Fjpa%2FJpaAuthorizationServiceTest.java;h=d2053c2c5f42f1ee0f88cda40fd8d1dd4f719ba3;hb=a0e5219a62cafc60127bcbb9ea2b7c3f8c403ccb;hp=d67e09c4fd3975d5c314077af04a41ad85b37f56;hpb=74a6cd5b71b4f668ddac54c3237511ee11e8d84e;p=utils diff --git a/security/jpatest/src/test/java/org/wamblee/security/authorization/jpa/JpaAuthorizationServiceTest.java b/security/jpatest/src/test/java/org/wamblee/security/authorization/jpa/JpaAuthorizationServiceTest.java index d67e09c4..d2053c2c 100644 --- a/security/jpatest/src/test/java/org/wamblee/security/authorization/jpa/JpaAuthorizationServiceTest.java +++ b/security/jpatest/src/test/java/org/wamblee/security/authorization/jpa/JpaAuthorizationServiceTest.java @@ -20,6 +20,7 @@ import static org.wamblee.security.authorization.AuthorizationResult.*; import javax.persistence.EntityManager; import org.apache.log4j.Logger; +import org.wamblee.security.authentication.jpa.SecurityPersistenceUnit; import org.wamblee.security.authorization.AllOperation; import org.wamblee.security.authorization.AuthorizationRule; import org.wamblee.security.authorization.AuthorizationService; @@ -28,7 +29,6 @@ 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; -import org.wamblee.usermgt.jpa.SecurityPersistenceUnit; /** * Unit test for the persistent authorization service. @@ -43,7 +43,7 @@ public class JpaAuthorizationServiceTest extends AuthorizationServiceTest { private static final String RULES_TABLE = "SEC_AUTH_RULE"; - private static final String SERVICE_RULES_TABLE = "SEC_AUTH_SVC_SEC_AUTH_RULE"; + private static final String SERVICE_RULES_TABLE = "SEC_AUTH_SVC_RULE"; private static final String OPERATIONCOND_TABLE = "SEC_OPERATION_CONDITION"; @@ -82,7 +82,7 @@ public class JpaAuthorizationServiceTest extends AuthorizationServiceTest { jpaTester.getJpaBuilder(), AuthorizationService.class); JpaAuthorizationService service = new JpaAuthorizationService( "DEFAULT", factory.getTransactionScopedEntityManager(), - createUserAccessor(), 10000); + getUserAccessor(), getUserAdministration(), 10000); return factory.getProxy(service); }