The arquillian package deploys fine in jboss 6 and the EJB injection works but when i try to run the tests it does not work...
The EJB uses a persistence:
@PersistenceContext(unitName = "xxxxxxx-jta")
When i try to get all the Dates it does not work:
return em.find(DateEntity.class, id);
java.lang.ClassCastException: com.xxxxxxx.entity.ConcretDateEntity cannot be cast to com.xxxxxx.entity.DateEntity
Do i need to include the persistence.xml as well to run the test?
thanks in advance,
It's a standard deployment, so you'll need to add the same things that you would need in the deployment outside of Arquillian.