[jbosscache-commits] JBoss Cache SVN: r7704 - in core/branches/flat/src/test/java/org/horizon: test and 1 other directory.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Feb 17 11:04:23 EST 2009


Author: manik.surtani at jboss.com
Date: 2009-02-17 11:04:23 -0500 (Tue, 17 Feb 2009)
New Revision: 7704

Modified:
   core/branches/flat/src/test/java/org/horizon/loader/decorators/SingletonStoreTest.java
   core/branches/flat/src/test/java/org/horizon/test/MultipleCacheManagersTest.java
Log:
Added assertion

Modified: core/branches/flat/src/test/java/org/horizon/loader/decorators/SingletonStoreTest.java
===================================================================
--- core/branches/flat/src/test/java/org/horizon/loader/decorators/SingletonStoreTest.java	2009-02-17 15:55:19 UTC (rev 7703)
+++ core/branches/flat/src/test/java/org/horizon/loader/decorators/SingletonStoreTest.java	2009-02-17 16:04:23 UTC (rev 7704)
@@ -104,6 +104,9 @@
       Cache[] caches = getCaches("nonPushing");
       for (Cache c : caches) c.start();
 
+      // block until they all see each other!
+      TestingUtil.blockUntilViewsReceived(60000, true, caches);
+
       int i = 1;
       for (Cache c : caches) {
          c.put("key" + i, "value" + i);

Modified: core/branches/flat/src/test/java/org/horizon/test/MultipleCacheManagersTest.java
===================================================================
--- core/branches/flat/src/test/java/org/horizon/test/MultipleCacheManagersTest.java	2009-02-17 15:55:19 UTC (rev 7703)
+++ core/branches/flat/src/test/java/org/horizon/test/MultipleCacheManagersTest.java	2009-02-17 16:04:23 UTC (rev 7704)
@@ -42,7 +42,7 @@
 
    @AfterMethod
    protected void clearContent() throws Throwable {
-      fwkLogger.debug("MultipleCacheManagersTest.clearContent");
+      fwkLogger.debug("*** Test method complete; clearing contents on all caches.");
       if (cacheManagers.isEmpty())
          throw new IllegalStateException("No caches registered! Use registerCacheManager(Cache... caches) do that!");
       for (CacheManager cacheManager : cacheManagers) {




More information about the jbosscache-commits mailing list