Package org.jboss.shrinkwrap.api.spec

Examples of org.jboss.shrinkwrap.api.spec.WebArchive.addPackage()


    private BMTStateless bmtStateless;

    @Deployment
    public static Archive<?> deploy() {
        WebArchive war = ShrinkWrap.create(WebArchive.class, "test-mandatory.war");
        war.addPackage(BeanManagedTransactionsTestCase.class.getPackage());
        war.add(EmptyAsset.INSTANCE, "WEB-INF/beans.xml");
        return war;
    }

    @Test(expected = EJBException.class)
View Full Code Here


    @Deployment
    public static Archive<?> deploy() {

        WebArchive war = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME);
        war.addPackage(AnnotationLocalHomeTestCase.class.getPackage());
        war.addPackage(SimpleLocalInterface.class.getPackage());
        return war;
    }

    @Test
View Full Code Here

    @Deployment
    public static Archive<?> deploy() {

        WebArchive war = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME);
        war.addPackage(AnnotationLocalHomeTestCase.class.getPackage());
        war.addPackage(SimpleLocalInterface.class.getPackage());
        return war;
    }

    @Test
    public void testStatelessLocalHome() throws Exception {
View Full Code Here

    @Deployment
    public static Archive<?> deploy() {

        WebArchive war = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME);
        war.addPackage(SimpleLocalHomeTestCase.class.getPackage());
        war.addPackage(SimpleLocalInterface.class.getPackage());
        war.addAsWebInfResource(SimpleLocalHomeTestCase.class.getPackage(),"ejb-jar.xml" , "ejb-jar.xml");
        return war;
    }
View Full Code Here

    @Deployment
    public static Archive<?> deploy() {

        WebArchive war = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME);
        war.addPackage(SimpleLocalHomeTestCase.class.getPackage());
        war.addPackage(SimpleLocalInterface.class.getPackage());
        war.addAsWebInfResource(SimpleLocalHomeTestCase.class.getPackage(),"ejb-jar.xml" , "ejb-jar.xml");
        return war;
    }

    @Test
View Full Code Here

    private NeverSFSB sfsb;

    @Deployment
    public static Archive<?> deploy() {
        WebArchive war = ShrinkWrap.create(WebArchive.class, "test-never.war");
        war.addPackage(NeverTransactionTestCase.class.getPackage());
        war.add(EmptyAsset.INSTANCE, "WEB-INF/beans.xml");
        return war;
    }

    @Test
View Full Code Here

    @Deployment
    public static WebArchive createDeployment() {
        final WebArchive war = ShrinkWrap.create(WebArchive.class, "ejb-security-test.war");
        war.addClasses(BeanWithoutExplicitSecurityDomain.class, Restriction.class, FullAccess.class, EjbSecurityDomainSetup.class, Util.class);
        war.addAsWebInfResource(EJBInWarDefaultSecurityDomainTestCase.class.getPackage(), "jboss-web.xml", "jboss-web.xml");
        war.addPackage(CommonCriteria.class.getPackage());
        war.addPackage(AbstractSecurityDomainSetup.class.getPackage());
        war.addAsResource(AnnotationAuthorizationTestCase.class.getPackage(), "users.properties", "users.properties");
        war.addAsResource(AnnotationAuthorizationTestCase.class.getPackage(), "roles.properties", "roles.properties");
        return war;
    }
View Full Code Here

    public static WebArchive createDeployment() {
        final WebArchive war = ShrinkWrap.create(WebArchive.class, "ejb-security-test.war");
        war.addClasses(BeanWithoutExplicitSecurityDomain.class, Restriction.class, FullAccess.class, EjbSecurityDomainSetup.class, Util.class);
        war.addAsWebInfResource(EJBInWarDefaultSecurityDomainTestCase.class.getPackage(), "jboss-web.xml", "jboss-web.xml");
        war.addPackage(CommonCriteria.class.getPackage());
        war.addPackage(AbstractSecurityDomainSetup.class.getPackage());
        war.addAsResource(AnnotationAuthorizationTestCase.class.getPackage(), "users.properties", "users.properties");
        war.addAsResource(AnnotationAuthorizationTestCase.class.getPackage(), "roles.properties", "roles.properties");
        return war;
    }
View Full Code Here

public class BeforeCompletionExceptionDestroysBeanTestCase {

    @Deployment
    public static Archive<?> deploy() {
        WebArchive war = ShrinkWrap.create(WebArchive.class, "test-beforecompletion.war");
        war.addPackage(BeforeCompletionExceptionDestroysBeanTestCase.class.getPackage());
        return war;
    }

    @Test
    public void testExceptionInBeforeCompletionDestroysBean() throws NamingException, SystemException, NotSupportedException,  HeuristicRollbackException, HeuristicMixedException {
View Full Code Here

    private MandatorySFSB sfsb;

    @Deployment
    public static Archive<?> deploy() {
        WebArchive war = ShrinkWrap.create(WebArchive.class, "test-mandatory.war");
        war.addPackage(SFSBMandatoryTransactionTestCase.class.getPackage());
        war.add(EmptyAsset.INSTANCE, "WEB-INF/beans.xml");
        return war;
    }

    @Test
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.