This content has been marked as final.
Show 2 replies
-
1. Re: problem cast classes arquillian
hibernator_11 Jul 28, 2011 3:43 AM (in response to hibernator_11)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")
EntityManager em;
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,
-
2. Re: problem cast classes arquillian
aslak Jul 28, 2011 11:12 AM (in response to hibernator_11)It's a standard deployment, so you'll need to add the same things that you would need in the deployment outside of Arquillian.