Search in sources :

Example 11 with WeldSEClassPath

use of org.jboss.weld.environment.se.test.arquillian.WeldSEClassPath in project core by weld.

the class BeanDiscoveryWithoutIsolationTest method getDeployment.

@Deployment
public static Archive<?> getDeployment() {
    oldArchiveIsolationProperty = System.getProperty(Weld.ARCHIVE_ISOLATION_SYSTEM_PROPERTY);
    System.setProperty(Weld.ARCHIVE_ISOLATION_SYSTEM_PROPERTY, "false");
    WeldSEClassPath archives = ShrinkWrap.create(WeldSEClassPath.class);
    JavaArchive archive = ShrinkWrap.create(BeanArchive.class).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml").addClasses(Dog.class, Cat.class, Cow.class);
    archives.add(archive);
    return archives;
}
Also used : JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) WeldSEClassPath(org.jboss.weld.environment.se.test.arquillian.WeldSEClassPath) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

Deployment (org.jboss.arquillian.container.test.api.Deployment)11 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)11 WeldSEClassPath (org.jboss.weld.environment.se.test.arquillian.WeldSEClassPath)11 BeansXml (org.jboss.shrinkwrap.impl.BeansXml)9 ShouldThrowException (org.jboss.arquillian.container.test.api.ShouldThrowException)2 BeanArchive (org.jboss.shrinkwrap.api.BeanArchive)2