Package org.jboss.cdi.tck.shrinkwrap

Examples of org.jboss.cdi.tck.shrinkwrap.WebArchiveBuilder


public class RawInstanceInitMethodInjectionTest extends AbstractTest {

    @ShouldThrowException(DefinitionException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClass(RawInstanceInitMethodInjectionTest.class)
                .withClasses(Foo.class, InitMethodInjectionBar.class).build();
    }
View Full Code Here


@SpecVersion(spec = "cdi", version = "20091101")
public class BuiltinEventDecoratorTest extends AbstractDecoratorTest {

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(BuiltinEventDecoratorTest.class)
                .withClass(AbstractDecoratorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators().clazz(FooEventDecorator.class.getName())
                        .clazz(StringEventDecorator.class.getName()).clazz(CharSequenceEventDecorator.class.getName())
View Full Code Here

@SpecVersion(spec = "cdi", version = "20091101")
public class BeanManagerDecoratorTest extends AbstractDecoratorTest {

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(BeanManagerDecoratorTest.class)
                .withClass(AbstractDecoratorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators()
                                .clazz(BeanManagerDecorator.class.getName()).up()).build();
View Full Code Here

@SpecVersion(spec = "cdi", version = "20091101")
public class BuiltinHttpServletRequestDecoratorTest extends AbstractDecoratorTest {

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(BuiltinHttpServletRequestDecoratorTest.class)
                .withClass(AbstractDecoratorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators()
                                .clazz(HttpServletRequestDecorator1.class.getName())
View Full Code Here

@SpecVersion(spec = "cdi", version = "20091101")
public class BuiltinHttpSessionDecoratorTest extends AbstractDecoratorTest {

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(BuiltinHttpSessionDecoratorTest.class)
                .withClass(AbstractDecoratorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators()
                                .clazz(HttpSessionDecorator1.class.getName()).clazz(HttpSessionDecorator2.class.getName()).up())
View Full Code Here

        EnterpriseArchive enterpriseArchive = new EnterpriseArchiveBuilder().noDefaultWebModule()
                .withTestClassDefinition(SpecializedProducerMethodInjectionNotAvailableTest.class)
                .withClasses(SpecializedFooMethodProducer.class, FooMethodProducer.class, ProducedFoo.class)
                .withBeanLibrary(Foo.class, Bar.class, Enterprise.class, Standard.class).build();

        enterpriseArchive.addAsModule(new WebArchiveBuilder().notTestArchive().withDefaultEjbModuleDependency()
                .withClasses(SpecializedProducerMethodInjectionNotAvailableTest.class, WebBar.class).build());

        return enterpriseArchive;
    }
View Full Code Here

public class ParameterizedTypesInjectionRawAmbiguousTest extends AbstractTest {

    @ShouldThrowException(DeploymentException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClass(ParameterizedTypesInjectionRawAmbiguousTest.class)
                .withClasses(Dao.class, ObjectDao.class, ConsumerRaw.class).build();
    }
View Full Code Here

    private static final String[] VALUES = { "foo", "bar", "baz" };

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(DestroyingNormalScopedInstanceTest.class)
                .withExtension(CustomScopeExtension.class).build();
    }
View Full Code Here

public class AddDeploymentProblemTest extends AbstractTest {

    @ShouldThrowException(DeploymentException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(AddDeploymentProblemTest.class)
                .withExtension(BeanDiscoveryObserver.class).build();
    }
View Full Code Here

@Test(groups = INTEGRATION)
public class ApplicationInitializationLifecycleTest extends AbstractTest {

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(ApplicationInitializationLifecycleTest.class)
                .withExtension(LifecycleMonitoringExtension.class).build();
    }
View Full Code Here

TOP

Related Classes of org.jboss.cdi.tck.shrinkwrap.WebArchiveBuilder

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.