Package org.jboss.cache.profiling

Source Code of org.jboss.cache.profiling.AbstractProfileTest

package org.jboss.cache.profiling;

import org.jboss.cache.Cache;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.factories.UnitTestCacheConfigurationFactory;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

@Test(groups = "profiling")
public abstract class AbstractProfileTest
{
   protected Cache cache;

   @BeforeTest
   public void setUp()
   {
      Configuration cfg = UnitTestCacheConfigurationFactory.createConfiguration(Configuration.CacheMode.REPL_SYNC);
      cache = new DefaultCacheFactory().createCache(cfg, false);
   }

   @AfterTest
   public void tearDown()
   {
      cache.stop();
   }

   public abstract void testReplSync() throws Exception;

   public abstract void testReplAsync() throws Exception;

   public abstract void testReplSyncOptimistic() throws Exception;

   public abstract void testReplAsyncOptimistic() throws Exception;

   public abstract void testReplSyncBR() throws Exception;

   public abstract void testReplAsyncBR() throws Exception;

   public abstract void testReplSyncOptBR() throws Exception;

   public abstract void testReplAsyncOptBR() throws Exception;
}
TOP

Related Classes of org.jboss.cache.profiling.AbstractProfileTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.