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;
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.
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";
jpaTester.getJpaBuilder(), AuthorizationService.class);
JpaAuthorizationService service = new JpaAuthorizationService(
"DEFAULT", factory.getTransactionScopedEntityManager(),
- createUserAccessor(), 10000);
+ getUserAccessor(), getUserAdministration(), 10000);
return factory.getProxy(service);
}