[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/api ...
Manik Surtani
manik at jboss.org
Fri Jun 29 13:40:50 EDT 2007
User: msurtani
Date: 07/06/29 13:40:50
Modified: tests/functional/org/jboss/cache/api NodeSPITest.java
Log:
JBCACHE-1116 and JBCACHE-1117
Revision Changes Path
1.4 +0 -15 JBossCache/tests/functional/org/jboss/cache/api/NodeSPITest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NodeSPITest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/NodeSPITest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- NodeSPITest.java 25 Jan 2007 14:12:07 -0000 1.3
+++ NodeSPITest.java 29 Jun 2007 17:40:50 -0000 1.4
@@ -111,22 +111,11 @@
Object childName = "childName";
Object newChild = "newChild";
root.addChild(new Fqn(childName));
- Map childrenMapDirect = root.getChildrenMapDirect();
Set childrenDirect = root.getChildrenDirect();
Set childrenNamesDirect = root.getChildrenNamesDirect();
try
{
- childrenMapDirect.clear();
- fail("getChildrenMapDirect() should return an unmodifiable collection object");
- }
- catch (UnsupportedOperationException uoe)
- {
- // good; should be immutable
- }
-
- try
- {
childrenDirect.clear();
fail("getChildrenDirect() should return an unmodifiable collection object");
}
@@ -149,7 +138,6 @@
root.addChild(new Fqn(newChild));
assertTrue("root.addChild() should have succeeded", root.getChildrenNamesDirect().contains(newChild));
- assertTrue("getChildrenMapDirect() should have made a defensive copy of the data collection object", !childrenMapDirect.containsKey(newChild));
assertTrue("getChildrenDirect() should have made a defensive copy of the data collection object", !childrenDirect.contains(newChild));
assertTrue("getChildrenNamesDirect() should have made a defensive copy of the data collection object", !childrenNamesDirect.contains(newChild));
@@ -164,9 +152,6 @@
assertNotNull("Should not be null", root.getKeysDirect());
assertTrue("Should be empty", root.getKeysDirect().isEmpty());
- assertNotNull("Should not be null", root.getChildrenMapDirect());
- assertTrue("Should be empty", root.getChildrenMapDirect().isEmpty());
-
assertNotNull("Should not be null", root.getChildrenDirect());
assertTrue("Should be empty", root.getChildrenDirect().isEmpty());
More information about the jboss-cvs-commits
mailing list