JBoss Cache SVN: r4867 - in core/trunk/src: test/java/org/jboss/cache and 8 other directories.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-12-16 12:38:31 -0500 (Sun, 16 Dec 2007)
New Revision: 4867
Modified:
core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java
core/trunk/src/test/java/org/jboss/cache/LifeCycleTest.java
core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithCacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithPassivationTest.java
core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java
core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java
core/trunk/src/test/java/org/jboss/cache/mgmt/CacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/mgmt/MgmtTestBase.java
core/trunk/src/test/java/org/jboss/cache/multiplexer/BuddyGroupAssignmentTest.java
core/trunk/src/test/java/org/jboss/cache/options/TestVersion.java
core/trunk/src/test/java/org/jboss/cache/passivation/BasicPassivationTest.java
core/trunk/src/test/java/org/jboss/cache/passivation/ConcurrentPassivationTest.java
core/trunk/src/test/java/org/jboss/cache/transaction/ReplicatedTransactionDeadlockTest.java
Log:
Updated tests
Modified: core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -657,4 +657,12 @@
throw new ConfigurationException("Unable to build interceptor chain", e);
}
}
+
+ public static InterceptorChainFactory getInstance(ComponentRegistry componentRegistry, Configuration configuration)
+ {
+ InterceptorChainFactory icf = new InterceptorChainFactory();
+ icf.componentRegistry = componentRegistry;
+ icf.configuration = configuration;
+ return icf;
+ }
}
Modified: core/trunk/src/test/java/org/jboss/cache/LifeCycleTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/LifeCycleTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/LifeCycleTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -1,7 +1,5 @@
package org.jboss.cache;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.misc.TestingUtil;
import org.jboss.cache.notifications.annotation.CacheListener;
@@ -28,7 +26,6 @@
@Test(groups = {"functional"})
public class LifeCycleTest
{
- private static Log log = LogFactory.getLog(LifeCycleTest.class);
private CacheSPI[] c;
@AfterMethod
Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithCacheLoaderTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithCacheLoaderTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -29,7 +29,7 @@
*
* @author <a href="mailto:manik@jboss.org">Manik Surtani (manik(a)jboss.org)</a>
*/
-@Test(groups = {"functional"})
+@Test(groups = "functional")
public class BuddyReplicationWithCacheLoaderTest extends BuddyReplicationTestsBase
{
Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithPassivationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithPassivationTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithPassivationTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -6,15 +6,16 @@
*/
package org.jboss.cache.buddyreplication;
+import org.testng.annotations.Test;
+
/**
* @author <a href="mailto:manik@jboss.org">Manik Surtani (manik(a)jboss.org)</a>
*/
+@Test(groups = "functional")
public class BuddyReplicationWithPassivationTest extends BuddyReplicationWithCacheLoaderTest
{
public BuddyReplicationWithPassivationTest()
{
passivation = true;
}
-
-
}
Modified: core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -45,7 +45,7 @@
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception
{
- Configuration conf = cache.getConfiguration();
+ Configuration conf = new Configuration();
EvictionConfig econf = new EvictionConfig(ExpirationPolicy.class.getName());
econf.setWakeupIntervalSeconds(1);
conf.setEvictionConfig(econf);
Modified: core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -1,12 +1,14 @@
package org.jboss.cache.factories;
import junit.framework.Assert;
-import org.jboss.cache.CacheImpl;
+import org.jboss.cache.Cache;
+import org.jboss.cache.CacheSPI;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.config.BuddyReplicationConfig;
import org.jboss.cache.config.CacheLoaderConfig;
import org.jboss.cache.config.EvictionConfig;
import org.jboss.cache.interceptors.*;
+import org.jboss.cache.misc.TestingUtil;
import org.jboss.cache.xml.XmlHelper;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotNull;
@@ -21,12 +23,12 @@
@Test(groups = {"functional"})
public class InterceptorChainFactoryTest extends InterceptorChainTestBase
{
- CacheImpl cache = null;
+ CacheSPI cache = null;
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception
{
- cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
+ cache = (CacheSPI) DefaultCacheFactory.getInstance().createCache(false);
cache.getConfiguration().setCacheMode("LOCAL");
}
@@ -43,8 +45,8 @@
public void testBareConfig() throws Exception
{
cache.getConfiguration().setExposeManagementStatistics(false);
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
System.out.println("testBareConfig interceptors are:\n" + list);
@@ -67,8 +69,8 @@
cache.getConfiguration().setExposeManagementStatistics(false);
cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
System.out.println("testTxConfig interceptors are:\n" + list);
@@ -115,8 +117,8 @@
cache.getConfiguration().setCacheMode("REPL_ASYNC");
cache.getConfiguration().setFetchInMemoryState(false);
cache.create();
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
System.out.println("testSharedCacheLoaderConfig interceptors are:\n" + list);
@@ -145,8 +147,8 @@
cache.getConfiguration().setCacheMode("REPL_ASYNC");
cache.getConfiguration().setFetchInMemoryState(false);
cache.create();
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
System.out.println("testUnsharedCacheLoaderConfig interceptors are:\n" + list);
@@ -172,8 +174,8 @@
cache.getConfiguration().setExposeManagementStatistics(false);
cache.getConfiguration().setCacheMode("repl_sync");
cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
System.out.println("testTxAndRepl interceptors are:\n" + list);
@@ -195,14 +197,14 @@
public void testOptimisticChain() throws Exception
{
- CacheImpl cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
+ CacheSPI cache = (CacheSPI) DefaultCacheFactory.getInstance().createCache(false);
cache.getConfiguration().setExposeManagementStatistics(false);
cache.getConfiguration().setNodeLockingOptimistic(true);
- Interceptor next = InterceptorChainFactory.getInstance().buildInterceptorChain();
+ Interceptor next = getInterceptorChainFactory(cache).buildInterceptorChain();
// test the chain size.
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(next);
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(next);
Iterator<Interceptor> interceptors = list.iterator();
Assert.assertEquals(8, list.size());
@@ -221,15 +223,15 @@
public void testOptimisticReplicatedChain() throws Exception
{
- CacheImpl cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
+ CacheSPI cache = (CacheSPI) DefaultCacheFactory.getInstance().createCache(false);
cache.getConfiguration().setExposeManagementStatistics(false);
cache.getConfiguration().setNodeLockingOptimistic(true);
cache.getConfiguration().setCacheMode("REPL_SYNC");
- Interceptor next = InterceptorChainFactory.getInstance().buildInterceptorChain();
+ Interceptor next = getInterceptorChainFactory(cache).buildInterceptorChain();
// test the chain size.
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(next);
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(next);
Iterator<Interceptor> interceptors = list.iterator();
Assert.assertEquals(9, list.size());
@@ -249,15 +251,15 @@
public void testOptimisticCacheLoaderChain() throws Exception
{
- CacheImpl cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
+ CacheSPI cache = (CacheSPI) DefaultCacheFactory.getInstance().createCache(false);
cache.getConfiguration().setExposeManagementStatistics(false);
cache.getConfiguration().setNodeLockingOptimistic(true);
cache.getConfiguration().setCacheLoaderConfig(getCacheLoaderConfig(false, false));
cache.create();
- Interceptor next = InterceptorChainFactory.getInstance().buildInterceptorChain();
+ Interceptor next = getInterceptorChainFactory(cache).buildInterceptorChain();
// test the chain size.
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(next);
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(next);
Iterator<Interceptor> interceptors = list.iterator();
Assert.assertEquals(10, list.size());
@@ -278,20 +280,19 @@
public void testOptimisticPassivationCacheLoaderChain() throws Exception
{
- CacheImpl cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
+ CacheSPI cache = (CacheSPI) DefaultCacheFactory.getInstance().createCache(false);
cache.getConfiguration().setExposeManagementStatistics(false);
cache.getConfiguration().setNodeLockingOptimistic(true);
cache.getConfiguration().setCacheLoaderConfig(getCacheLoaderConfig(true, false));
cache.create();
- Interceptor next = InterceptorChainFactory.getInstance().buildInterceptorChain();
+ Interceptor next = getInterceptorChainFactory(cache).buildInterceptorChain();
// test the chain size.
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(next);
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(next);
Iterator<Interceptor> interceptors = list.iterator();
Assert.assertEquals(10, list.size());
-
assertEquals(InvocationContextInterceptor.class, interceptors.next().getClass());
assertEquals(TxInterceptor.class, interceptors.next().getClass());
assertEquals(NotificationInterceptor.class, interceptors.next().getClass());
@@ -308,14 +309,14 @@
public void testInvalidationInterceptorChain() throws Exception
{
- CacheImpl cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
+ CacheSPI cache = (CacheSPI) DefaultCacheFactory.getInstance().createCache(false);
cache.getConfiguration().setExposeManagementStatistics(false);
cache.getConfiguration().setCacheMode("REPL_ASYNC");
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
// test the chain size.
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
Assert.assertEquals(7, list.size());
@@ -331,13 +332,13 @@
// ok, my replication chain looks good.
// now for my invalidation chain.
- cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
+ cache = (CacheSPI) DefaultCacheFactory.getInstance().createCache(false);
cache.getConfiguration().setExposeManagementStatistics(false);
cache.getConfiguration().setCacheMode("INVALIDATION_ASYNC");
- chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
+ chain = getInterceptorChainFactory(cache).buildInterceptorChain();
// test the chain size.
- list = InterceptorChainFactory.getInstance().asList(chain);
+ list = getInterceptorChainFactory(cache).asList(chain);
interceptors = list.iterator();
Assert.assertEquals(7, list.size());
@@ -356,8 +357,8 @@
public void testCacheMgmtConfig() throws Exception
{
cache.getConfiguration().setExposeManagementStatistics(true);
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
System.out.println("testCacheMgmtConfig interceptors are:\n" + list);
@@ -388,8 +389,8 @@
}
}
);
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
System.out.println("testEvictionInterceptorConfig interceptors are:\n" + list);
@@ -424,9 +425,9 @@
cache.getConfiguration().setCacheMode("REPL_SYNC");
cache.getConfiguration().setNodeLockingScheme("OPTIMISTIC");
cache.create();// initialise various subsystems such as BRManager
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
System.out.println("testEvictionInterceptorConfig interceptors are:\n" + list);
@@ -463,9 +464,9 @@
cache.getConfiguration().setCacheMode("REPL_SYNC");
cache.create();// initialise various subsystems such as BRManager
- Interceptor chain = InterceptorChainFactory.getInstance().buildInterceptorChain();
+ Interceptor chain = getInterceptorChainFactory(cache).buildInterceptorChain();
- List<Interceptor> list = InterceptorChainFactory.getInstance().asList(chain);
+ List<Interceptor> list = getInterceptorChainFactory(cache).asList(chain);
Iterator<Interceptor> interceptors = list.iterator();
System.out.println("testEvictionInterceptorConfig interceptors are:\n" + list);
@@ -485,4 +486,8 @@
assertInterceptorLinkage(list);
}
+ private InterceptorChainFactory getInterceptorChainFactory(Cache cache)
+ {
+ return InterceptorChainFactory.getInstance(TestingUtil.extractComponentRegistry(cache), cache.getConfiguration());
+ }
}
Modified: core/trunk/src/test/java/org/jboss/cache/mgmt/CacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/mgmt/CacheLoaderTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/mgmt/CacheLoaderTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -1,22 +1,20 @@
package org.jboss.cache.mgmt;
-import static org.testng.AssertJUnit.assertEquals;
-import static org.testng.AssertJUnit.assertFalse;
-import static org.testng.AssertJUnit.assertNotNull;
-import static org.testng.AssertJUnit.assertNull;
-
-import java.util.HashMap;
-
import org.jboss.cache.interceptors.CacheLoaderInterceptor;
import org.jboss.cache.interceptors.CacheStoreInterceptor;
import org.jboss.cache.misc.TestingUtil;
+import static org.testng.AssertJUnit.*;
+import org.testng.annotations.Test;
+import java.util.HashMap;
+
/**
* Simple functional tests for CacheLoaderInterceptor and CacheStoreInterceptor statistics
*
* @author Jerry Gauthier
* @version $Id$
*/
+@Test(groups = "functional")
public class CacheLoaderTest extends MgmtTestBase
{
public void testCacheLoaderMgmt() throws Exception
Modified: core/trunk/src/test/java/org/jboss/cache/mgmt/MgmtTestBase.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/mgmt/MgmtTestBase.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/mgmt/MgmtTestBase.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -1,8 +1,5 @@
package org.jboss.cache.mgmt;
-import java.util.HashMap;
-import java.util.Map;
-
import org.jboss.cache.CacheFactory;
import org.jboss.cache.CacheSPI;
import org.jboss.cache.DefaultCacheFactory;
@@ -18,7 +15,10 @@
import org.testng.annotations.Test;
import org.w3c.dom.Element;
-@Test(groups = {"functional"})
+import java.util.HashMap;
+import java.util.Map;
+
+@Test(groups = "functional")
public abstract class MgmtTestBase
{
protected static final String CAPITAL = "capital";
@@ -94,10 +94,12 @@
private CacheSPI<String, Object> createCache() throws Exception
{
CacheFactory<String, Object> instance = DefaultCacheFactory.getInstance();
- CacheSPI<String, Object> cache = (CacheSPI<String, Object>) instance.createCache(false);
- cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
- cache.getConfiguration().setCacheLoaderConfig(getCacheLoaderConfig());
- cache.getConfiguration().setExposeManagementStatistics(true);
+ Configuration c = new Configuration();
+ c.setCacheMode(Configuration.CacheMode.LOCAL);
+ c.setCacheLoaderConfig(getCacheLoaderConfig());
+ c.setExposeManagementStatistics(true);
+
+ CacheSPI<String, Object> cache = (CacheSPI<String, Object>) instance.createCache(c, false);
cache.create();
cache.start();
return cache;
@@ -106,17 +108,17 @@
private CacheLoaderConfig getCacheLoaderConfig() throws Exception
{
String xml = "<config>\n" +
- "<passivation>" + passivation + "</passivation>\n" +
- "<preload></preload>\n" +
- "<shared>false</shared>\n" +
- "<cacheloader>\n" +
- "<class>" + DummyInMemoryCacheLoader.class.getName() + "</class>\n" +
- "<properties>debug=true</properties>\n" +
- "<async>false</async>\n" +
- "<fetchPersistentState>false</fetchPersistentState>\n" +
- "<ignoreModifications>false</ignoreModifications>\n" +
- "</cacheloader>\n" +
- "</config>";
+ "<passivation>" + passivation + "</passivation>\n" +
+ "<preload></preload>\n" +
+ "<shared>false</shared>\n" +
+ "<cacheloader>\n" +
+ "<class>" + DummyInMemoryCacheLoader.class.getName() + "</class>\n" +
+ "<properties>debug=true</properties>\n" +
+ "<async>false</async>\n" +
+ "<fetchPersistentState>false</fetchPersistentState>\n" +
+ "<ignoreModifications>false</ignoreModifications>\n" +
+ "</cacheloader>\n" +
+ "</config>";
Element element = XmlHelper.stringToElement(xml);
return XmlConfigurationParser.parseCacheLoaderConfig(element);
}
Modified: core/trunk/src/test/java/org/jboss/cache/multiplexer/BuddyGroupAssignmentTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/multiplexer/BuddyGroupAssignmentTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/multiplexer/BuddyGroupAssignmentTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -34,13 +34,12 @@
* @version $Revision$
*/
@Test(enabled = true)
-public class BuddyGroupAssignmentTest
- extends org.jboss.cache.buddyreplication.BuddyGroupAssignmentTest
+public class BuddyGroupAssignmentTest extends org.jboss.cache.buddyreplication.BuddyGroupAssignmentTest
{
private MultiplexerTestHelper muxHelper;
@BeforeMethod(alwaysRun = true)
- public void setUp() throws Exception
+ public void setUp() throws Exception
{
muxHelper = new MultiplexerTestHelper();
}
Modified: core/trunk/src/test/java/org/jboss/cache/options/TestVersion.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/options/TestVersion.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/options/TestVersion.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -7,9 +7,8 @@
*/
public class TestVersion implements DataVersion
{
-
private static final long serialVersionUID = -5577530957664493161L;
-
+
private String myVersion;
public TestVersion(String version)
Modified: core/trunk/src/test/java/org/jboss/cache/passivation/BasicPassivationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/passivation/BasicPassivationTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/passivation/BasicPassivationTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -8,7 +8,7 @@
package org.jboss.cache.passivation;
import org.jboss.cache.CacheFactory;
-import org.jboss.cache.CacheImpl;
+import org.jboss.cache.CacheSPI;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
import org.jboss.cache.factories.XmlConfigurationParser;
@@ -31,7 +31,7 @@
@Test(groups = {"functional"})
public class BasicPassivationTest
{
- CacheImpl cache;
+ CacheSPI cache;
int wakeupIntervalMillis_ = 0;
final String ROOT_STR = "/test";
Throwable t1_ex, t2_ex;
@@ -59,7 +59,7 @@
private void initCaches()
{
CacheFactory<String, String> instance = DefaultCacheFactory.getInstance();
- cache = (CacheImpl) instance.createCache(new XmlConfigurationParser().parseFile("META-INF/local-passivation-service.xml"), false);
+ cache = (CacheSPI) instance.createCache(new XmlConfigurationParser().parseFile("META-INF/local-passivation-service.xml"), false);
cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
Object listener = new TestCacheListener();
cache.getConfiguration().getCacheLoaderConfig().getFirstCacheLoaderConfig().setClassName(DummyInMemoryCacheLoader.class.getName());
@@ -92,7 +92,7 @@
System.out.println(cache.toString());
try
{
- assertFalse(cache.exists(FQNSTR, FQNSTR));
+ assert !(cache.exists(FQNSTR) && cache.getNode(FQNSTR).getKeys().contains(FQNSTR));
Object val = cache.get(FQNSTR, FQNSTR);
assertNotNull("DataNode should not be empty ", val);
}
Modified: core/trunk/src/test/java/org/jboss/cache/passivation/ConcurrentPassivationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/passivation/ConcurrentPassivationTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/passivation/ConcurrentPassivationTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -8,7 +8,7 @@
package org.jboss.cache.passivation;
import org.jboss.cache.CacheFactory;
-import org.jboss.cache.CacheImpl;
+import org.jboss.cache.CacheSPI;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
import org.jboss.cache.factories.XmlConfigurationParser;
@@ -29,14 +29,14 @@
@Test(groups = {"functional"})
public class ConcurrentPassivationTest
{
- private CacheImpl cache_;
+ private CacheSPI cache;
private int wakeupIntervalMillis_ = 0;
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception
{
initCaches();
- wakeupIntervalMillis_ = cache_.getConfiguration().getEvictionConfig().getWakeupIntervalSeconds() * 1000;
+ wakeupIntervalMillis_ = cache.getConfiguration().getEvictionConfig().getWakeupIntervalSeconds() * 1000;
if (wakeupIntervalMillis_ < 0)
{
fail("testEviction(): eviction thread wake up interval is illegal " + wakeupIntervalMillis_);
@@ -47,17 +47,17 @@
private void initCaches()
{
CacheFactory<Integer, String> instance = DefaultCacheFactory.getInstance();
- cache_ = (CacheImpl) instance.createCache(new XmlConfigurationParser().parseFile("META-INF/local-passivation-service.xml"), false);
- cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
- cache_.getConfiguration().getCacheLoaderConfig().getFirstCacheLoaderConfig().setClassName(DummyInMemoryCacheLoader.class.getName());
- cache_.start();
+ cache = (CacheSPI) instance.createCache(new XmlConfigurationParser().parseFile("META-INF/local-passivation-service.xml"), false);
+ cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
+ cache.getConfiguration().getCacheLoaderConfig().getFirstCacheLoaderConfig().setClassName(DummyInMemoryCacheLoader.class.getName());
+ cache.start();
}
@AfterMethod(alwaysRun = true)
public void tearDown() throws Exception
{
- cache_.stop();
- cache_ = null;
+ cache.stop();
+ cache = null;
}
public void testConcurrentPassivation() throws Exception
@@ -68,7 +68,7 @@
// region's maxNodes so we know eviction will kick in
for (int i = 0; i < 35000; i++)
{
- cache_.put(new Fqn<Object>(base, i / 100), i, "value");
+ cache.put(new Fqn<Object>(base, i / 100), i, "value");
}
// Loop for long enough to have 5 runs of the eviction thread
@@ -82,7 +82,7 @@
for (int i = 0; i < 35000; i++)
{
Fqn<Object> fqn = new Fqn<Object>(base, i / 100);
- assertNotNull("Get on Fqn " + fqn + " returned null", cache_.get(fqn));
+ assertNotNull("Get on Fqn " + fqn + " returned null", cache.getNode(fqn));
}
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/transaction/ReplicatedTransactionDeadlockTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/transaction/ReplicatedTransactionDeadlockTest.java 2007-12-16 14:49:16 UTC (rev 4866)
+++ core/trunk/src/test/java/org/jboss/cache/transaction/ReplicatedTransactionDeadlockTest.java 2007-12-16 17:38:31 UTC (rev 4867)
@@ -3,7 +3,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.cache.CacheFactory;
-import org.jboss.cache.CacheImpl;
import org.jboss.cache.CacheSPI;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
@@ -86,7 +85,7 @@
/**
* The target cache where we replicate modifications.
*/
- private CacheImpl dstCache = null;
+ private CacheSPI dstCache = null;
private Log log = LogFactory.getLog(ReplicatedTransactionDeadlockTest.class);
@@ -114,7 +113,7 @@
srcCache.create();
srcCache.start();
// setup and start the destination cache
- dstCache = (CacheImpl) instance.createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC), false);
+ dstCache = (CacheSPI) instance.createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC), false);
dstCache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
dstCache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
17 years, 10 months
JBoss Cache SVN: r4866 - core/trunk/src/test/java/org/jboss/cache/optimistic.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-12-16 09:49:16 -0500 (Sun, 16 Dec 2007)
New Revision: 4866
Modified:
core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticLockInterceptorTest.java
Log:
Updated tests
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticLockInterceptorTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticLockInterceptorTest.java 2007-12-16 14:36:04 UTC (rev 4865)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticLockInterceptorTest.java 2007-12-16 14:49:16 UTC (rev 4866)
@@ -43,19 +43,6 @@
TestingUtil.injectInterceptor(cache, lri, OptimisticLockingInterceptor.class);
-// Interceptor i = cache.getInterceptorChain().get(0);
-// Interceptor lockInterceptor = i;
-// // find the OptimisticLockInterceptor and insert LockReportInterceptor after that.
-// while (!(lockInterceptor instanceof OptimisticLockingInterceptor))
-// {
-// System.out.println("Inspecting " + lockInterceptor.getClass().getSimpleName());
-// lockInterceptor = lockInterceptor.getNext();
-// }
-// Interceptor next = lockInterceptor.getNext();
-//
-// lockInterceptor.setNext(lri);
-// lri.setNext(next);
-
cache.put(child, "key", "value");
tm = cache.getTransactionManager();
17 years, 10 months
JBoss Cache SVN: r4865 - in core/trunk/src: main/java/org/jboss/cache/interceptors and 3 other directories.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-12-16 09:36:04 -0500 (Sun, 16 Dec 2007)
New Revision: 4865
Modified:
core/trunk/src/main/java/org/jboss/cache/CacheImpl.java
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticLockingInterceptor.java
core/trunk/src/test/java/org/jboss/cache/loader/SharedCacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/misc/TestingUtil.java
core/trunk/src/test/java/org/jboss/cache/optimistic/DataVersionPersistenceTest.java
core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticLockInterceptorTest.java
core/trunk/src/test/java/org/jboss/cache/optimistic/ParentVersionTest.java
Log:
Updated tests
Modified: core/trunk/src/main/java/org/jboss/cache/CacheImpl.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/CacheImpl.java 2007-12-16 13:55:03 UTC (rev 4864)
+++ core/trunk/src/main/java/org/jboss/cache/CacheImpl.java 2007-12-16 14:36:04 UTC (rev 4865)
@@ -44,7 +44,6 @@
import org.jboss.cache.transaction.GlobalTransaction;
import org.jboss.cache.transaction.OptimisticTransactionEntry;
import org.jboss.cache.transaction.TransactionEntry;
-import org.jboss.cache.transaction.TransactionManagerLookup;
import org.jboss.cache.transaction.TransactionTable;
import org.jboss.cache.util.ThreadGate;
import org.jboss.cache.util.concurrent.ConcurrentHashSet;
@@ -143,18 +142,6 @@
private Marshaller marshaller = null;
/**
- * {@link #invokeMethod(org.jboss.cache.marshall.MethodCall,boolean)} will dispatch to this chain of interceptors.
- * In the future, this will be replaced with JBossAop. This is a first step towards refactoring JBossCache.
- */
- private Interceptor interceptor_chain = null;
-
- /**
- * Method to acquire a TransactionManager. By default we use JBossTransactionManagerLookup. Has
- * to be set before calling {@link #start()}
- */
- private TransactionManagerLookup tm_lookup = null;
-
- /**
* Used to get the Transaction associated with the current thread
*/
private TransactionManager transactionManager = null;
@@ -306,22 +293,6 @@
}
/**
- * Used for testing only - sets the interceptor chain.
- */
- public void setInterceptorChain(Interceptor i)
- {
- interceptor_chain = i;
- }
-
- /**
- * @return the list of interceptors.
- */
- public List<Interceptor> getInterceptors()
- {
- return InterceptorChainFactory.getInstance().asList(interceptor_chain);
- }
-
- /**
* Returns the underlying cache loader in use.
*/
public CacheLoader getCacheLoader()
@@ -372,14 +343,6 @@
}
/**
- * Sets the TransactionManagerLookup object
- */
- public void setTransactionManagerLookup(TransactionManagerLookup l)
- {
- this.tm_lookup = l;
- }
-
- /**
* Returns the transaction manager in use.
*/
public TransactionManager getTransactionManager()
@@ -3801,6 +3764,19 @@
throw new UnsupportedOperationException("Not implemented in this release");
}
+ private List<Interceptor> getInterceptors()
+ {
+ Interceptor i = componentRegistry.getComponent(Interceptor.class);
+ InterceptorChainFactory icf = componentRegistry.getComponent(InterceptorChainFactory.class);
+ return icf.asList(i);
+ }
+
+ private void setInterceptorChain(Interceptor startOfNewChain)
+ {
+ componentRegistry.registerComponent(Interceptor.class, startOfNewChain);
+ componentRegistry.updateDependencies();
+ }
+
public synchronized void addInterceptor(Interceptor i, int position)
{
List<Interceptor> interceptors = getInterceptors();
Modified: core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticLockingInterceptor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticLockingInterceptor.java 2007-12-16 13:55:03 UTC (rev 4864)
+++ core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticLockingInterceptor.java 2007-12-16 14:36:04 UTC (rev 4865)
@@ -63,7 +63,7 @@
boolean isWriteLockNeeded = workspaceNode.isDirty() || (workspaceNode.isChildrenModified() && (configuration.isLockParentForChildInsertRemove() || node.isLockForChildInsertRemove()));
- boolean acquired = node.getLock().acquire(gtx, lockAcquisitionTimeout, isWriteLockNeeded ? WRITE : READ);
+ boolean acquired = node.getLock().acquire(gtx, timeout, isWriteLockNeeded ? WRITE : READ);
if (acquired)
{
if (trace) log.trace("Acquired lock on node " + node.getFqn());
Modified: core/trunk/src/test/java/org/jboss/cache/loader/SharedCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/SharedCacheLoaderTest.java 2007-12-16 13:55:03 UTC (rev 4864)
+++ core/trunk/src/test/java/org/jboss/cache/loader/SharedCacheLoaderTest.java 2007-12-16 14:36:04 UTC (rev 4865)
@@ -6,7 +6,6 @@
*/
package org.jboss.cache.loader;
-import org.jboss.cache.CacheImpl;
import org.jboss.cache.CacheSPI;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.interceptors.CacheStoreInterceptor;
@@ -55,9 +54,9 @@
// findCacheStoreInterceptor(cache2).setCache(cache2);
}
- protected CacheStoreInterceptor findCacheStoreInterceptor(CacheImpl cache)
+ protected CacheStoreInterceptor findCacheStoreInterceptor(CacheSPI cache)
{
- Iterator ints = cache.getInterceptors().iterator();
+ Iterator ints = cache.getInterceptorChain().iterator();
CacheStoreInterceptor csi = null;
while (ints.hasNext())
{
Modified: core/trunk/src/test/java/org/jboss/cache/misc/TestingUtil.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/misc/TestingUtil.java 2007-12-16 13:55:03 UTC (rev 4864)
+++ core/trunk/src/test/java/org/jboss/cache/misc/TestingUtil.java 2007-12-16 14:36:04 UTC (rev 4865)
@@ -92,6 +92,9 @@
public static void injectInterceptor(CacheSPI<?, ?> cache, Interceptor interceptorToInject, Class<? extends Interceptor> interceptorAfterWhichToInject)
{
System.out.println("Old interceptor chain: " + CachePrinter.printCacheInterceptors(cache));
+ // make sure the new interceptor is wired
+ ComponentRegistry cr = extractComponentRegistry(cache);
+ cr.wireDependencies(interceptorToInject);
interceptorToInject.setCache(cache);
int index = -1;
for (Interceptor i : cache.getInterceptorChain())
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/DataVersionPersistenceTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/DataVersionPersistenceTest.java 2007-12-16 13:55:03 UTC (rev 4864)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/DataVersionPersistenceTest.java 2007-12-16 14:36:04 UTC (rev 4865)
@@ -1,7 +1,7 @@
package org.jboss.cache.optimistic;
import org.jboss.cache.Cache;
-import org.jboss.cache.CacheImpl;
+import org.jboss.cache.CacheSPI;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
import org.jboss.cache.NodeSPI;
@@ -43,7 +43,7 @@
cache.start();
- loader = ((CacheImpl) cache).getCacheLoader();
+ loader = ((CacheSPI) cache).getCacheLoaderManager().getCacheLoader();
}
@AfterMethod
@@ -65,7 +65,6 @@
{
Fqn f = Fqn.fromString("/one/two/three");
cache.put(f, "k", "v");
-
cache.put(f, "k1", "v1");
@@ -81,8 +80,6 @@
assert ((DefaultDataVersion) dv).getRawVersion() == 3 : "Should have accurate data version";
-
-
// now restart cache instance
cache.stop();
cache.start();
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticLockInterceptorTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticLockInterceptorTest.java 2007-12-16 13:55:03 UTC (rev 4864)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticLockInterceptorTest.java 2007-12-16 14:36:04 UTC (rev 4865)
@@ -5,12 +5,12 @@
import org.jboss.cache.Fqn;
import org.jboss.cache.InvocationContext;
import org.jboss.cache.NodeSPI;
-import org.jboss.cache.interceptors.Interceptor;
import org.jboss.cache.interceptors.OptimisticInterceptor;
import org.jboss.cache.interceptors.OptimisticLockingInterceptor;
import org.jboss.cache.lock.NodeLock;
import static org.jboss.cache.lock.NodeLock.LockType.READ;
import static org.jboss.cache.lock.NodeLock.LockType.WRITE;
+import org.jboss.cache.misc.TestingUtil;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@@ -41,18 +41,20 @@
lri = new LockReportInterceptor();
lri.setCache(cache);
- Interceptor i = cache.getInterceptorChain().get(0);
- Interceptor lockInterceptor = i;
- // find the OptimisticLockInterceptor and insert LockReportInterceptor after that.
- while (!(lockInterceptor instanceof OptimisticLockingInterceptor))
- {
- System.out.println("Inspecting " + lockInterceptor.getClass().getSimpleName());
- lockInterceptor = lockInterceptor.getNext();
- }
- Interceptor next = lockInterceptor.getNext();
+ TestingUtil.injectInterceptor(cache, lri, OptimisticLockingInterceptor.class);
- lockInterceptor.setNext(lri);
- lri.setNext(next);
+// Interceptor i = cache.getInterceptorChain().get(0);
+// Interceptor lockInterceptor = i;
+// // find the OptimisticLockInterceptor and insert LockReportInterceptor after that.
+// while (!(lockInterceptor instanceof OptimisticLockingInterceptor))
+// {
+// System.out.println("Inspecting " + lockInterceptor.getClass().getSimpleName());
+// lockInterceptor = lockInterceptor.getNext();
+// }
+// Interceptor next = lockInterceptor.getNext();
+//
+// lockInterceptor.setNext(lri);
+// lri.setNext(next);
cache.put(child, "key", "value");
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/ParentVersionTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/ParentVersionTest.java 2007-12-16 13:55:03 UTC (rev 4864)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/ParentVersionTest.java 2007-12-16 14:36:04 UTC (rev 4865)
@@ -1,11 +1,10 @@
package org.jboss.cache.optimistic;
import org.jboss.cache.Cache;
-import org.jboss.cache.CacheImpl;
import org.jboss.cache.CacheSPI;
import org.jboss.cache.Fqn;
import org.jboss.cache.Node;
-import org.jboss.cache.VersionedNode;
+import org.jboss.cache.NodeSPI;
import static org.testng.AssertJUnit.*;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
@@ -17,7 +16,7 @@
* @author <a href="mailto:manik@jboss.org">Manik Surtani</a>
* @since 2.0.0
*/
-@Test (groups={"functional"})
+@Test(groups = {"functional"})
public class ParentVersionTest extends AbstractOptimisticTestCase
{
private Cache<Object, Object> cache;
@@ -40,7 +39,7 @@
}
else cache = createCache();
- tm = ((CacheSPI<Object, Object>)cache).getTransactionManager();
+ tm = ((CacheSPI<Object, Object>) cache).getTransactionManager();
}
@AfterMethod(alwaysRun = true)
@@ -51,7 +50,7 @@
private long getVersion(Node n)
{
- return ((DefaultDataVersion)((VersionedNode)n).getVersion()).getRawVersion();
+ return ((DefaultDataVersion) ((NodeSPI) n).getVersion()).getRawVersion();
}
public void testSimpleAdd()
@@ -60,8 +59,6 @@
long parentVersion = getVersion(cache.getRoot().getChild(parent));
cache.put(child1, "k", "v");
- System.out.println(((CacheImpl)cache).printLockInfo());
-
if (lockParentForChildInsertRemove)
assertEquals(parentVersion + 1, getVersion(cache.getRoot().getChild(parent)));
else assertEquals(parentVersion, getVersion(cache.getRoot().getChild(parent)));
17 years, 10 months
JBoss Cache SVN: r4864 - in core/trunk/src/test/java/org/jboss/cache: misc and 1 other directories.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-12-16 08:55:03 -0500 (Sun, 16 Dec 2007)
New Revision: 4864
Modified:
core/trunk/src/test/java/org/jboss/cache/api/NodeMoveAPITest.java
core/trunk/src/test/java/org/jboss/cache/misc/TestingUtil.java
core/trunk/src/test/java/org/jboss/cache/optimistic/ChildMapLazyLoadingTest.java
Log:
Updated tests
Modified: core/trunk/src/test/java/org/jboss/cache/api/NodeMoveAPITest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/api/NodeMoveAPITest.java 2007-12-14 18:23:38 UTC (rev 4863)
+++ core/trunk/src/test/java/org/jboss/cache/api/NodeMoveAPITest.java 2007-12-16 13:55:03 UTC (rev 4864)
@@ -56,8 +56,7 @@
@AfterMethod(alwaysRun = true)
public void tearDown()
{
- if (cache != null) cache.stop();
- if (rootNode != null) rootNode = null;
+ TestingUtil.killCaches(cache);
}
@Test(groups = {"functional"})
Modified: core/trunk/src/test/java/org/jboss/cache/misc/TestingUtil.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/misc/TestingUtil.java 2007-12-14 18:23:38 UTC (rev 4863)
+++ core/trunk/src/test/java/org/jboss/cache/misc/TestingUtil.java 2007-12-16 13:55:03 UTC (rev 4864)
@@ -543,6 +543,6 @@
public static RemoteCacheInvocationDelegate getRemoteDelegate(CacheSPI cache)
{
ComponentRegistry cr = extractComponentRegistry(cache);
- return cr.getComponent(RemoteCacheInvocationDelegate.class);
+ return cr.getComponent("remoteDelegate", RemoteCacheInvocationDelegate.class);
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/ChildMapLazyLoadingTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/ChildMapLazyLoadingTest.java 2007-12-14 18:23:38 UTC (rev 4863)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/ChildMapLazyLoadingTest.java 2007-12-16 13:55:03 UTC (rev 4864)
@@ -1,6 +1,5 @@
package org.jboss.cache.optimistic;
-import org.jboss.cache.CacheImpl;
import org.jboss.cache.CacheSPI;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
@@ -54,7 +53,7 @@
{
}
- cache.stop();
+ cache.stop();
}
}
@@ -204,10 +203,9 @@
private WorkspaceNode getWorkspaceNode(Fqn fqn) throws Exception
{
- CacheImpl ci = (CacheImpl) cache;
- Transaction tx = ci.getTransactionManager().getTransaction();
- GlobalTransaction gtx = ci.getTransactionTable().get(tx);
- OptimisticTransactionEntry te = (OptimisticTransactionEntry) ci.getTransactionTable().get(gtx);
+ Transaction tx = cache.getTransactionManager().getTransaction();
+ GlobalTransaction gtx = cache.getTransactionTable().get(tx);
+ OptimisticTransactionEntry te = (OptimisticTransactionEntry) cache.getTransactionTable().get(gtx);
TransactionWorkspace tw = te.getTransactionWorkSpace();
return tw.getNode(fqn);
}
17 years, 10 months
JBoss Cache SVN: r4863 - core/trunk/src/test/java/org/jboss/cache/buddyreplication.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2007-12-14 13:23:38 -0500 (Fri, 14 Dec 2007)
New Revision: 4863
Modified:
core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java
Log:
added tests to reproduce an issues.
Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java 2007-12-14 16:56:28 UTC (rev 4862)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java 2007-12-14 18:23:38 UTC (rev 4863)
@@ -1,8 +1,8 @@
package org.jboss.cache.buddyreplication;
import org.jboss.cache.CacheImpl;
+import org.jboss.cache.CacheSPI;
import org.jboss.cache.Fqn;
-import org.jboss.cache.CacheException;
import org.testng.annotations.Test;
import java.util.ArrayList;
@@ -18,9 +18,9 @@
{
public void testRemoveRootNode() throws Exception
{
- CacheImpl cache1 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
- CacheImpl cache2 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
- caches = new ArrayList<CacheImpl<Object, Object>>(2);
+ CacheSPI cache1 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
+ CacheSPI cache2 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
+ caches = new ArrayList<CacheSPI<Object, Object>>(2);
caches.add(cache1);
caches.add(cache2);
int opCount = 10;
@@ -31,12 +31,6 @@
Fqn f = new Fqn("test", key);
cache1.put(f, key, value);
}
- try
- {
- cache1.remove(Fqn.ROOT);
- } catch (CacheException e)
- {
- e.printStackTrace();
- }
+ cache1.removeNode(Fqn.ROOT);
}
}
17 years, 10 months
Build failed in Hudson: jboss-cache-core-jdk1.5 » JBoss Cache - Core Edition #172
by jboss-qa-internal@redhat.com
See https://hudson.jboss.org/hudson/job/jboss-cache-core-jdk1.5/org.jboss.cac...
Changes:
[mircea.markus] added tests to reproduce an issues.
------------------------------------------
started
Building remotely on dev55-linux
$ /qa/tools/opt/jdk1.5.0_12/bin/java -Xmx256m -cp /home/hudson/hudson_workspace/maven-agent.jar:/qa/tools/opt/maven-2.0.6/boot/classworlds-1.1.jar hudson.maven.agent.Main /qa/tools/opt/maven-2.0.6 /qa/services/hudson/hudson_1.149/slave.jar /home/hudson/hudson_workspace/maven-interceptor.jar
channel started
[INFO] Scanning for projects...
WAGON_VERSION: 1.0-beta-2
[INFO] ----------------------------------------------------------------------------
[INFO] Building JBoss Cache - Core Edition
[INFO] task-segment: [package]
[INFO] ----------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 317 source files to /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.5/./target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 336 source files to /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.5/./target/test-classes
[HUDSON] Archiving /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.5/./pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.5/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[21,36] incompatible types
found : org.jboss.cache.CacheSPI<java.lang.Object,java.lang.Object>
required: org.jboss.cache.CacheImpl
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.5/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[22,36] incompatible types
found : org.jboss.cache.CacheSPI<java.lang.Object,java.lang.Object>
required: org.jboss.cache.CacheImpl
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.5/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[23,38] type org.jboss.cache.CacheImpl does not take parameters
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.5/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[24,12] cannot find symbol
symbol : method add(org.jboss.cache.CacheImpl)
location: interface java.util.List<org.jboss.cache.CacheSPI<java.lang.Object,java.lang.Object>>
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.5/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[25,12] cannot find symbol
symbol : method add(org.jboss.cache.CacheImpl)
location: interface java.util.List<org.jboss.cache.CacheSPI<java.lang.Object,java.lang.Object>>
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 41 seconds
[INFO] Finished at: Fri Dec 14 12:56:44 EST 2007
[INFO] Final Memory: 14M/47M
[INFO] ------------------------------------------------------------------------
Sending e-mails to: dpospisi(a)redhat.com mircea.markus(a)jboss.com
Build was marked for publishing on https://hudson.jboss.org/hudson/
finished: FAILURE
17 years, 10 months
Build failed in Hudson: jboss-cache-core-jdk1.6 » JBoss Cache - Core Edition #125
by jboss-qa-internal@redhat.com
See https://hudson.jboss.org/hudson/job/jboss-cache-core-jdk1.6/org.jboss.cac...
Changes:
[mircea.markus] added tests to reproduce an issues.
------------------------------------------
started
Building remotely on conf2-linux
$ /qa/tools/opt/jdk1.6.0_02/bin/java -Xmx256m -cp /home/hudson/hudson_workspace/maven-agent.jar:/qa/tools/opt/maven-2.0.6/boot/classworlds-1.1.jar hudson.maven.agent.Main /qa/tools/opt/maven-2.0.6 /qa/services/hudson/hudson_1.149/slave.jar /home/hudson/hudson_workspace/maven-interceptor.jar
channel started
[INFO] Scanning for projects...
WAGON_VERSION: 1.0-beta-2
[INFO] ----------------------------------------------------------------------------
[INFO] Building JBoss Cache - Core Edition
[INFO] task-segment: [clean, site]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
[INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
[INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] Preparing surefire-report:report
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 317 source files to /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 336 source files to /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./target/test-classes
[HUDSON] Archiving /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[21,36] incompatible types
found : org.jboss.cache.CacheSPI<java.lang.Object,java.lang.Object>
required: org.jboss.cache.CacheImpl
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[22,36] incompatible types
found : org.jboss.cache.CacheSPI<java.lang.Object,java.lang.Object>
required: org.jboss.cache.CacheImpl
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[23,38] type org.jboss.cache.CacheImpl does not take parameters
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[24,12] cannot find symbol
symbol : method add(org.jboss.cache.CacheImpl)
location: interface java.util.List<org.jboss.cache.CacheSPI<java.lang.Object,java.lang.Object>>
/home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java:[25,12] cannot find symbol
symbol : method add(org.jboss.cache.CacheImpl)
location: interface java.util.List<org.jboss.cache.CacheSPI<java.lang.Object,java.lang.Object>>
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 31 seconds
[INFO] Finished at: Fri Dec 14 12:33:04 EST 2007
[INFO] Final Memory: 28M/89M
[INFO] ------------------------------------------------------------------------
Sending e-mails to: dpospisi(a)redhat.com mircea.markus(a)jboss.com
Build was marked for publishing on https://hudson.jboss.org/hudson/
finished: FAILURE
17 years, 10 months
Build failed in Hudson: jboss-cache-1.4.X-jdk1.5 #40
by jboss-qa-internal@redhat.com
See http://hudson.qa.jboss.com/hudson/job/jboss-cache-1.4.X-jdk1.5/40/changes
Changes:
[galder.zamarreno(a)jboss.com] [PCACHE-58] Tidy up and addition of Map test. In memory Collection load test has been commented as it was only used for comparison between the in memory loaded Collection and the CacheLoader loaded Collection case.
------------------------------------------
[...truncated 936 lines...]
AU tests/perf/org/jboss/cache/Server.java
A tests/perf/org/jboss/cache/loader
AU tests/perf/org/jboss/cache/loader/CacheLoaderPerfTest.java
AU tests/perf/org/jboss/cache/loader/JDBCCacheLoaderPerfTest.java
AU tests/perf/org/jboss/cache/LocalPerfTest.java
AU tests/perf/org/jboss/cache/ReplicatedAsyncPerfTest.java
AU tests/perf/org/jboss/cache/ConcurrentEvictAndRemoveTest.java
AU build.bat
A lib
AU lib/jboss-minimal.jar
AU lib/derby.jar
AU lib/jboss-common.jar
AU lib/javassist.jar
AU lib/jdbm-1.0.jar
AU lib/qdox.jar
AU lib/jboss-jmx.jar
A lib/sleepycat
AU lib/sleepycat/LICENSE.txt
AU lib/sleepycat/je.jar
AU lib/sleepycat/README.txt
AU lib/log4j.jar
AU lib/concurrent.jar
AU lib/junit.jar
AU lib/jgroups.jar
A lib/licenses
AU lib/licenses/cpl-1.0.txt
AU lib/licenses/apache-1.1.txt
AU lib/licenses/apache-2.0.txt
AU lib/licenses/lgpl.txt
AU lib/licenses/thirdparty-licenses.xml
AU lib/jboss-serialization.jar
AU lib/jboss-aop.jar
AU lib/commons-logging.jar
AU lib/bsh-2.0b4.jar
AU lib/trove.jar
AU lib/jboss-system.jar
AU lib/jboss-j2ee.jar
AU build.sh
A src-50
A src-50/org
A src-50/org/jboss
A src-50/org/jboss/cache
A src-50/org/jboss/cache/aop
A src-50/org/jboss/cache/aop/annotation
AU src-50/org/jboss/cache/aop/annotation/PojoCacheable.java
AU src-50/org/jboss/cache/aop/annotation/NonTransient.java
AU src-50/org/jboss/cache/aop/annotation/Serializable.java
AU src-50/org/jboss/cache/aop/annotation/Transient.java
AU src-50/org/jboss/cache/aop/annotation/InstanceOfPojoCacheable.java
A etc
AU etc/dependencies.xml
AU etc/build.properties
AU etc/aop.bsh
AU etc/jboss-aop.xml
AU etc/tree-service.xml
AU etc/log4j.release.xml
AU etc/oodb.bsh
AU etc/cache-jdbc.properties
AU etc/build.xml
A etc/META-INF
AU etc/META-INF/hibernate-recommended-config.xml
AU etc/META-INF/interopCurSync-service.xml
AU etc/META-INF/policyPerRegion-eviction-service.xml
AU etc/META-INF/interopCurAsync-service.xml
AU etc/META-INF/local-passivation-service.xml
AU etc/META-INF/local-fifo-eviction-service.xml
AU etc/META-INF/local-lfu-eviction-service.xml
AU etc/META-INF/replSync-service.xml
AU etc/META-INF/replAsync-service.xml
AU etc/META-INF/local-eviction-cacheloader-service.xml
AU etc/META-INF/buddyreplication-service.xml
AU etc/META-INF/replAsyncSharedCacheLoader-service.xml
AU etc/META-INF/mixedPolicy-eviction-service.xml
AU etc/META-INF/cache-config.xml
AU etc/META-INF/local-lru-eviction-service.xml
AU etc/META-INF/interopPrevSync-service.xml
AU etc/META-INF/invalidationSync-service.xml
AU etc/META-INF/replAsync-optimistic-service.xml
AU etc/META-INF/oodb-service.xml
AU etc/META-INF/replSync-ChainingCacheLoader-service.xml
AU etc/META-INF/local-service.xml
AU etc/META-INF/local-elementsize-eviction-service.xml
AU etc/META-INF/pojocache-service.xml
AU etc/META-INF/tree-service.xml
AU etc/META-INF/optimal-for-large-cluster-http-session-repl.xml
AU etc/META-INF/replSync-ClusteredCacheLoader-service.xml
AU etc/META-INF/optimistic-eviction.xml
AU etc/META-INF/node1.xml
AU etc/META-INF/node2.xml
AU etc/META-INF/local-mru-eviction-service.xml
AU etc/META-INF/interopPrevAsync-service.xml
AU etc/META-INF/replSync-eviction-service.xml
AU etc/META-INF/invalidationAsync-service.xml
AU etc/META-INF/replSync-optimistic-service.xml
AU etc/aopWithTx.bsh
AU etc/build.bat
AU etc/runtest
AU etc/runShellDemo.bat
AU etc/build.sh
AU etc/jdbcCacheLoader-service.xml
AU etc/runShellDemo.sh
AU etc/tcp-cacheserver-service.xml
A etc/svuid-db
AU etc/svuid-db/svuid-14.1.3.0.GA.xml
AU etc/svuid-db/svuid-50.1.3.0.GA.xml
AU etc/svuid-db/svuid-14.1.4.0.GA.xml
AU etc/svuid-db/svuid-50.1.4.0.GA.xml
AU etc/plain.bsh
AU etc/log4j.xml
A examples
A examples/PojoCache
A examples/PojoCache/annotated14
AU examples/PojoCache/annotated14/PojoCacheTasks.xml
AU examples/PojoCache/annotated14/build.bat
A examples/PojoCache/annotated14/src
A examples/PojoCache/annotated14/src/test
A examples/PojoCache/annotated14/src/test/examples
AU examples/PojoCache/annotated14/src/test/examples/StudentMaintTest.java
A examples/PojoCache/annotated14/src/examples
AU examples/PojoCache/annotated14/src/examples/Course.java
AU examples/PojoCache/annotated14/src/examples/Address.java
AU examples/PojoCache/annotated14/src/examples/Person.java
AU examples/PojoCache/annotated14/src/examples/Student.java
AU examples/PojoCache/annotated14/build.sh
AU examples/PojoCache/annotated14/build.properties
AU examples/PojoCache/annotated14/readme.txt
AU examples/PojoCache/annotated14/build.xml
A examples/PojoCache/annotated50
AU examples/PojoCache/annotated50/PojoCacheTasks.xml
AU examples/PojoCache/annotated50/build.bat
A examples/PojoCache/annotated50/src
A examples/PojoCache/annotated50/src/test
A examples/PojoCache/annotated50/src/test/examples
AU examples/PojoCache/annotated50/src/test/examples/StudentMaintTest.java
A examples/PojoCache/annotated50/src/examples
AU examples/PojoCache/annotated50/src/examples/Course.java
AU examples/PojoCache/annotated50/src/examples/Address.java
AU examples/PojoCache/annotated50/src/examples/Person.java
AU examples/PojoCache/annotated50/src/examples/Student.java
AU examples/PojoCache/annotated50/build.sh
AU examples/PojoCache/annotated50/build.properties
AU examples/PojoCache/annotated50/readme.txt
AU examples/PojoCache/annotated50/build.xml
A examples/PojoCache/non-annotated
AU examples/PojoCache/non-annotated/PojoCacheTasks.xml
AU examples/PojoCache/non-annotated/build.bat
A examples/PojoCache/non-annotated/src
A examples/PojoCache/non-annotated/src/test
A examples/PojoCache/non-annotated/src/test/examples
AU examples/PojoCache/non-annotated/src/test/examples/StudentMaintTest.java
A examples/PojoCache/non-annotated/src/examples
AU examples/PojoCache/non-annotated/src/examples/Course.java
AU examples/PojoCache/non-annotated/src/examples/Address.java
AU examples/PojoCache/non-annotated/src/examples/Person.java
AU examples/PojoCache/non-annotated/src/examples/Student.java
AU examples/PojoCache/non-annotated/build.sh
AU examples/PojoCache/non-annotated/build.properties
AU examples/PojoCache/non-annotated/readme.txt
AU examples/PojoCache/non-annotated/jboss-aop.xml
AU examples/PojoCache/non-annotated/build.xml
A examples/PojoCache/sensor
A examples/PojoCache/sensor/article
A examples/PojoCache/sensor/article/image
AU examples/PojoCache/sensor/article/image/object_split.jpg
AU examples/PojoCache/sensor/article/image/propagation_topology.png
AU examples/PojoCache/sensor/article/image/object_split.png
AU examples/PojoCache/sensor/article/image/propagation_object.jpg
AU examples/PojoCache/sensor/article/image/propagation_overview.jpg
AU examples/PojoCache/sensor/article/image/propagation_object.png
AU examples/PojoCache/sensor/article/image/propagation_overview.png
AU examples/PojoCache/sensor/article/image/propagation_topology.jpg
AU examples/PojoCache/sensor/article/pojocache.html
AU examples/PojoCache/sensor/build.bat
AU examples/PojoCache/sensor/runShellDemo.bat
A examples/PojoCache/sensor/src
A examples/PojoCache/sensor/src/test
A examples/PojoCache/sensor/src/test/propagation
A examples/PojoCache/sensor/src/test/propagation/impl
AU examples/PojoCache/sensor/src/test/propagation/impl/PropagationManagerImplTest.java
AU examples/PojoCache/sensor/src/test/propagation/impl/StateItemImplTest.java
AU examples/PojoCache/sensor/src/test/propagation/impl/NodeImplTest.java
AU examples/PojoCache/sensor/src/test/propagation/PropagationReplAopTest.java
A examples/PojoCache/sensor/src/propagation
AU examples/PojoCache/sensor/src/propagation/StateItem.java
A examples/PojoCache/sensor/src/propagation/impl
AU examples/PojoCache/sensor/src/propagation/impl/PropagationManagerImpl.java
AU examples/PojoCache/sensor/src/propagation/impl/StateItemImpl.java
AU examples/PojoCache/sensor/src/propagation/impl/ORSummaryRule.java
AU examples/PojoCache/sensor/src/propagation/impl/NodeImpl.java
AU examples/PojoCache/sensor/src/propagation/impl/AbstractPropagtionRule.java
AU examples/PojoCache/sensor/src/propagation/Node.java
AU examples/PojoCache/sensor/src/propagation/PropagationRule.java
AU examples/PojoCache/sensor/src/propagation/PropagationManager.java
AU examples/PojoCache/sensor/src/jboss-aop.xml
AU examples/PojoCache/sensor/build.sh
AU examples/PojoCache/sensor/aop.bsh
AU examples/PojoCache/sensor/build.properties
AU examples/PojoCache/sensor/runShellDemo.sh
AU examples/PojoCache/sensor/readme.txt
AU examples/PojoCache/sensor/aop2.bsh
AU examples/PojoCache/sensor/build.xml
AU examples/PojoCache/readme.txt
A examples/PojoCache/loadtime
AU examples/PojoCache/loadtime/build.bat
A examples/PojoCache/loadtime/src
A examples/PojoCache/loadtime/src/test
A examples/PojoCache/loadtime/src/test/examples
AU examples/PojoCache/loadtime/src/test/examples/StudentMaintTest.java
AU examples/PojoCache/loadtime/src/jboss-aop.xml
A examples/PojoCache/loadtime/src/examples
AU examples/PojoCache/loadtime/src/examples/Course.java
AU examples/PojoCache/loadtime/src/examples/Address.java
AU examples/PojoCache/loadtime/src/examples/Person.java
AU examples/PojoCache/loadtime/src/examples/Student.java
AU examples/PojoCache/loadtime/build.sh
AU examples/PojoCache/loadtime/build.properties
AU examples/PojoCache/loadtime/readme.txt
AU examples/PojoCache/loadtime/build.xml
U
At revision 4862
[jboss-cache-1.4.X-jdk1.5] $ bash -xe /tmp/hudson24243.sh
+ ./build.sh clean all-unittests-cc reports
Buildfile: build.xml
clean:
clean:
all-unittests-cc:
Overriding previous definition of reference to junit.excludes
compile-classes14:
[mkdir] Created dir: /qa/services/hudson/hudson_workspace/workspace/jboss-cache-1.4.X-jdk1.5/output/classes
[mkdir] Created dir: /qa/services/hudson/hudson_workspace/workspace/jboss-cache-1.4.X-jdk1.5/output/test-classes
[javac] Compiling 264 source files to /qa/services/hudson/hudson_workspace/workspace/jboss-cache-1.4.X-jdk1.5/output/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Compiling 369 source files to /qa/services/hudson/hudson_workspace/workspace/jboss-cache-1.4.X-jdk1.5/output/test-classes
[javac] /qa/services/hudson/hudson_workspace/workspace/jboss-cache-1.4.X-jdk1.5/tests/functional/org/jboss/cache/aop/loader/FileCacheLoaderAopCollectionsTest.java:86: generics are not supported in -source 1.4
[javac] (try -source 1.5 to enable generics)
[javac] List<Person> list = new ArrayList<Person>();
[javac] ^
[javac] 1 error
BUILD FAILED
/qa/services/hudson/hudson_workspace/workspace/jboss-cache-1.4.X-jdk1.5/build.xml:932: The following error occurred while executing this line:
/qa/services/hudson/hudson_workspace/workspace/jboss-cache-1.4.X-jdk1.5/build.xml:203: Compile failed; see the compiler error output for details.
Total time: 14 seconds
Recording test results
17 years, 10 months
JBoss Cache SVN: r4862 - core/trunk/src/test/java/org/jboss/cache/buddyreplication.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2007-12-14 11:56:28 -0500 (Fri, 14 Dec 2007)
New Revision: 4862
Added:
core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java
Log:
added tests to reproduce an issues.
Added: core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java (rev 0)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java 2007-12-14 16:56:28 UTC (rev 4862)
@@ -0,0 +1,42 @@
+package org.jboss.cache.buddyreplication;
+
+import org.jboss.cache.CacheImpl;
+import org.jboss.cache.Fqn;
+import org.jboss.cache.CacheException;
+import org.testng.annotations.Test;
+
+import java.util.ArrayList;
+
+/**
+ * Test added to replicate a found issue. When fixing it consider moving test to some other class.
+ *
+ * @author Mircea.Markus(a)jboss.com
+ * @since 2.1
+ */
+@Test(groups = {"functional"})
+public class RemoveRootBuddyTest extends BuddyReplicationTestsBase
+{
+ public void testRemoveRootNode() throws Exception
+ {
+ CacheImpl cache1 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
+ CacheImpl cache2 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
+ caches = new ArrayList<CacheImpl<Object, Object>>(2);
+ caches.add(cache1);
+ caches.add(cache2);
+ int opCount = 10;
+ for (int i = 0; i < opCount; i++)
+ {
+ String key = String.valueOf(opCount);
+ String value = String.valueOf(opCount);
+ Fqn f = new Fqn("test", key);
+ cache1.put(f, key, value);
+ }
+ try
+ {
+ cache1.remove(Fqn.ROOT);
+ } catch (CacheException e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
17 years, 10 months
Build failed in Hudson: jboss-cache-core-jdk1.6 » JBoss Cache - Core Edition #124
by jboss-qa-internal@redhat.com
See https://hudson.jboss.org/hudson/job/jboss-cache-core-jdk1.6/org.jboss.cac...
Changes:
[manik.surtani(a)jboss.com] should NOT be a singleton anymore!
[manik.surtani(a)jboss.com] patched test
[manik.surtani(a)jboss.com] more fixes
[manik.surtani(a)jboss.com] Whoops
[manik.surtani(a)jboss.com] reduced failure count, improved logging and comments
[manik.surtani(a)jboss.com] reduced failure count
------------------------------------------
started
Building remotely on conf1-linux
$ /qa/tools/opt/jdk1.6.0_02/bin/java -Xmx256m -cp /home/hudson/hudson_workspace/maven-agent.jar:/qa/tools/opt/maven-2.0.6/boot/classworlds-1.1.jar hudson.maven.agent.Main /qa/tools/opt/maven-2.0.6 /qa/services/hudson/hudson_1.149/slave.jar /home/hudson/hudson_workspace/maven-interceptor.jar
channel started
[INFO] Scanning for projects...
WAGON_VERSION: 1.0-beta-2
[INFO] ----------------------------------------------------------------------------
[INFO] Building JBoss Cache - Core Edition
[INFO] task-segment: [clean, site]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
[INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
[INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] Preparing surefire-report:report
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 317 source files to /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 335 source files to /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./target/test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./target/surefire-reports
[HUDSON] Recording test results
[HUDSON] Archiving /home/hudson/hudson_workspace/workspace/jboss-cache-core-jdk1.6/./pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating properties files for forking; nested exception is java.io.IOException: No space left on device
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 4 seconds
[INFO] Finished at: Fri Dec 14 09:01:36 EST 2007
[INFO] Final Memory: 30M/83M
[INFO] ------------------------------------------------------------------------
Sending e-mails to: dpospisi(a)redhat.com manik.surtani(a)jboss.com
Build was marked for publishing on https://hudson.jboss.org/hudson/
finished: FAILURE
17 years, 10 months