assertTrue(obj instanceof Primavera);
assertEquals("stringToo", ((Primavera) obj).prop);
}
public void testCircular() throws Exception {
BlueprintRepository repository = createBlueprintContainer().getRepository();
// this should pass (we allow circular dependencies for components without init method)
Object obj1 = repository.create("a");
// test service and listener circular dependencies
Object obj2 = repository.create("service");
assertNotNull(obj2);
assertTrue(obj2 instanceof ServiceRegistration);
Object obj3 = repository.create("listener");
assertNotNull(obj3);
assertTrue(obj3 instanceof PojoListener);
assertEquals(obj2, ((PojoListener) obj3).getService() );
}