Author: manik.surtani(a)jboss.com
Date: 2008-05-16 09:29:52 -0400 (Fri, 16 May 2008)
New Revision: 5866
Modified:
core/trunk/src/test/java/org/jboss/cache/statetransfer/FailedStateTransferTest.java
Log:
Fixed broken test
Modified:
core/trunk/src/test/java/org/jboss/cache/statetransfer/FailedStateTransferTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/statetransfer/FailedStateTransferTest.java 2008-05-16
13:11:23 UTC (rev 5865)
+++
core/trunk/src/test/java/org/jboss/cache/statetransfer/FailedStateTransferTest.java 2008-05-16
13:29:52 UTC (rev 5866)
@@ -29,6 +29,7 @@
import org.jboss.cache.config.Configuration.CacheMode;
import org.jboss.cache.factories.ComponentRegistry;
import org.jboss.cache.factories.UnitTestCacheConfigurationFactory;
+import org.jboss.cache.factories.annotations.NonVolatile;
import org.jboss.cache.lock.TimeoutException;
import org.jboss.cache.misc.TestingUtil;
import org.jboss.cache.remoting.jgroups.ChannelMessageListener;
@@ -80,9 +81,7 @@
// inject our own message listener and re-wire deps
cr = TestingUtil.extractComponentRegistry(recipient);
- //cr.unregisterComponent(ChannelMessageListener.class);
cr.registerComponent(new SecretiveStateCacheMessageListener(),
ChannelMessageListener.class);
- //cr.updateDependencies();
try
{
@@ -100,6 +99,7 @@
return Version.version;
}
+ @NonVolatile
private static class SecretiveStateCacheMessageListener extends
ChannelMessageListener
{
@Override
Show replies by date