@Test public void canLookup_namedObject() { Assert.assertEquals("named", local().cdiNamed(TestObject.class, "named").getValue()); }
@Test public void canInject_namedObject() { Assert.assertEquals("named", this.namedObject.getValue()); }
@Test public void canLookup_complexBeans() { TestObject to = local().cdiComplex(TestObject.class) .named("namedScope") .scopeControl() .find().one(); Assert.assertEquals("namedWithScopeControl", to.getValue()); }