Skip to content

Commit

Permalink
WELD-1405 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jharting committed Mar 24, 2014
1 parent dff818d commit 61e513c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -42,7 +42,7 @@ public void destroyCalledWithBeanManagerGetReference(BeanManagerImpl beanManager
SomeBean.destroyCalled = false;
Set<Bean<?>> beans = beanManager.getBeans(SomeBean.class);
Bean<SomeBean> bean = Reflections.cast(beanManager.resolve(beans));
CreationalContext<SomeBean> ctx = beanManager.createCreationalContext(null);
CreationalContext<SomeBean> ctx = beanManager.createCreationalContext(bean);
SomeBean instance = (SomeBean) beanManager.getReference(bean, SomeBean.class, ctx);
bean.destroy(instance, ctx);
assertTrue(SomeBean.destroyCalled);
Expand Down

0 comments on commit 61e513c

Please sign in to comment.