Examples of Nested


Examples of org.jboss.test.aop.packagedotdot.sub.nested.Nested

      assertFalse(ConstructionInterceptor.intercepted);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      ConstructionInterceptor.intercepted = false;
      NotConstructionInterceptor.intercepted = false;
      Nested nested = new Nested(1);
      assertFalse(ConstructionInterceptor.intercepted);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      //Matched by: *.packagedotdot..
      ConstructionInterceptor.intercepted = false;
      NotConstructionInterceptor.intercepted = false;
      pojoA = new POJOA(1, 1);
      assertTrue(ConstructionInterceptor.intercepted);
      assertTrue(NotConstructionInterceptor.intercepted);
     
      ConstructionInterceptor.intercepted = false;
      NotConstructionInterceptor.intercepted = false;
      pojoB = new POJOB(1, 1);
      assertTrue(ConstructionInterceptor.intercepted);
      assertTrue(NotConstructionInterceptor.intercepted);
     
      ConstructionInterceptor.intercepted = false;
      NotConstructionInterceptor.intercepted = false;
      pojo = new POJO(1, 1);
      assertFalse(ConstructionInterceptor.intercepted);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      ConstructionInterceptor.intercepted = false;
      NotConstructionInterceptor.intercepted = false;
      nested = new Nested(1, 1);
      assertFalse(ConstructionInterceptor.intercepted);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      //Matched by: org.jboss.test.aop.packagedotdot.sub.*..
      ConstructionInterceptor.intercepted = false;
      NotConstructionInterceptor.intercepted = false;
      pojoA = new POJOA(1, 1, 1);
      assertFalse(ConstructionInterceptor.intercepted);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      ConstructionInterceptor.intercepted = false;
      NotConstructionInterceptor.intercepted = false;
      pojoB = new POJOB(1, 1, 1);
      assertFalse(ConstructionInterceptor.intercepted);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      ConstructionInterceptor.intercepted = false;
      NotConstructionInterceptor.intercepted = false;
      pojo = new POJO(1, 1, 1);
      assertFalse(ConstructionInterceptor.intercepted);
      assertFalse(NotConstructionInterceptor.intercepted);

      ConstructionInterceptor.intercepted = false;
      NotConstructionInterceptor.intercepted = false;
      nested = new Nested(1, 1, 1);
      assertTrue(ConstructionInterceptor.intercepted);
      assertTrue(NotConstructionInterceptor.intercepted);
   }
View Full Code Here

Examples of org.jboss.test.aop.packagedotdot.sub.nested.Nested

   public void testMethods() throws Exception
   {
      POJOA pojoA = new POJOA(1);
      POJOB pojoB = new POJOB(1);
      POJO pojo = new POJO(1);
      Nested nested = new Nested(1);

      //Matched by: org.jboss.test.aop.packagedotdot..
      NotConstructionInterceptor.intercepted = false;
      pojoA.method(1);
      assertTrue(NotConstructionInterceptor.intercepted);
     
      NotConstructionInterceptor.intercepted = false;
      pojoB.method(1);
      assertTrue(NotConstructionInterceptor.intercepted);
     
      NotConstructionInterceptor.intercepted = false;
      pojo.method(1);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      NotConstructionInterceptor.intercepted = false;
      nested.method(1);
      assertFalse(NotConstructionInterceptor.intercepted);

      //Matched by: *.packagedotdot..
      NotConstructionInterceptor.intercepted = false;
      pojoA.method(1, 1);
      assertTrue(NotConstructionInterceptor.intercepted);
     
      NotConstructionInterceptor.intercepted = false;
      pojoB.method(1, 1);
      assertTrue(NotConstructionInterceptor.intercepted);
     
      NotConstructionInterceptor.intercepted = false;
      pojo.method(1, 1);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      NotConstructionInterceptor.intercepted = false;
      nested.method(1, 1);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      //Matched by: org.jboss.test.aop.packagedotdot.sub.*..
      NotConstructionInterceptor.intercepted = false;
      pojoA.method(1, 1, 1);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      NotConstructionInterceptor.intercepted = false;
      pojoB.method(1, 1, 1);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      NotConstructionInterceptor.intercepted = false;
      pojo.method(1, 1, 1);
      assertFalse(NotConstructionInterceptor.intercepted);
     
      NotConstructionInterceptor.intercepted = false;
      nested.method(1, 1, 1);
      assertTrue(NotConstructionInterceptor.intercepted);
   }
View Full Code Here

Examples of org.jboss.test.aop.packagedotdot.sub.nested.Nested

   public void testFields()
   {
      POJOA pojoA = new POJOA(1);
      POJOB pojoB = new POJOB(1);
      POJO pojo = new POJO(1);
      Nested nested = new Nested(1);

      //Matched by: org.jboss.test.aop.packagedotdot..
      NotConstructionInterceptor.intercepted = false;
      pojoA.ifield = 1;
      assertTrue(NotConstructionInterceptor.intercepted);
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.