Author: thomas.heute(a)jboss.com
Date: 2007-12-03 07:28:12 -0500 (Mon, 03 Dec 2007)
New Revision: 9244
Modified:
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/test/identity/IdentityTest.java
Log:
Fixing testsuite
Modified:
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/test/identity/IdentityTest.java
===================================================================
---
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/test/identity/IdentityTest.java 2007-12-03
12:27:41 UTC (rev 9243)
+++
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/test/identity/IdentityTest.java 2007-12-03
12:28:12 UTC (rev 9244)
@@ -729,7 +729,7 @@
Role g1 = roleModule.createRole("role1", "role1");
Role g2 = roleModule.createRole("role2", "role2");
membershipModule.assignRoles(u1, Collections.singleton(g1));
- Set collection =
Collections.unmodifiableSet((Set)CollectionBuilder.hashSet().add(g1).add(g2));
+ Set collection =
Collections.unmodifiableSet((Set)CollectionBuilder.hashSet().add(g1).add(g2).get());
membershipModule.assignRoles(u2, collection);
membershipModule.assignRoles(admin, collection);
ctx.commit();
Show replies by date