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;
}
Aggregations