use of org.apache.webbeans.portable.events.discovery.AfterDeploymentValidationImpl in project tomee by apache.
the class WebappBeanManagerTest method containerEventsShouldntGoUp.
@Test
public void containerEventsShouldntGoUp() {
final WebappWebBeansContext ctx = new WebappWebBeansContext(Collections.<Class<?>, Object>emptyMap(), new Properties(), new WebBeansContext());
final WebappBeanManager wbm = new WebappBeanManager(ctx) {
@Override
public BeanManagerImpl getParentBm() {
throw new IllegalStateException("shouldn't be called");
}
};
wbm.fireEvent(new GProcessProducer(null, null), true);
wbm.fireEvent(new GProcessProducerField(null, null, null), true);
wbm.fireEvent(new GProcessProducerMethod(null, null, null), true);
wbm.fireEvent(new GProcessInjectionTarget(null, null), true);
wbm.fireEvent(new GProcessBean(null, null), true);
wbm.fireEvent(new GProcessAnnotatedType(null), true);
wbm.fireEvent(new GProcessSessionBean(null, null, null, null), true);
wbm.fireEvent(new AfterBeanDiscoveryImpl(ctx), true);
wbm.fireEvent(new AfterDeploymentValidationImpl(wbm), true);
wbm.fireEvent(new BeforeBeanDiscoveryImpl(ctx), true);
wbm.fireEvent(new BeforeShutdownImpl(), true);
}
Aggregations