use of org.apache.aries.blueprint.pojos.AmbiguousPojo in project aries by apache.
the class WiringTest method testSetterDisambiguation.
public void testSetterDisambiguation() throws Exception {
ComponentDefinitionRegistryImpl registry = parse("/test-wiring.xml");
Repository repository = new TestBlueprintContainer(registry).getRepository();
AmbiguousPojo pojo = (AmbiguousPojo) repository.create("ambiguousViaInt");
assertEquals(5, pojo.getSum());
pojo = (AmbiguousPojo) repository.create("ambiguousViaList");
assertEquals(7, pojo.getSum());
}
Aggregations