git.schokokeks.org
Repositories
Help
Report an Issue
playground.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
d129062
Branches
Tags
master
JEE-Testapp-01
JEE-Testapp-02
JEE-Testapp-03
JEE-Testapp-04
playground.git
testapp-jee6
src
test
java
com
haddouti
pg
jee6
OneServiceJarTest.java
- Integrate arquillian - first test case for JavaArchive - container: Weld EE embedded - MS: JEE-Testapp-01
Hafid Haddouti
commited
d129062
at 2014-04-26 19:46:52
OneServiceJarTest.java
Blame
History
Raw
package com.haddouti.pg.jee6; import javax.ejb.EJB; import junit.framework.Assert; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.spec.JavaArchive; import org.junit.Test; import org.junit.runner.RunWith; import com.haddouti.pg.jee6.service.OneStatelessBean; @RunWith(Arquillian.class) public class OneServiceJarTest { @EJB OneService oneService; @Deployment public static JavaArchive createDeployment() { return ShrinkWrap.create(JavaArchive.class) .addClass(OneStatelessBean.class) .addClass(OneService.class) .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"); } @Test public void testOne() { System.out.println(oneService); Assert.assertNotNull(oneService); } }