Author: gavin.king(a)jboss.com
Date: 2009-01-12 11:32:43 -0500 (Mon, 12 Jan 2009)
New Revision: 893
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/InjectionPointTest.java
Log:
ditch getInstance()
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/InjectionPointTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/InjectionPointTest.java 2009-01-12
16:17:02 UTC (rev 892)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/InjectionPointTest.java 2009-01-12
16:32:43 UTC (rev 893)
@@ -47,29 +47,7 @@
@SpecVersion("20081222")
public class InjectionPointTest extends AbstractTest
{
- @Test(groups = { "broken", "injectionPoint" })
- @SpecAssertion(section = "5.11")
- public void testGetInstance()
- {
- webBeansBootstrap.setWebBeanDiscovery(new
MockWebBeanDiscovery(FieldInjectionPointBean.class,
BeanWithInjectionPointMetadata.class));
- webBeansBootstrap.boot();
- // Get an instance of the bean which has another bean injected into it
- try
- {
- activateDependentContext();
- FieldInjectionPointBean beanWithInjectedBean =
manager.getInstanceByType(FieldInjectionPointBean.class, new CurrentBinding());
- BeanWithInjectionPointMetadata beanWithInjectionPoint =
beanWithInjectedBean.getInjectedBean();
- assert beanWithInjectionPoint.getInjectedMetadata() != null;
- //TODO Fix injection issue where raw bean is used instead of proxied bean
- assert
beanWithInjectionPoint.getInjectedMetadata().getInstance().equals(beanWithInjectedBean);
- }
- finally
- {
- deactivateDependentContext();
- }
- }
-
@Test(groups = { "injectionPoint" })
@SpecAssertion(section = "5.11")
public void testGetBean()
Show replies by date