-package org.wamblee.usermgt.jpa;
+package org.wamblee.security.authentication.jpa;
import java.sql.Connection;
import java.sql.ResultSet;
import org.junit.After;
import org.junit.Before;
+import org.wamblee.security.authentication.GroupSet;
+import org.wamblee.security.authentication.InMemoryGroupSetTest;
+import org.wamblee.security.authentication.jpa.JpaGroupSet;
import org.wamblee.support.persistence.JpaTester;
import org.wamblee.support.persistence.TransactionProxyFactory;
import org.wamblee.support.persistence.DatabaseUtils.JdbcUnitOfWork;
-import org.wamblee.usermgt.GroupSet;
-import org.wamblee.usermgt.InMemoryGroupSetTest;
public class JpaGroupSetTest extends InMemoryGroupSetTest {
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.wamblee.usermgt.jpa;
+package org.wamblee.security.authentication.jpa;
import java.lang.reflect.Method;
import java.sql.Connection;
import org.junit.Ignore;
import org.wamblee.cache.EhCache;
import org.wamblee.io.ClassPathResource;
+import org.wamblee.security.authentication.GroupSet;
+import org.wamblee.security.authentication.NameValidator;
+import org.wamblee.security.authentication.RegexpNameValidator;
+import org.wamblee.security.authentication.User;
+import org.wamblee.security.authentication.UserAdministration;
+import org.wamblee.security.authentication.UserAdministrationImpl;
+import org.wamblee.security.authentication.UserAdministrationImplTest;
+import org.wamblee.security.authentication.UserSet;
+import org.wamblee.security.authentication.jpa.JpaGroupSet;
+import org.wamblee.security.authentication.jpa.JpaUserSet;
import org.wamblee.security.encryption.Md5HexMessageDigester;
import org.wamblee.security.encryption.MessageDigester;
import org.wamblee.support.persistence.JpaTester;
import org.wamblee.support.persistence.TransactionProxyFactory;
import org.wamblee.support.persistence.DatabaseUtils.JdbcUnitOfWork;
-import org.wamblee.usermgt.GroupSet;
-import org.wamblee.usermgt.NameValidator;
-import org.wamblee.usermgt.RegexpNameValidator;
-import org.wamblee.usermgt.User;
-import org.wamblee.usermgt.UserAdministration;
-import org.wamblee.usermgt.UserAdministrationImpl;
-import org.wamblee.usermgt.UserAdministrationImplTest;
-import org.wamblee.usermgt.UserSet;
/**
* User administration tests with persistence based on Hibernate. This executes
- * the same test cases as {@link org.wamblee.usermgt.UserAdministrationImplTest}
+ * the same test cases as {@link org.wamblee.security.authentication.UserAdministrationImplTest}
* with in addition, one test case that executes all Hibernate test cases
* separately with each test case in its own transaction.
*
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.wamblee.usermgt.jpa;
+package org.wamblee.security.authentication.jpa;
import java.sql.Connection;
import java.sql.ResultSet;
import org.wamblee.cache.EhCache;
import org.wamblee.io.ClassPathResource;
+import org.wamblee.security.authentication.Group;
+import org.wamblee.security.authentication.GroupSet;
+import org.wamblee.security.authentication.InMemoryUserSetTest;
+import org.wamblee.security.authentication.NameValidator;
+import org.wamblee.security.authentication.RegexpNameValidator;
+import org.wamblee.security.authentication.User;
+import org.wamblee.security.authentication.UserSet;
+import org.wamblee.security.authentication.jpa.JpaGroupSet;
+import org.wamblee.security.authentication.jpa.JpaUserSet;
import org.wamblee.security.encryption.Md5HexMessageDigester;
import org.wamblee.security.encryption.MessageDigester;
import org.wamblee.support.persistence.JpaTester;
import org.wamblee.support.persistence.TransactionProxyFactory;
import org.wamblee.support.persistence.DatabaseUtils.JdbcUnitOfWork;
-import org.wamblee.usermgt.Group;
-import org.wamblee.usermgt.GroupSet;
-import org.wamblee.usermgt.InMemoryUserSetTest;
-import org.wamblee.usermgt.NameValidator;
-import org.wamblee.usermgt.RegexpNameValidator;
-import org.wamblee.usermgt.User;
-import org.wamblee.usermgt.UserSet;
/**
* Tests for {@link org.wamblee.usermgt.hibernate.HibernateGroupSet}
-package org.wamblee.usermgt.jpa;
+package org.wamblee.security.authentication.jpa;
import org.dbunit.dataset.DataSetException;
import org.dbunit.dataset.filter.ITableFilterSimple;
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.
<persistence-unit name="securitytest">
<jta-data-source>jdbc/security</jta-data-source>
- <class>org.wamblee.usermgt.User</class>
- <class>org.wamblee.usermgt.Group</class>
+ <class>org.wamblee.security.authentication.User</class>
+ <class>org.wamblee.security.authentication.Group</class>
<class>org.wamblee.security.authorization.AbstractUserCondition</class>
<class>org.wamblee.security.authorization.AnyUserCondition</class>
<class>org.wamblee.security.authorization.GroupUserCondition</class>