Author: manik.surtani(a)jboss.com
Date: 2009-02-17 10:55:19 -0500 (Tue, 17 Feb 2009)
New Revision: 7703
Modified:
core/branches/flat/src/test/java/org/horizon/test/AbstractCacheTest.java
Log:
Better logging
Modified: core/branches/flat/src/test/java/org/horizon/test/AbstractCacheTest.java
===================================================================
--- core/branches/flat/src/test/java/org/horizon/test/AbstractCacheTest.java 2009-02-17
15:40:34 UTC (rev 7702)
+++ core/branches/flat/src/test/java/org/horizon/test/AbstractCacheTest.java 2009-02-17
15:55:19 UTC (rev 7703)
@@ -10,6 +10,7 @@
import org.horizon.logging.LogFactory;
import org.horizon.manager.CacheManager;
import org.horizon.manager.DefaultCacheManager;
+import org.horizon.remoting.transport.Address;
import javax.transaction.TransactionManager;
import java.util.HashSet;
@@ -61,7 +62,14 @@
}
private void removeInMemoryData(Cache cache) {
- fwkLogger.debug("Cleaning data for cache: {0}", cache.getName());
+ CacheManager mgr = cache.getCacheManager();
+ Address a = mgr.getAddress();
+ String str;
+ if (a == null)
+ str = "a non-clustered cache manager";
+ else
+ str = "a cache manager at address " + a;
+ fwkLogger.debug("Cleaning data for cache '{0}' on {1}",
cache.getName(), str);
DataContainer dataContainer = TestingUtil.extractComponent(cache,
DataContainer.class);
fwkLogger.debug("removeInMemoryData(): dataContainerBefore == {0}",
dataContainer);
dataContainer.clear();
Show replies by date