Package org.jboss.test.microcontainer.beans

Examples of org.jboss.test.microcontainer.beans.PerJoinPointAspect


      POJO pojoB = (POJO)getBean("POJO1B");
      POJO2 pojo2 = (POJO2)getBean("POJO2");
  
      PerJoinPointAspect.last = null;
      pojoA.method();
      PerJoinPointAspect a1 = PerJoinPointAspect.last;
      assertNotNull(a1);
     
      PerJoinPointAspect.last = null;
      pojoA.method(1);
      PerJoinPointAspect a2 = PerJoinPointAspect.last;
      assertNotNull(a2);
     
      PerJoinPointAspect.last = null;
      pojoB.method();
      PerJoinPointAspect a3 = PerJoinPointAspect.last;
      assertNotNull(a3);
     
      PerJoinPointAspect.last = null;
      pojoB.method(1);
      PerJoinPointAspect a4 = PerJoinPointAspect.last;
      assertNotNull(a4);
     
      PerJoinPointAspect.last = null;
      pojo2.method();
      PerJoinPointAspect a5 = PerJoinPointAspect.last;
      assertNotNull(a5);
     
      PerJoinPointAspect.last = null;
      pojo2.method(1);
      PerJoinPointAspect a6 = PerJoinPointAspect.last;
      assertNotNull(a6);
     
      assertNotSame(a1, a2);
      assertNotSame(a1, a3);
      assertNotSame(a1, a4);
      assertNotSame(a1, a5);
      assertNotSame(a1, a6);
      assertNotSame(a2, a3);
      assertNotSame(a2, a4);
      assertNotSame(a2, a5);
      assertNotSame(a2, a6);
      assertNotSame(a3, a4);
      assertNotSame(a3, a5);
      assertNotSame(a3, a6);
      assertNotSame(a4, a5);
      assertNotSame(a4, a6);
      assertNotSame(a5, a6);
     
      PerJoinPointAspect.last = null;
      pojoA.method();
      PerJoinPointAspect a7 = PerJoinPointAspect.last;
      assertNotNull(a7);
      assertSame(a1, a7);
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.microcontainer.beans.PerJoinPointAspect

Copyright © 2018 www.massapicom. 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.