[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer ...
Manik Surtani
msurtani at jboss.com
Mon Oct 16 05:11:48 EDT 2006
User: msurtani
Date: 06/10/16 05:11:48
Modified: tests-50/functional/org/jboss/cache/pojo/statetransfer
StateTransferAopTestBase.java
Log:
fixed breaking UTs
Revision Changes Path
1.2 +4 -10 JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StateTransferAopTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- StateTransferAopTestBase.java 10 Oct 2006 13:35:47 -0000 1.1
+++ StateTransferAopTestBase.java 16 Oct 2006 09:11:47 -0000 1.2
@@ -39,7 +39,7 @@
* Tests state transfer in PojoCache.
*
* @author <a href="mailto://brian.stansberry@jboss.com">Brian Stansberry</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public abstract class StateTransferAopTestBase extends TestCase
{
@@ -637,7 +637,7 @@
}
if (useCacheLoader)
{
- configureCacheLoader(c, cacheID, useMarshalling);
+ configureCacheLoader(c, cacheID);
}
PojoCache cache = PojoCacheFactory.createInstance(c, true);
@@ -648,21 +648,15 @@
return cache;
}
- protected void configureCacheLoader(Configuration c, String cacheID, boolean useExtended) throws Exception
+ protected void configureCacheLoader(Configuration c, String cacheID) throws Exception
{
String tmp_location = getTempLocation(cacheID);
// Do cleanup in case it failed before
File file = new File(tmp_location);
cleanFile(file);
-
file.mkdir();
-
tmp_location = escapeWindowsPath(tmp_location);
-
- if (useExtended)
- c.setCacheLoaderConfiguration(getCacheLoaderConfig("org.jboss.cache.loader.FileExtendedCacheLoader", tmp_location));
- else
c.setCacheLoaderConfiguration(getCacheLoaderConfig("org.jboss.cache.loader.FileCacheLoader", tmp_location));
}
More information about the jboss-cvs-commits
mailing list