use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class ResourceAdapterNameTestCase method getDeployment.
@Deployment
public static Archive getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "resource-adapter-name-mdb-test.jar");
ejbJar.addClasses(OverriddenResourceAdapterNameMDB.class, JMSMessagingUtil.class, ResourceAdapterNameTestCase.class, JmsQueueSetup.class);
ejbJar.addPackage(JMSOperations.class.getPackage());
ejbJar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.dmr \n"), "MANIFEST.MF");
return ejbJar;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class SimpleTimerMDBTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "testTimerServiceSimple.war");
war.addPackage(SimpleTimerMDBTestCase.class.getPackage());
war.addClass(CreateTopicSetupTask.class);
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class MDBTestCase method getDeployment.
@Deployment
public static Archive getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "mdb.jar").addPackage(MDBWithDeliveryActiveAnnotation.class.getPackage()).addPackage(JMSOperations.class.getPackage()).addClass(TimeoutUtil.class).addAsManifestResource(MDBWithDeliveryActiveAnnotation.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml").addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.dmr \n"), "MANIFEST.MF");
// grant necessary permissions
ejbJar.addAsResource(createPermissionsXmlAsset(new PropertyPermission("ts.timeout.factor", "read")), "META-INF/jboss-permissions.xml");
return ejbJar;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class DynamicMessageListenerTestCase method createDeplyoment.
@Deployment
public static Archive createDeplyoment() {
final EnterpriseArchive ear = create(EnterpriseArchive.class, "ear-with-rar.ear").addAsModule(create(JavaArchive.class, "telnet-ra.rar").addAsManifestResource(TelnetResourceAdapter.class.getPackage(), "ra.xml", "ra.xml").addPackages(true, TelnetResourceAdapter.class.getPackage(), TelnetListener.class.getPackage(), TelnetServer.class.getPackage())).addAsModule(create(JavaArchive.class, "mdb.jar").addClasses(MyMdb.class));
ear.addAsManifestResource(createPermissionsXmlAsset(// Cmd (TelnetServer package) uses PropertyEditorManager#registerEditor during static initialization
new PropertyPermission("*", "read,write"), // TelnetServer binds socket and accepts connections
new SocketPermission("*", "accept,listen")), "permissions.xml");
return ear;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class MDB21TestCase method getDeployment.
@Deployment
public static Archive getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "mdb.jar");
ejbJar.addClasses(EJB2xMDB.class, AbstractMDB2xTestCase.class);
ejbJar.addPackage(JMSOperations.class.getPackage());
ejbJar.addClasses(JmsQueueSetup.class, TimeoutUtil.class);
ejbJar.addAsManifestResource(MDB21TestCase.class.getPackage(), "ejb-jar-21.xml", "ejb-jar.xml");
ejbJar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.dmr \n"), "MANIFEST.MF");
ejbJar.addAsManifestResource(createPermissionsXmlAsset(new PropertyPermission("ts.timeout.factor", "read")), "jboss-permissions.xml");
return ejbJar;
}
Aggregations