...
Code Block |
---|
@Override
protected Object createTest() throws Exception {
Class<? extends BindeableContainer> containerClass =
getTestClass().getJavaClass().getAnnotation(Container.class).value();
BindeableContainer installerContainer = getContainerInstance(containerClass);
installerContainer.initBindings();
installerContainer.addComponent(klass);
Object component = installerContainer.getComponent(klass);
return component;
}
|
...