use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class AbstractTestsuite method createDeployment.
public static JavaArchive createDeployment(String name) throws Exception {
JavaArchive ja = ShrinkWrap.create(JavaArchive.class, name + ".jar");
ja.addClasses(ConnectionListenerTestCase.class, AbstractTestsuite.class, JpaTestSlsb.class, JpaTestSlsbRemote.class, MgmtOperationException.class, ContainerResourceMgmtTestBase.class).addAsManifestResource(new StringAsset("Dependencies: org.jboss.dmr \n"), "MANIFEST.MF");
return ja;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class LayeredDistributionTestCase method getDeployment.
@Deployment(name = DEPLOYMENT, managed = false, testable = false)
@TargetsContainer(CONTAINER)
public static Archive<?> getDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "test-deployment.war");
// set dependency to the test deployment
war.addClass(LayeredTestServlet.class);
war.setManifest(new StringAsset("Manifest-Version: 1.0" + System.getProperty("line.separator") + "Dependencies: org.jboss.ldtc, org.jboss.modules" + System.getProperty("line.separator")));
return war;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class RestoreOriginalRequestTestCase method deploymentSP1.
@Deployment(name = "service-provider-1")
public static WebArchive deploymentSP1() {
WebArchive serviceProvider = serviceProvider("sp-redirect1.war");
serviceProvider.add(new StringAsset("Back to the original requested resource."), "savedRequest/savedRequest.html");
return serviceProvider;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class SAMLIDPInitiatedTestCase method deploymentSP1.
@Deployment(name = "service-provider-1")
public static WebArchive deploymentSP1() {
WebArchive serviceProvider = serviceProvider("sp-post1.war");
serviceProvider.add(new StringAsset("Back to the original requested resource."), "savedRequest/savedRequest.jsp");
return serviceProvider;
}
use of org.jboss.shrinkwrap.api.asset.StringAsset in project wildfly by wildfly.
the class ConfigPropertyTestCase method createDeployment.
/**
* Define the deployment
*
* @return The deployment archive
*/
@Deployment
public static ResourceAdapterArchive createDeployment() throws Exception {
String deploymentName = "as7_1452.rar";
ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, deploymentName);
JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "as7_1452.jar");
ja.addPackage("org.jboss.as.test.smoke.deployment.rar.configproperty").addClasses(ConfigPropertyTestCase.class, MgmtOperationException.class, XMLElementReader.class, XMLElementWriter.class);
ja.addPackage(AbstractMgmtTestBase.class.getPackage());
raa.addAsLibrary(ja);
raa.addAsManifestResource(ConfigPropertyTestCase.class.getPackage(), "ra.xml", "ra.xml").addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client,org.jboss.dmr,org.jboss.as.cli\n"), "MANIFEST.MF");
return raa;
}
Aggregations