use of org.apache.deltaspike.cdise.openejb.bean.Foo in project deltaspike by apache.
the class OpenEJbContainerControlConfigurationTest method basicInjection.
@Test
public // useless because of tcks but nice to have when working on this specific container
void basicInjection() {
final CdiContainer container = CdiContainerLoader.getCdiContainer();
container.boot();
try {
final BeanManager beanManager = container.getBeanManager();
assertEquals("foo", Foo.class.cast(beanManager.getReference(beanManager.resolve(beanManager.getBeans(Foo.class)), Foo.class, null)).name());
} finally {
container.shutdown();
}
}
Aggregations