use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.
the class PartialBeanAsAbstractClassTest method war.
@Deployment
public static WebArchive war() {
String simpleName = PartialBeanAsAbstractClassTest.class.getSimpleName();
String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, archiveName + ".jar").addPackage(PartialBeanAsAbstractClassTest.class.getPackage()).addPackage(TestPartialBeanBinding.class.getPackage()).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
WebArchive webArchive = ShrinkWrap.create(WebArchive.class, archiveName + ".war").addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndPartialBeanArchive()).addAsLibraries(testJar).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
return webArchive;
}
use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.
the class ConcurrencyBugTest method war.
@Deployment
public static WebArchive war() {
final String simpleName = ConcurrencyBugTest.class.getSimpleName();
final String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
final JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, archiveName + ".jar").addPackage(ConcurrencyBugTest.class.getPackage()).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
final WebArchive webArchive = ShrinkWrap.create(WebArchive.class, archiveName + ".war").addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndPartialBeanArchive()).addAsLibraries(testJar).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
return webArchive;
}
use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.
the class DisabledRepositoryTest method deployment.
@Deployment
public static Archive<?> deployment() {
WebArchive archive = initDeployment().addClasses(SimpleRepository.class, RepositoryDeactivator.class, DisabledRepository.class);
archive.delete("WEB-INF/classes/META-INF/apache-deltaspike.properties");
archive.addAsWebInfResource("disabled/META-INF/apache-deltaspike.properties", "classes/META-INF/apache-deltaspike.properties");
return archive;
}
use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.
the class ScopedPartialBeanTest method war.
@Deployment
public static WebArchive war() {
String simpleName = ScopedPartialBeanTest.class.getSimpleName();
String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, archiveName + ".jar").addPackage(ScopedPartialBeanTest.class.getPackage()).addPackage(TestPartialBeanBinding.class.getPackage()).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
WebArchive webArchive = ShrinkWrap.create(WebArchive.class, archiveName + ".war").addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndPartialBeanArchive()).addAsLibraries(testJar).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
return webArchive;
}
use of org.jboss.arquillian.container.test.api.Deployment in project deltaspike by apache.
the class ExplicitlyGroupedConversationsTest method deploy.
@Deployment
public static WebArchive deploy() {
String simpleName = ExplicitlyGroupedConversationsTest.class.getSimpleName();
String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, archiveName + ".jar").addPackage(ExplicitlyGroupedConversationsTest.class.getPackage().getName()).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
return ShrinkWrap.create(WebArchive.class, archiveName + ".war").addAsLibraries(ArchiveUtils.getDeltaSpikeCoreArchive()).addAsLibraries(testJar).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
}
Aggregations