use of org.apache.aries.blueprint.pojos.BeanD in project aries by apache.
the class ExtPlaceholderTest method testStaticValues.
@Test
public void testStaticValues() throws Exception {
ComponentDefinitionRegistryImpl registry = parse("/test-staticvalues.xml");
Repository repository = new TestBlueprintContainer(registry).getRepository();
Object obj1 = repository.create("beanD");
assertNotNull(obj1);
assertTrue(obj1 instanceof BeanD);
BeanD beanD = (BeanD) obj1;
assertEquals(ExtNamespaceHandler.BLUEPRINT_EXT_NAMESPACE_V1_5, beanD.getName());
}
use of org.apache.aries.blueprint.pojos.BeanD in project aries by apache.
the class WiringTest method testCompoundProperties.
public void testCompoundProperties() throws Exception {
ComponentDefinitionRegistryImpl registry = parse("/test-wiring.xml");
Repository repository = new TestBlueprintContainer(registry).getRepository();
Object obj5 = repository.create("compound");
assertNotNull(obj5);
assertTrue(obj5 instanceof PojoB);
PojoB pojob = (PojoB) obj5;
assertEquals("hello bean property", pojob.getBean().getName());
Object obj = repository.create("goodIdRef");
assertNotNull(obj);
assertTrue(obj instanceof BeanD);
BeanD bean = (BeanD) obj;
assertEquals("pojoA", bean.getName());
}
Aggregations