-
Bug
-
Resolution: Done
-
Major
-
1.0.0.Alpha4
-
None
The Problem is within a abstract class that contains @EJB annotation.
When a testcase extens that abstract class the Beans will not be injected.
Here is a example code:
@RunWith(Arquillian.class)
public abstract class AbstractTestContext
{
@EJB
protected BeanOne beanOne;
@EJB
protected BeanTwo beanTwo;
@Deployment
public static JavaArchive getContextDeployment()
}
public class MyTest extends AbstractTestContext
{
@Test
public void testBeanOne()
@Test
public void testBeanOne()
{ Assert.assertNotNull(beanOne); }
}
After searching the Arquillian code i found the code for my problem in the TestEnricher API.