Author: julien(a)jboss.com
Date: 2007-11-11 18:21:24 -0500 (Sun, 11 Nov 2007)
New Revision: 8872
Modified:
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java
Log:
udpate 2.6 to CollectionBuilder changes
Modified:
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java 2007-11-11
23:17:53 UTC (rev 8871)
+++
branches/JBoss_Portal_Branch_2_6/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java 2007-11-11
23:21:24 UTC (rev 8872)
@@ -337,7 +337,7 @@
//
TransactionAssert.beginTransaction();
instance = instanceContainer.getDefinition("MyInstance");
- PropertyMap props = instance.getProperties(new
CollectionBuilder().add("abc").add("ghi").toHashSet());
+ PropertyMap props =
instance.getProperties((Set)CollectionBuilder.hashSet().add("abc").add("ghi").get());
PropertyMap expectedProps = new SimplePropertyMap();
expectedProps.setProperty("abc", new StringValue("_def"));
expectedProps.setProperty("ghi", new StringValue("_jkl"));
@@ -870,10 +870,10 @@
}
/** . */
- private final Set securityBindings1 =
Collections.unmodifiableSet(CollectionBuilder.singleton(new
RoleSecurityBinding("a,b", "admin")).add(new
RoleSecurityBinding("a", "user")).toHashSet());
+ private final Set securityBindings1 =
Collections.unmodifiableSet((Set)CollectionBuilder.hashSet().add(new
RoleSecurityBinding("a,b", "admin")).add(new
RoleSecurityBinding("a", "user")).get());
/** . */
- private final Set securityBindings2 =
Collections.unmodifiableSet(CollectionBuilder.singleton(new
RoleSecurityBinding("a,b", "user")).toHashSet());
+ private final Set securityBindings2 =
Collections.unmodifiableSet((Set)CollectionBuilder.hashSet().add(new
RoleSecurityBinding("a,b", "user")).get());
public void testSecurityConfiguration() throws Exception
{
Show replies by date