@Deployment public static WebArchive processArchive() { return ShrinkWrap.create(WebArchive.class, "test.war") .addClass(AbstractFoxPlatformIntegrationTest.class) .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/SpringLookupManagedProcessEngineTest-context.xml", "applicationContext.xml") .addAsLibraries(DeploymentHelper.getEngineSpring()) .addAsManifestResource("org/camunda/bpm/integrationtest/deployment/spring/jboss-deployment-structure.xml", "jboss-deployment-structure.xml") .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/web.xml", "web.xml"); }
@Deployment(order=1) public static WebArchive delegateDeployment() { WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "service.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addClass(AbstractFoxPlatformIntegrationTest.class) .addClass(StartProcessSLSB.class) .addClass(StartProcessInterface.class) .addAsManifestResource(new StringAsset("Dependencies: org.camunda.bpm.camunda-engine"), "MANIFEST.MF"); // get access to engine classes TestContainer.addContainerSpecificResourcesForNonPa(webArchive); return webArchive; }
@Deployment public static WebArchive processArchive() { // deploy spring Process Application (does not include ejb-client nor cdi modules) return ShrinkWrap.create(WebArchive.class, "test.war") // add example bean to serve as JavaDelegate .addClass(ExampleBean.class) // add process definitions .addAsResource("org/camunda/bpm/integrationtest/functional/spring/SpringExpressionResolvingTest.testResolveBean.bpmn20.xml") .addAsResource("org/camunda/bpm/integrationtest/functional/spring/SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn20.xml") // add custom servlet process application .addClass(CustomServletProcessApplication.class) // regular deployment descriptor .addAsResource("META-INF/processes.xml", "META-INF/processes.xml") // web xml that bootstrapps spring .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/web.xml", "web.xml") // spring application context & libs .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/SpringExpressionResolvingTest-context.xml", "applicationContext.xml") .addAsLibraries(DeploymentHelper.getEngineSpring()) // adding module dependency on process engine module (jboss only) .addAsManifestResource("org/camunda/bpm/integrationtest/functional/spring/jboss-deployment-structure.xml", "jboss-deployment-structure.xml"); }
@Deployment public static WebArchive processArchive() { // deploy spring Process Application (does not include ejb-client nor cdi modules) return ShrinkWrap.create(WebArchive.class, "test.war") // add example bean to serve as JavaDelegate .addClass(ErrorDelegate.class) .addClass(RetryConfig.class) // add process definitions .addAsResource("org/camunda/bpm/integrationtest/functional/RetryConfigurationTest.testResolveRetryConfigBean.bpmn20.xml") // add custom servlet process application .addClass(CustomServletProcessApplication.class) // regular deployment descriptor .addAsResource("META-INF/processes.xml", "META-INF/processes.xml") // web xml that bootstrapps spring .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/web.xml", "web.xml") // spring application context & libs .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/SpringRetryConfigurationTest-context.xml", "applicationContext.xml") .addAsLibraries(DeploymentHelper.getEngineSpring()) // adding module dependency on process engine module (jboss only) .addAsManifestResource("org/camunda/bpm/integrationtest/functional/spring/jboss-deployment-structure.xml", "jboss-deployment-structure.xml"); }
@Deployment(name = "static") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "static.war") .addAsManifestResource("simpleapi.yaml", "openapi.yaml"); }
@Deployment(name = "airlinesFiltered") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlinesFiltered.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addPackages(true, "org.eclipse.microprofile.openapi.filter") .addAsManifestResource("openapi.yaml", "openapi.yaml") .addAsManifestResource("microprofile-config-filter.properties", "microprofile-config.properties"); }
@Deployment(name = "airlines") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlines.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addAsManifestResource("exclude-class-microprofile-config.properties", "microprofile-config.properties"); }
@Deployment(name = "airlines") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlines.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addAsManifestResource("package-microprofile-config.properties", "microprofile-config.properties"); }
@Deployment(name = "airlines") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlines.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addAsManifestResource("server-microprofile-config.properties", "microprofile-config.properties"); }
@Deployment(name = "airlines") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlines.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addAsManifestResource("exclude-classes-microprofile-config.properties", "microprofile-config.properties"); }
@Deployment(name = "airlines") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlines.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addAsManifestResource("classes-microprofile-config.properties", "microprofile-config.properties"); }
@Deployment(name = "airlines") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlines.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addAsManifestResource("class-microprofile-config.properties", "microprofile-config.properties"); }
@Deployment(name = "airlines") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlines.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addAsManifestResource("scan-disable-microprofile-config.properties", "microprofile-config.properties"); }
@Deployment(name = "airlines") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlines.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addAsManifestResource("exclude-package-microprofile-config.properties", "microprofile-config.properties"); }
@Deployment(name = "airlines") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlines.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addAsManifestResource("openapi.yaml", "openapi.yaml"); }
@Deployment(name = "airlinesModelReader") public static WebArchive createDeployment() { return ShrinkWrap.create(WebArchive.class, "airlinesReader.war") .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines") .addPackages(true, "org.eclipse.microprofile.openapi.reader") .addAsManifestResource("microprofile-reader.properties", "microprofile-config.properties"); }
private static WebArchive createBaseDeployment(WebArchive war, String prefix, String injectorProvider) { String webXMLPath = prefix + "/" + (injectorProvider.equals("cdi") ? "web-cdi" : "web") + ".xml"; if (war == null) { war = ShrinkWrap.create(WebArchive.class); } String webXML = loadResource(webXMLPath); webXML = String.format(webXML, injectorProvider); war.setWebXML(new StringAsset(webXML)); if ("cdi".equals(injectorProvider)) { String contextXML = loadResource("context.xml"); war.addAsManifestResource(new StringAsset(contextXML), "context.xml"); } return war; }
@Deployment public static WebArchive create() { return ShrinkWrap.create(WebArchive.class) .addClasses(User.class, UserRepository.class, UserRepositoryTest.class) .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addAsResource("test-persistence.xml", "META-INF/persistence.xml") .addAsManifestResource(new StringAsset("Dependencies: com.h2database.h2\n"), "MANIFEST.MF"); }
@Deployment public static WebArchive create() { return ShrinkWrap.create(WebArchive.class) .addClasses(User.class, UserRepository.class, UserRepositoryTest.class) .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addAsResource("test-persistence.xml", "META-INF/persistence.xml") .addAsManifestResource(new StringAsset("Dependencies: com.h2database.h2\n"), "MANIFEST.MF"); }
@Deployment(testable = false) public static WebArchive createDeployment() { DescriptorBuilder config = DescriptorBuilder.DEFAULT. injector(InjectorProvider.CDI). servletApp("bridge.inject.providedcdi"). listener("org.jboss.weld.environment.servlet.Listener").embedPortletContainer(). resourceEnvRef("BeanManager", "javax.enterprise.inject.spi.BeanManager"); WebArchive war = createServletDeployment(config, true); war.addAsManifestResource(new StringAsset("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<Context>\n" + "<Resource name=\"BeanManager\" auth=\"Container\" type=\"javax.enterprise.inject.spi.BeanManager\" factory=\"org.jboss.weld.resources.ManagerObjectFactory\"/>\n" + "<WatchedResource>WEB-INF/web.xml</WatchedResource>\n" + "<WatchedResource>META-INF/context.xml</WatchedResource>\n" + "</Context>"), "context.xml"); war.addAsWebInfResource(new StringAsset("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<beans xmlns=\"http://java.sun.com/xml/ns/javaee\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd\">\n" + "</beans>"), "beans.xml"); return war; }