git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed the table names from the persistence unit description.
[utils]
/
security
/
jpatest
/
src
/
test
/
java
/
org
/
wamblee
/
security
/
authentication
/
jpa
/
JpaUserSetTest.java
diff --git
a/security/jpatest/src/test/java/org/wamblee/security/authentication/jpa/JpaUserSetTest.java
b/security/jpatest/src/test/java/org/wamblee/security/authentication/jpa/JpaUserSetTest.java
index f5b5fa10b43c6385ae3d742bbe7ac05b23c03880..e5430fb6bd9d066f31e67f77fe5906ee34143b22 100644
(file)
--- a/
security/jpatest/src/test/java/org/wamblee/security/authentication/jpa/JpaUserSetTest.java
+++ b/
security/jpatest/src/test/java/org/wamblee/security/authentication/jpa/JpaUserSetTest.java
@@
-24,14
+24,12
@@
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.Group;
import org.wamblee.security.authentication.GroupSet;
import org.wamblee.security.authentication.InMemoryUserSetTest;
+import org.wamblee.security.authentication.Md5HexMessageDigester;
+import org.wamblee.security.authentication.MessageDigester;
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.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.support.persistence.JpaTester;
import org.wamblee.support.persistence.TransactionProxyFactory;
import org.wamblee.support.persistence.DatabaseUtils.JdbcUnitOfWork;
@@
-96,8
+94,8
@@
public class JpaUserSetTest extends InMemoryUserSetTest {
private GroupSet createGroupSetImpl() {
TransactionProxyFactory<GroupSet> factory = new TransactionProxyFactory<GroupSet>(
jpaTester.getJpaBuilder(), GroupSet.class);
private GroupSet createGroupSetImpl() {
TransactionProxyFactory<GroupSet> factory = new TransactionProxyFactory<GroupSet>(
jpaTester.getJpaBuilder(), GroupSet.class);
- GroupSet groups
et
= new JpaGroupSet(factory.getTransactionScopedEntityManager());
- GroupSet proxy = factory.getProxy(groups
et
);
+ GroupSet groups = new JpaGroupSet(factory.getTransactionScopedEntityManager());
+ GroupSet proxy = factory.getProxy(groups);
return proxy;
}
return proxy;
}
@@
-232,7
+230,7
@@
public class JpaUserSetTest extends InMemoryUserSetTest {
*
*/
public void testVerifyAddRemove() throws Exception {
*
*/
public void testVerifyAddRemove() throws Exception {
- jpaTester.getDbUtils().cleanDatabase(); // super class setup always creates one group.
+ jpaTester.getDbUtils().cleanDatabase(
new SecurityTables()
); // super class setup always creates one group.
GroupSet groups = getGroups();
assertEquals(0, groups.size());
GroupSet groups = getGroups();
assertEquals(0, groups.size());