[jbosscache-commits] JBoss Cache SVN: r4581 - in core/trunk/src/test/java/org/jboss/cache: replicated and 1 other directory.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Oct 9 10:45:45 EDT 2007


Author: manik.surtani at jboss.com
Date: 2007-10-09 10:45:45 -0400 (Tue, 09 Oct 2007)
New Revision: 4581

Modified:
   core/trunk/src/test/java/org/jboss/cache/eviction/RegionManagerTest.java
   core/trunk/src/test/java/org/jboss/cache/replicated/ExceptionTest.java
Log:
Patched failing tests

Modified: core/trunk/src/test/java/org/jboss/cache/eviction/RegionManagerTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/eviction/RegionManagerTest.java	2007-10-09 14:45:24 UTC (rev 4580)
+++ core/trunk/src/test/java/org/jboss/cache/eviction/RegionManagerTest.java	2007-10-09 14:45:45 UTC (rev 4581)
@@ -94,14 +94,15 @@
 
       try
       {
-         regionManager.getRegion("/a", false);
+         regionManager.getRegion(Fqn.fromString("/a"), Region.Type.EVICTION, false);
+         fail("If we don't setCache the default region, we should throw a RTE!");
       }
       catch (Exception e)
       {
          // This is ok. Should throw an runtime exception
-         return;
       }
-      fail("If we don't setCache the default region, we should throw a RTE!");
+
+      assert regionManager.getRegion(Fqn.fromString("/a"), false) == null : "Should not throw an exception if we dont specify a region type!";
    }
 
    public void testGetRegion()

Modified: core/trunk/src/test/java/org/jboss/cache/replicated/ExceptionTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/replicated/ExceptionTest.java	2007-10-09 14:45:24 UTC (rev 4580)
+++ core/trunk/src/test/java/org/jboss/cache/replicated/ExceptionTest.java	2007-10-09 14:45:45 UTC (rev 4581)
@@ -21,6 +21,7 @@
  * @author <a href="mailto:manik at jboss.org">Manik Surtani</a>
  * @since 2.1.0
  */
+ at Test (groups = {"functional"})
 public class ExceptionTest
 {
    private Cache cache1;




More information about the jbosscache-commits mailing list