[jboss-cvs] JBossAS SVN: r111034 - branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 25 10:27:42 EDT 2011


Author: rachmatowicz at jboss.com
Date: 2011-03-25 10:27:42 -0400 (Fri, 25 Mar 2011)
New Revision: 111034

Modified:
   branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientRemoteCacheTestCase.java
Log:
Mark RemoteCache.containsValue() as unsupported (JBPAPP-5772)

Modified: branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientRemoteCacheTestCase.java
===================================================================
--- branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientRemoteCacheTestCase.java	2011-03-25 14:26:56 UTC (rev 111033)
+++ branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientRemoteCacheTestCase.java	2011-03-25 14:27:42 UTC (rev 111034)
@@ -127,7 +127,7 @@
 	 * NotifyingFuture<Boolean> replaceAsync(K k, V oldValue, V newValue)
 	 * NotifyingFuture<Boolean> replaceAsync(K k, V oldValue, V newValue, long lifespan, TimeUnit unit)
 	 * NotifyingFuture<Boolean> replaceAsync(K k, V oldValue, V newValue, long lifespan, TimeUnit unit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
-	 * 
+	 * boolean containsValue(Object o)
 	 * void evict()
 	 * void addListener(Object listener)
 	 * Set<Object> getListeners()
@@ -261,6 +261,13 @@
 		catch(UnsupportedOperationException uoe) {
 			// Unsupported operation exception correctly thrown
 		}
+		try {
+			remoteCache.containsValue("aValue");
+			fail("call to containsValue() did not raise UnsupportedOperationException ") ;
+		}
+		catch(UnsupportedOperationException uoe) {
+			// Unsupported operation exception correctly thrown
+		}
 	}
 	
 	/*
@@ -317,15 +324,19 @@
 	
 	
 	/*
-	 * Test the contains operations
+	 * Test the contains operations 
 	 * - we start with empty cache
+	 * - containsValue() is at present unsupported
 	 */
 	public void testContains() {
 		assertTrue(!remoteCache.containsKey("aKey"));
 		remoteCache.put("aKey", "aValue");
 		assertTrue(remoteCache.containsKey("aKey"));
+		
+		/*
 		assertTrue(remoteCache.containsValue("aValue"));
-		assertTrue(!remoteCache.containsValue("someOtherValue")); 
+		assertTrue(!remoteCache.containsValue("someOtherValue"));
+		*/ 
 	}
 	
 	/*



More information about the jboss-cvs-commits mailing list