Package org.jboss.shrinkwrap.api.spec

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


public class TimerServiceInterceptorOrderTestCase {

    @Deployment
    public static Archive<?> deploy() {
        final WebArchive war = ShrinkWrap.create(WebArchive.class, "testTimerServiceInterceptorOrder.war");
        war.addPackage(TimerServiceInterceptorOrderTestCase.class.getPackage());
        war.addAsWebInfResource(TimerServiceInterceptorOrderTestCase.class.getPackage(), "beans.xml", "beans.xml");
        return war;

    }
View Full Code Here


public class DescriptorScheduleTestCase {

    @Deployment
    public static Archive<?> deploy() {
        final WebArchive war = ShrinkWrap.create(WebArchive.class, "testDescriptorSchedule.war");
        war.addPackage(DescriptorScheduleTestCase.class.getPackage());
        war.addAsWebInfResource(new StringAsset(EJB_JAR), "ejb-jar.xml");
        return war;

    }
View Full Code Here

    private static String INFO_MSG_FOR_CHECK = "info";
   
    @Deployment
    public static Archive<?> deploy() {
        final WebArchive war = ShrinkWrap.create(WebArchive.class, "testTimerServiceSimple.war");
        war.addPackage(SimpleTimerServiceTestCase.class.getPackage());
        return war;
    }

    @Test
    public void testAnnotationTimeoutMethod() throws NamingException {
View Full Code Here

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

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

    @Test
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

public class NonComponentResourceInjectionTestCase {

    @Deployment
    public static Archive<?> deployment() {
        WebArchive war = ShrinkWrap.create(WebArchive.class, "non-component.war");
        war.addPackage(NonComponentResourceInjectionTestCase.class.getPackage());
        return war;
    }

    @Test(expected = NamingException.class)
    public void testBindingDoesNotExist() throws NamingException {
View Full Code Here

public class InterceptorLifecycleSFSBTestCase {

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


    @Test
View Full Code Here

public class BootStrapValidationTestCase {

    @Deployment
    public static Archive<?> deploy() {
        final WebArchive war = ShrinkWrap.create(WebArchive.class, "testbootstrapvalidation.war");
        war.addPackage(BootStrapValidationTestCase.class.getPackage());
        return war;

    }

    @Test
View Full Code Here

public class GroupandGroupSequenceValidationTestCase {

    @Deployment
    public static Archive<?> deploy() {
        final WebArchive war = ShrinkWrap.create(WebArchive.class, "testgroupvalidation.war");
        war.addPackage(GroupandGroupSequenceValidationTestCase.class.getPackage());
        return war;

    }

    @Test
View Full Code Here

public class MessageInterpolationValidationTestCase {

    @Deployment
    public static Archive<?> deploy() {
        final WebArchive war = ShrinkWrap.create(WebArchive.class, "testmessageinterpolationvalidation.war");
        war.addPackage(MessageInterpolationValidationTestCase.class.getPackage());
        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.