Package org.jboss.test.microcontainer.support

Examples of org.jboss.test.microcontainer.support.SimpleBeanImpl.someMethod()


            try
            {
               SimpleBeanImpl bean = (SimpleBeanImpl)getBean("Intercepted");
               SimpleInterceptor1.invoked = false;
               SimpleInterceptor2.invoked = false;
               bean.someMethod();
               assertTrue(SimpleInterceptor1.invoked);
               assertTrue(SimpleInterceptor2.invoked);

               ControllerContext ctx = getControllerContext("Intercepted");
               Controller controller = ctx.getController();
View Full Code Here


               controller.change(ctx, ControllerState.INSTALLED);
              
               bean = (SimpleBeanImpl)getBean("Intercepted");
               SimpleInterceptor1.invoked = false;
               SimpleInterceptor2.invoked = false;
               bean.someMethod();
               assertTrue(SimpleInterceptor1.invoked);
               assertFalse(SimpleInterceptor2.invoked);
            }
            finally
            {
View Full Code Here

   {
      SimpleBeanImpl bean = (SimpleBeanImpl) getBean("Intercepted");
      assertFalse(TestAspect.fooCalled);
      assertFalse(TestAspect.barCalled);

      bean.someMethod();
      assertTrue("TestAspect.foo not called", TestAspect.fooCalled);
      assertFalse("TestAspect.bar was called", TestAspect.barCalled);
     
      TestAspect.fooCalled = false;
      assertFalse(TestAspect.fooCalled);
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.