[jbosscache-commits] JBoss Cache SVN: r7714 - core/branches/flat/src/test/java/org/horizon/marshall.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Feb 17 14:15:45 EST 2009


Author: mircea.markus
Date: 2009-02-17 14:15:45 -0500 (Tue, 17 Feb 2009)
New Revision: 7714

Modified:
   core/branches/flat/src/test/java/org/horizon/marshall/MarshalledValueTest.java
Log:
changes were overwritten, fixed that

Modified: core/branches/flat/src/test/java/org/horizon/marshall/MarshalledValueTest.java
===================================================================
--- core/branches/flat/src/test/java/org/horizon/marshall/MarshalledValueTest.java	2009-02-17 18:57:21 UTC (rev 7713)
+++ core/branches/flat/src/test/java/org/horizon/marshall/MarshalledValueTest.java	2009-02-17 19:15:45 UTC (rev 7714)
@@ -46,7 +46,7 @@
    String k = "key", v = "value";
 
    protected void createCacheManagers() throws Throwable {
-      Configuration replSync = new Configuration();
+      Configuration replSync = getDefaultConfig();
       replSync.setCacheMode(Configuration.CacheMode.REPL_SYNC);
       replSync.setUseLazyDeserialization(true);
 
@@ -211,15 +211,9 @@
       Pojo pojo = new Pojo();
       MarshalledValue mv = new MarshalledValue(pojo, true);
 
-      Configuration c = new Configuration();
-//      ComponentRegistry cr = new ComponentRegistry(c, new CacheDelegate("aaa"));
 
       HorizonMarshaller marshaller = new HorizonMarshaller();
-//      cr.registerComponent(marshaller, Marshaller.class);
 
-      // Wire the marshaller
-//      cr.start();
-
       // start the test
       ByteArrayOutputStream bout = new ByteArrayOutputStream();
       ObjectOutputStream out = new ObjectOutputStream(bout);
@@ -248,10 +242,14 @@
       assertOnlyOneRepresentationExists(recreated);
    }
 
+   /**
+    * Run this as last method as it creates and stops cache loaders, which might affect other tests.
+    */
+   @Test(dependsOnMethods = "org.horizon.marshall.MarshalledValueTest.test(?!CacheLoaders)[a-zA-Z]*")
    public void testCacheLoaders() throws CloneNotSupportedException {
       tearDown();
 
-      Configuration cacheCofig = new Configuration();
+      Configuration cacheCofig = getDefaultConfig();
       cacheCofig.setCacheMode(Configuration.CacheMode.REPL_SYNC);
       cacheCofig.setUseLazyDeserialization(true);
       CacheLoaderManagerConfig clmc = new CacheLoaderManagerConfig();




More information about the jbosscache-commits mailing list