Examples of MySharedInterceptor


Examples of test.implementation.interceptor.support.MySharedInterceptor

  
   public void testSharedInterceptor() throws Exception
   {
      MBeanServer server = MBeanServerFactory.createMBeanServer();
     
      MySharedInterceptor shared = new MySharedInterceptor();
     
      ObjectName oname = shared.register(server);
     
      assertTrue(server.isRegistered(new ObjectName(
            JBOSSMX_DOMAIN + ":" + "type=Interceptor,name=MySharedInterceptor,ID=0"
      )));
     
View Full Code Here

Examples of test.implementation.interceptor.support.MySharedInterceptor

  
   public void testIsShared() throws Exception
   {
      MBeanServer server = MBeanServerFactory.createMBeanServer();
     
      MySharedInterceptor shared = new MySharedInterceptor();
     
      assertTrue(shared.isShared() == false);
     
      shared.register(server);
     
      assertTrue(shared.isShared() == true);
   }
View Full Code Here

Examples of test.implementation.interceptor.support.MySharedInterceptor

  
   public void testLifecycleCallbacks() throws Exception
   {
      MBeanServer server = MBeanServerFactory.createMBeanServer();
     
      MySharedInterceptor shared = new MySharedInterceptor();
     
      assertTrue(shared.isInit == false);
      assertTrue(shared.isStart == false);
     
      ObjectName oname = shared.register(server);
     
      assertTrue(shared.isInit == true);
      assertTrue(shared.isStart == true);
     
      assertTrue(shared.isStop == false);
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.