Package org.jboss.test.microcontainer.beans

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


      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();
      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

TOP

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

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.