Author: bdaw
Date: 2007-11-15 16:14:22 -0500 (Thu, 15 Nov 2007)
New Revision: 8960
Modified:
modules/identity/trunk/identity/src/test/java/org/jboss/portal/test/identity/GenericTest.java
Log:
bobo
Modified:
modules/identity/trunk/identity/src/test/java/org/jboss/portal/test/identity/GenericTest.java
===================================================================
---
modules/identity/trunk/identity/src/test/java/org/jboss/portal/test/identity/GenericTest.java 2007-11-15
20:50:04 UTC (rev 8959)
+++
modules/identity/trunk/identity/src/test/java/org/jboss/portal/test/identity/GenericTest.java 2007-11-15
21:14:22 UTC (rev 8960)
@@ -721,10 +721,10 @@
Role g1 = ctx.getRoleModule().createRole("role1", "role1");
Role g2 = ctx.getRoleModule().createRole("role2", "role2");
ctx.getMembershipModule().assignRoles(u1, Collections.singleton(g1));
- //ctx.getMembershipModule().assignRoles(u2,
(Set)CollectionBuilder.hashSet().add(g1).add(g2).get());
- //ctx.getMembershipModule().assignRoles(admin,
(Set)CollectionBuilder.hashSet().add(g1).add(g2).get());
- ctx.getMembershipModule().assignRoles(u2, new
CollectionBuilder().add(g1).add(g2).toHashSet());
- ctx.getMembershipModule().assignRoles(admin, new
CollectionBuilder().add(g1).add(g2).toHashSet());
+ ctx.getMembershipModule().assignRoles(u2,
(Set)CollectionBuilder.hashSet().add(g1).add(g2).get());
+ ctx.getMembershipModule().assignRoles(admin,
(Set)CollectionBuilder.hashSet().add(g1).add(g2).get());
+ //ctx.getMembershipModule().assignRoles(u2, new
CollectionBuilder().add(g1).add(g2).toHashSet());
+ //ctx.getMembershipModule().assignRoles(admin, new
CollectionBuilder().add(g1).add(g2).toHashSet());
ctx.commit();
}
Show replies by date