use of org.apache.aries.blueprint.ComponentDefinitionRegistry in project aries by apache.
the class AnnotationEnablingNameSpaceHandlerTest method testAnnotationEnabled.
@Test
public void testAnnotationEnabled() throws Exception {
ComponentDefinitionRegistry cdr = parseCDR("enable-annotations.xml");
checkCompTop(cdr);
BeanMetadata pmd = (BeanMetadata) cdr.getComponentDefinition(TxNamespaceHandler.ANNOTATION_PARSER_BEAN_NAME);
assertNotNull(pmd);
assertEquals(3, pmd.getArguments().size());
assertEquals(cdr, ((PassThroughMetadata) pmd.getArguments().get(0).getValue()).getObject());
// assertEquals(tm, ((PassThroughMetadata) pmd.getArguments().get(2).getValue()).getObject());
}
Aggregations