Package org.jboss.test.microcontainer.beans

Examples of org.jboss.test.microcontainer.beans.POJO.method()


            validate();
            POJO pojo = (POJO) getBean("Intercepted");
            assertNotNull(pojo);
            TestAspectWithDependency.invoked = null;
            TestInterceptor.invoked = false;          
            pojo.method(2);
            assertTrue(dependency == TestAspectWithDependency.invoked);
            assertTrue(TestInterceptor.invoked);
         }
         finally
         {
View Full Code Here


         {
            POJO pojo = (POJO) getBean("Intercepted");
            assertNotNull(pojo);
            TestAspectWithDependency.invoked = null;
            TestInterceptor.invoked = false;
            pojo.method(2);
            assertTrue(dependency == TestAspectWithDependency.invoked);
            assertTrue(TestInterceptor.invoked);
         }
         finally
         {
View Full Code Here

   public void testIntercepted() throws Exception
   {
      TestAspect.invoked = false;
      POJO pojo = (POJO)getBean("Bean");
      int ret = pojo.method(2);
      assertEquals(4, ret);
      assertTrue(TestAspect.invoked);
   }

}
View Full Code Here

   public void testIntroduced() throws Exception
   {
      TestAspect.invoked = false;
      POJO pojo = (POJO)getBean("Bean");
      assertTrue(pojo instanceof MixinInterface);
      pojo.method();
      assertTrue(TestAspect.invoked);
      assertEquals("DEFAULT", ((MixinInterface)pojo).getMixinValue());
   }

}
View Full Code Here

      ScopedFactoryAspect a2 = ScopedFactoryAspect.last;
      assertNotNull(a2);
      assertSame(a1, a2);
     
      ScopedFactoryAspect.last = null;     
      pojoB.method();
      ScopedFactoryAspect a3 = ScopedFactoryAspect.last;
      assertNotNull(a3);
      assertNotSame(a3, a2);
     
      ScopedFactoryAspect.last = null;     
View Full Code Here

      ScopedFactoryAspect a3 = ScopedFactoryAspect.last;
      assertNotNull(a3);
      assertNotSame(a3, a2);
     
      ScopedFactoryAspect.last = null;     
      pojoB.method(4);
      ScopedFactoryAspect a4 = ScopedFactoryAspect.last;
      assertNotNull(a4);
      assertSame(a3, a4);
     
      ScopedFactoryAspect.last = null;     
View Full Code Here

   public void testIntercepted() throws Exception
   {
      TestInterceptor.invoked = false;
      POJO pojo = (POJO)getBean("Bean");
      int ret = pojo.method(2);
      assertEquals(4, ret);
      assertTrue(TestInterceptor.invoked);
   }

}
View Full Code Here

   {
      POJO pojo = (POJO)getBean("POJO1A");
      POJO2 pojo2 = (POJO2)getBean("POJO2");
  
      PerVmAspect.last = null;
      pojo.method();
      PerVmAspect a1 = PerVmAspect.last;
      assertNotNull(a1);
     
      PerVmAspect.last = null;
      pojo2.method();
View Full Code Here

      PerVmAspect a2 = PerVmAspect.last;
      assertNotNull(a2);
      assertSame(a1, a2);
     
      PerVmAspect.last = null;
      pojo.method(3);
      PerVmAspect a3 = PerVmAspect.last;
      assertNotNull(a3);
      assertSame(a1, a3);
   }
View Full Code Here

   {
      POJO pojo = (POJO)getBean("POJO1A");
      POJO2 pojo2 = (POJO2)getBean("POJO2");
     
      PerClassAspect.last = null;
      pojo.method();
      PerClassAspect a1 = PerClassAspect.last;
      assertNotNull(a1);
     
      PerClassAspect.last = null;
      pojo2.method();
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.