Examples of AnnotatedPojo


Examples of org.apache.aries.transaction.pojo.AnnotatedPojo

  @Test
  public void testFindAnnotation() {
    MutableBeanMetadata mbm = new BeanMetadataImpl();
    mbm.setId("testPojo");
    mbm.setClassName(AnnotatedPojo.class.getName());
      parser.beforeInit(new AnnotatedPojo(), "testPojo", null, mbm);
     
      Skeleton.getSkeleton(helper).assertCalledExactNumberOfTimes(new MethodCall(TxComponentMetaDataHelper.class,
          "getComponentMethodTxAttribute", mbm, String.class), 3);
     
      Skeleton.getSkeleton(helper).assertCalledExactNumberOfTimes(new MethodCall(TxComponentMetaDataHelper.class,
View Full Code Here

Examples of org.apache.aries.transaction.pojo.AnnotatedPojo

        });
   
    Skeleton.getSkeleton(cdr).setReturnValue(new MethodCall(ComponentDefinitionRegistry.class,
        "getInterceptors", mbm), Arrays.asList(i));
   
    parser.beforeInit(new AnnotatedPojo(), "testPojo", null, mbm);
     
      Skeleton.getSkeleton(helper).assertCalledExactNumberOfTimes(new MethodCall(TxComponentMetaDataHelper.class,
          "getComponentMethodTxAttribute", mbm, String.class), 3);
     
      Skeleton.getSkeleton(helper).assertNotCalled(new MethodCall(TxComponentMetaDataHelper.class,
View Full Code Here

Examples of org.apache.aries.transaction.pojo.AnnotatedPojo

     
      PassThroughMetadata pmd = (PassThroughMetadata) cdr.getComponentDefinition(Constants.ANNOTATION_PARSER_BEAN_NAME);
      assertNotNull(pmd);
     
      AnnotationParser parser  = (AnnotationParser) pmd.getObject();
      parser.beforeInit(new AnnotatedPojo(), "top", null, compTop);
     
      assertEquals("Required", txenhancer.getComponentMethodTxAttribute(compTop, "increment"));
      assertEquals(1, cdr.getInterceptors(compTop).size());
    }
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.