Package org.jboss.test.aop.jdk15

Examples of org.jboss.test.aop.jdk15.AnnotatedPOJO


      // check wrapping status
      assertOnlyFieldReadWrapped(wrappingInfos[0]);
      assertOnlyFieldReadWrapped(wrappingInfos[1]);
      assertOnlyFieldReadWrapped(wrappingInfos[2]);
      // check interception counts     
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertEquals(1, binding.total);
      assertEquals(0, binding.constructor);
      assertEquals(1, binding.fieldRead);
      assertEquals(0, binding.fieldWrite);
      assertEquals(0, binding.method);
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertTrue(instance.total >= 2 && instance.total <= 3);
      assertEquals(0, instance.constructor);
      assertTrue(instance.fieldRead >= 2 && instance.fieldRead <= 3);
      assertEquals(0, instance.fieldWrite);
      assertEquals(0, instance.method);
View Full Code Here


    */
   public void testAfterBindingRemovalExecution() throws Throwable
   {
      POJOWrappingInfo[] wrappingInfos = scenarioLoader.executeAfterBindingRemoval();
      assertUnwrapped(wrappingInfos[0]);
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertEquals(0, binding.total);
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertEquals(0, instance.total);
   }
View Full Code Here

      POJOWrappingInfo[] wrappingInfos = scenarioLoader.interceptPerClassLoadAfter();
      // check wrapping status
      assertFullyWrapped(wrappingInfos[0]);
      assertUnwrapped(wrappingInfos[1]);
      // check interception counts
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertEquals(0, instance.total);
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertTrue(binding.total >= 5 && binding.total <= 8);
      assertTrue(binding.constructor >= 1 && binding.constructor <= 2);
      assertTrue(binding.fieldRead >= 1 && binding.fieldRead <= 2);
      assertTrue(binding.fieldWrite >= 1 && binding.fieldWrite <= 2);
      assertEquals(2, binding.method);
View Full Code Here

      // check wrapping status
      assertUnwrapped(wrappingInfos[0]);
      assertFullyWrapped(wrappingInfos[1]);
      assertUnwrapped(wrappingInfos[2]);
      // check interception counts
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertEquals(0, instance.total);
      assertEquals(0, instance.constructor);
      assertEquals(0, instance.fieldRead);
      assertEquals(0, instance.fieldWrite);
      assertEquals(0, instance.method);
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertEquals(4, binding.total);
      assertEquals(1, binding.constructor);
      assertEquals(1, binding.fieldRead);
      assertEquals(1, binding.fieldWrite);
      assertEquals(1, binding.method);
View Full Code Here

      assertFullyWrapped(wrappingInfos[1]);
      assertUnwrapped(wrappingInfos[2]);
      assertFullyWrapped(wrappingInfos[3]);
      assertUnwrapped(wrappingInfos[4]);
      // check interception counts
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertEquals(0, instance.total);
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertEquals(8, binding.total);
      assertEquals(2, binding.constructor);
      assertEquals(2, binding.fieldRead);
      assertEquals(2, binding.fieldWrite);
      assertEquals(2, binding.method);
View Full Code Here

      POJOWrappingInfo[] wrappingInfos = scenarioLoader.interceptPerInstance();
      // check wrapping status
      assertUnwrapped(wrappingInfos[0]);
      assertFullyWrapped(wrappingInfos[1]);
      // check interception counts
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertEquals(0, binding.total);
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertTrue(instance.total >= 3 && instance.total <= 6);
      assertEquals(0, instance.constructor);
      assertTrue(instance.fieldRead >= 1 && instance.fieldRead <= 2);
      assertTrue(instance.fieldWrite >=1 && instance.fieldWrite <= 2);
      assertTrue(instance.method >= 1 && instance.method <= 2);
View Full Code Here

      // check wrapping status
      assertUnwrapped(wrappingInfos[0]);
      assertFullyWrapped(wrappingInfos[1]);
      assertUnwrapped(wrappingInfos[2]);
      // check interception counts
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertEquals(0, binding.total);
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertTrue(instance.total >= 3 && instance.total <= 6);
      assertEquals(0, instance.constructor);
      assertTrue(instance.fieldRead >= 1 && instance.fieldRead <= 2);
      assertTrue(instance.fieldWrite >=1 && instance.fieldWrite <= 2);
      assertTrue(instance.method >= 1 && instance.method <= 2);
View Full Code Here

      // check wrapping status
      assertUnwrapped(wrappingInfos[0]);
      assertFullyWrapped(wrappingInfos[1]);
      assertFullyWrapped(wrappingInfos[2]);
      // check interception counts
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertEquals(4, binding.total);
      assertEquals(1, binding.constructor);
      assertEquals(1, binding.fieldRead);
      assertEquals(1, binding.fieldWrite);
      assertEquals(1, binding.method);
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertEquals(3, instance.total);
      assertEquals(0, instance.constructor);
      assertEquals(1, instance.fieldRead);
      assertEquals(1, instance.fieldWrite);
      assertEquals(1, instance.method);
View Full Code Here

      // check wrapping status
      assertFullyWrapped(wrappingInfos[0]);
      assertFullyWrapped(wrappingInfos[1]);
      assertFullyWrapped(wrappingInfos[2]);
      // check interception counts
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertEquals(4, binding.total);
      assertEquals(1, binding.constructor);
      assertEquals(1, binding.fieldRead);
      assertEquals(1, binding.fieldWrite);
      assertEquals(1, binding.method);
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertTrue(instance.total >= 6 && instance.total <= 9);
      assertEquals(0, instance.constructor);
      assertTrue(instance.fieldRead >= 2 && instance.fieldRead <= 3);
      assertTrue(instance.fieldWrite >= 2 && instance.fieldWrite <= 3);
      assertTrue(instance.method >= 2 && instance.method <= 3);
View Full Code Here

      // run scenario
      POJOWrappingInfo[] wrappingInfos = scenarioLoader.executeAfterBindingRemoval();
      // check wrapping status
      assertUnwrapped(wrappingInfos[0]);
      // check interception counts
      InterceptionsCount binding = BindingInterceptor.getInterceptionsCount();
      assertEquals(0, binding.total);
      InterceptionsCount instance = InstanceInterceptor.getInterceptionsCount();
      assertEquals(0, instance.total);
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.aop.jdk15.AnnotatedPOJO

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.