This content has been marked as final.
Show 2 replies
-
1. Re: integration test with Arquillian?
aslak Mar 26, 2012 10:46 AM (in response to reschifl)sure, soemthing like this should work:
@RunWith(Arquillian.class) public class TestClass { @Deployment(name = "X") public static EnterpriseArchive back() { return ShrinkWrap.create(EnterpriseArchive.class) .addAsModule(ShrinkWrap.create(JavaArchive.class) .addClass(MyEJB.class)); } @Deployment(name = "Y") public static EnterpriseArchive client() { return ShrinkWrap.create(EnterpriseArchive.class) .addAsModule(ShrinkWrap.create(JavaArchive.class) .addClass(MyEJB.class)); } @EJB(mappedName="some-jndi-name") private MyEJB ejb; @Test @OperatedOnDeployment("Y") public void shouldBeAbleTo() throws Exception { Assert.assertNotNull(ejb); } }
-
2. Re: integration test with Arquillian?
reschifl Mar 28, 2012 4:50 AM (in response to aslak)Hello Aslak,
thank you for you answer.
This looks great easy and works fine except the error shows here:
https://community.jboss.org/thread/196560
Regards,
Lars