Examples of CustomInterceptorConfig


Examples of org.jboss.cache.config.CustomInterceptorConfig

   }

   public void testAddLast()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setLast(true);
      buildCache(config);
      List chain = cache.getInterceptorChain();
      assert chain.get(chain.size() - 1).equals(interceptor);
      assert cache.getInterceptorChain().size() == defaultInterceptroCount + 1;
   }
View Full Code Here

Examples of org.jboss.cache.config.CustomInterceptorConfig

   }

   public void testAddAfter()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setAfterClass(MVCCLockingInterceptor.class.getName());
      buildCache(config);
      List<CommandInterceptor> chain = cache.getInterceptorChain();
      int occurenceCount = 0;
      for (CommandInterceptor ci : chain)
      {
View Full Code Here

Examples of org.jboss.cache.config.CustomInterceptorConfig

   }

   public void testAddBefore()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setBeforeClass(MVCCLockingInterceptor.class.getName());
      buildCache(config);
      List<CommandInterceptor> chain = cache.getInterceptorChain();
      int occurenceCount = 0;
      for (CommandInterceptor ci : chain)
      {
View Full Code Here

Examples of org.jboss.cache.config.CustomInterceptorConfig

   @Test(enabled = true)
   public void testAddAtIndex()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setIndex(1);
      buildCache(config);
      List<CommandInterceptor> chain = cache.getInterceptorChain();
      assert chain.get(1).equals(interceptor);
      assert cache.getInterceptorChain().size() == defaultInterceptroCount + 1;
   }
View Full Code Here

Examples of org.jboss.cache.config.CustomInterceptorConfig

   }

   public void testAddAtInvalidIndex()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setIndex(1000);
      try
      {
         buildCache(config);
         assert false : "exception expected here";
      }
View Full Code Here

Examples of org.jboss.cache.config.CustomInterceptorConfig

   }

   public void testAddFirst()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setFirst(true);
      buildCache(config);
      assert cache.getInterceptorChain().get(0).equals(interceptor);
      assert cache.getInterceptorChain().size() == defaultInterceptroCount + 1;
   }
View Full Code Here

Examples of org.jboss.cache.config.CustomInterceptorConfig

   }

   public void testAddLast()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setLast(true);
      buildCache(config);
      List chain = cache.getInterceptorChain();
      assert chain.get(chain.size() - 1).equals(interceptor);
      assert cache.getInterceptorChain().size() == defaultInterceptroCount + 1;
   }
View Full Code Here

Examples of org.jboss.cache.config.CustomInterceptorConfig

   }

   public void testAddAfter()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setAfterClass(MVCCLockingInterceptor.class.getName());
      buildCache(config);
      List<CommandInterceptor> chain = cache.getInterceptorChain();
      int occurenceCount = 0;
      for (CommandInterceptor ci : chain)
      {
View Full Code Here

Examples of org.jboss.cache.config.CustomInterceptorConfig

   }

   public void testAddBefore()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setBeforeClass(MVCCLockingInterceptor.class.getName());
      buildCache(config);
      List<CommandInterceptor> chain = cache.getInterceptorChain();
      int occurenceCount = 0;
      for (CommandInterceptor ci : chain)
      {
View Full Code Here

Examples of org.jboss.cache.config.CustomInterceptorConfig

   @Test(enabled = true)
   public void testAddAtIndex()
   {
      AaaCustomInterceptor interceptor = new AaaCustomInterceptor();
      CustomInterceptorConfig config = new CustomInterceptorConfig(interceptor);
      config.setIndex(1);
      buildCache(config);
      List<CommandInterceptor> chain = cache.getInterceptorChain();
      assert chain.get(1).equals(interceptor);
      assert cache.getInterceptorChain().size() == defaultInterceptroCount + 1;
   }
View Full Code Here
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.