[jboss-cvs] JBossAS SVN: r110736 - 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
Tue Feb 22 11:05:01 EST 2011
Author: rachmatowicz at jboss.com
Date: 2011-02-22 11:05:01 -0500 (Tue, 22 Feb 2011)
New Revision: 110736
Modified:
branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientRemoteCacheManagerTestCase.java
Log:
Add test case to check for null on getCache() when cache non-existent.
Modified: branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientRemoteCacheManagerTestCase.java
===================================================================
--- branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientRemoteCacheManagerTestCase.java 2011-02-22 15:39:37 UTC (rev 110735)
+++ branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientRemoteCacheManagerTestCase.java 2011-02-22 16:05:01 UTC (rev 110736)
@@ -314,6 +314,17 @@
assertNotNull(rc1) ;
assertNotNull(rc2) ;
}
+
+ /*
+ * Tests the getCache(String) operation with non-existent cache
+ */
+ public void testGetNonExistentCache() {
+
+ RemoteCacheManager rcm = new RemoteCacheManager() ;
+ RemoteCache rc1 = rcm.getCache("nonExistentCache");
+
+ assertNull(rc1) ;
+ }
/*
* Tests the TCP connection pooling feature
More information about the jboss-cvs-commits
mailing list