Package org.apache.aries.transaction.parsing

Examples of org.apache.aries.transaction.parsing.AnnotationParser


        helper = Skeleton.newMock(TxComponentMetaDataHelper.class);
        Skeleton.getSkeleton(helper).setReturnValue(new MethodCall(TxComponentMetaDataHelper.class,
          "getComponentMethodTxAttribute", ComponentMetadata.class, String.class), null);
        cdr = Skeleton.newMock(ComponentDefinitionRegistry.class);
        i = Skeleton.newMock(Interceptor.class);
        parser = new AnnotationParser(cdr, i, helper);
  }
View Full Code Here


     
     
      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

Related Classes of org.apache.aries.transaction.parsing.AnnotationParser

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.