Author: manik.surtani(a)jboss.com
Date: 2009-02-27 12:41:15 -0500 (Fri, 27 Feb 2009)
New Revision: 7807
Modified:
core/trunk/src/test/java/org/jboss/cache/statetransfer/NBSTCacheLoaderTest.java
Log:
Reset threadlocal after methods
Modified: core/trunk/src/test/java/org/jboss/cache/statetransfer/NBSTCacheLoaderTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/statetransfer/NBSTCacheLoaderTest.java 2009-02-27
16:27:41 UTC (rev 7806)
+++
core/trunk/src/test/java/org/jboss/cache/statetransfer/NBSTCacheLoaderTest.java 2009-02-27
17:41:15 UTC (rev 7807)
@@ -5,7 +5,9 @@
import org.jboss.cache.loader.CacheLoader;
import org.jboss.cache.loader.testloaders.DummySharedInMemoryCacheLoaderConfig;
import org.jboss.cache.util.TestingUtil;
-import static org.testng.AssertJUnit.*;
+import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertNull;
+import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;
import java.io.IOException;
@@ -22,6 +24,13 @@
}
};
+ @AfterMethod
+ public void resetThreadLocal()
+ {
+ sharedCacheLoader.set(false);
+ }
+
+
@Override
protected CacheSPI<Object, Object> createCache(String name, boolean start)
throws IOException
{
Show replies by date