Package org.jboss.shrinkwrap.impl.base.asset

Examples of org.jboss.shrinkwrap.impl.base.asset.ClassLoaderAsset


@RunWith(Arquillian.class)
public class MoviesEJBTest {
  @Deployment public static WebArchive createDeployment() {
    return ShrinkWrap.create(WebArchive.class, "test.war")
                .addClasses(Movie.class, MoviesImpl.class, Movies.class, MoviesRemote.class, MoviesEJBTest.class, Setup.class, Examples.class, ExampleDataProducer.class)
                .addAsResource(new ClassLoaderAsset("META-INF/ejb-jar.xml"), "META-INF/ejb-jar.xml")
                .addAsResource(new ClassLoaderAsset("META-INF/persistence.xml"), "META-INF/persistence.xml")
                .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
  }
View Full Code Here


  @Deployment(testable = false)
    public static WebArchive createDeployment() {
        WebArchive archive = ShrinkWrap.create(WebArchive.class, "moviefun.war")
            .addClasses(ActionServlet.class, SetupServlet.class, Movie.class, MovieController.class, Movies.class, MoviesImpl.class, MoviesRemote.class, JsfUtil.class, PaginationHelper.class, ExampleDataProducer.class, Examples.class, Setup.class)
            .addAsResource(new ClassLoaderAsset("META-INF/ejb-jar.xml") , "META-INF/ejb-jar.xml")
            .addAsResource(new ClassLoaderAsset("META-INF/persistence.xml") , "META-INF/persistence.xml")
            .addAsLibraries(new File("target/test-libs/commons-beanutils.jar"),
                new File("target/test-libs/commons-codec.jar"),
                new File("target/test-libs/commons-collections.jar"),
                new File("target/test-libs/commons-digester.jar"),
                new File("target/test-libs/commons-logging.jar"),
View Full Code Here

TOP

Related Classes of org.jboss.shrinkwrap.impl.base.asset.ClassLoaderAsset

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.