Search in sources :

Example 1 with SimpleBean

use of org.apache.aries.blueprint.pojos.SimpleBean in project aries by apache.

the class BeanLoadingTest method testLoadSimpleBean.

public void testLoadSimpleBean() throws Exception {
    ComponentDefinitionRegistryImpl registry = parse("/test-bean-classes.xml");
    Repository repository = new TestBlueprintContainer(registry).getRepository();
    Object obj = repository.create("simpleBean");
    assertNotNull(obj);
    assertTrue(obj instanceof SimpleBean);
}
Also used : Repository(org.apache.aries.blueprint.di.Repository) SimpleBean(org.apache.aries.blueprint.pojos.SimpleBean) ComponentDefinitionRegistryImpl(org.apache.aries.blueprint.parser.ComponentDefinitionRegistryImpl)

Aggregations

Repository (org.apache.aries.blueprint.di.Repository)1 ComponentDefinitionRegistryImpl (org.apache.aries.blueprint.parser.ComponentDefinitionRegistryImpl)1 SimpleBean (org.apache.aries.blueprint.pojos.SimpleBean)1