congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WebArchive.addAsLibraries
Code IndexAdd Tabnine to your IDE (free)

How to use
addAsLibraries
method
in
org.jboss.shrinkwrap.api.spec.WebArchive

Best Java code snippets using org.jboss.shrinkwrap.api.spec.WebArchive.addAsLibraries (Showing top 20 results out of 360)

Refine searchRefine arrow

  • WebArchive.addAsWebInfResource
  • ShrinkWrap.create
  • Deployment.<init>
origin: camunda/camunda-bpm-platform

@Deployment(managed=false, name="deployment")
public static WebArchive processArchive() {    
 
 return  ShrinkWrap.create(WebArchive.class)
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addAsLibraries(DeploymentHelper.getEjbClient())
     .addAsResource("META-INF/processes.xml", "META-INF/processes.xml")
     .addAsLibraries(
      ShrinkWrap.create(JavaArchive.class, "engine1.jar")
         .addAsResource("singleEngine.xml", "META-INF/processes.xml"),
      ShrinkWrap.create(JavaArchive.class, "engine2.jar")
         // we add the same process engine configuration multiple times -> fails
         .addAsResource("singleEngine.xml", "META-INF/processes.xml")
    );
}

origin: camunda/camunda-bpm-platform

@Deployment
public static WebArchive processArchive() {    
 
 return initWebArchiveDeployment()
     .addAsLibraries(ShrinkWrap.create(JavaArchive.class, "engine1.jar")
         .addAsResource("singleEngine.xml", "META-INF/processes.xml")
      );
     
}

origin: crashub/crash

@Override
protected void setUp() throws Exception {
 java.io.File warFile = java.io.File.createTempFile("test", ".war");
 warFile.deleteOnExit();
 JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "foo.jar");
 jar.addClass(FSTestCase.class);
 WebArchive war = ShrinkWrap.create(WebArchive.class);
 war.addAsLibraries(jar);
 ZipExporter exporter = war.as(ZipExporter.class);
 exporter.exportTo(warFile, true);
 this.warFile = warFile;
}
origin: camunda/camunda-bpm-platform

public static WebArchive initWebArchiveDeployment(String name, String processesXmlPath) {
 WebArchive archive = ShrinkWrap.create(WebArchive.class, name)
      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
      .addAsLibraries(DeploymentHelper.getEngineCdi())
      .addAsResource(processesXmlPath, "META-INF/processes.xml")
      .addClass(AbstractFoxPlatformIntegrationTest.class)
      .addClass(TestConstants.class);
 TestContainer.addContainerSpecificResources(archive);
 return archive;
}
origin: camunda/camunda-bpm-platform

@Deployment(name= "engine1", order = 1)
public static WebArchive createDeployment() {
 final WebArchive webArchive = initWebArchiveDeployment("paEngine1.war", "org/camunda/bpm/integrationtest/paOnEngine1.xml")
  .addAsResource("org/camunda/bpm/integrationtest/functional/cdi/CdiBeanResolutionTwoEnginesTest.testResolveBean.bpmn20.xml")
  .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificProcessEngineConfigurationClass(webArchive);
 return webArchive;
}
origin: camunda/camunda-bpm-platform

@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");
}

origin: camunda/camunda-bpm-platform

@Deployment
public static WebArchive processArchive() {    
 
 return initWebArchiveDeployment()
     .addAsLibraries(
      ShrinkWrap.create(JavaArchive.class, "engine1.jar")
         .addAsResource("singleEngine.xml", "META-INF/processes.xml"),
      ShrinkWrap.create(JavaArchive.class, "engine2.jar")
         .addAsResource("twoEngines.xml", "META-INF/processes.xml")
    );
}

origin: camunda/camunda-bpm-platform

 .useLegacyLocalRepo(true).workOffline().loadPomFromFile("pom.xml");
WebArchive wa = ShrinkWrap.create(WebArchive.class, "rest-test.war").setWebXML(webXmlPath)
  .addAsLibraries(resolver.resolve("org.codehaus.jackson:jackson-jaxrs:1.6.5").withTransitivity().asFile())
  .addAsLibraries(resolver.addDependencies(
    MavenDependencies.createDependency("org.mockito:mockito-core", ScopeType.TEST, false,
    MavenDependencies.createExclusion("org.hamcrest:hamcrest-core"))).resolve()
origin: camunda/camunda-bpm-platform

@Deployment
public static WebArchive processArchive() {
 return initWebArchiveDeployment("test.war", "singleEngineWithProcessEnginePlugin.xml")
   .addClass(GroovyProcessEnginePlugin.class)
   .addAsResource("org/camunda/bpm/integrationtest/deployment/war/groovy.bpmn20.xml")
   .addAsResource("org/camunda/bpm/integrationtest/deployment/war/groovyAsync.bpmn20.xml")
   .addAsLibraries(Maven.resolver()
     .offline()
     .loadPomFromFile("pom.xml")
     .resolve("org.codehaus.groovy:groovy-all")
     .withoutTransitivity()
     .as(JavaArchive.class));
}
origin: camunda/camunda-bpm-platform

@Deployment
public static WebArchive processArchive() {
 return ShrinkWrap.create(WebArchive.class, "test.war")
  .addClass(AbstractFoxPlatformIntegrationTest.class)
  .addClass(CustomSpringServletProcessApplication.class)
  .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/SpringServletPALifecycleTest-context.xml", "applicationContext.xml")
  .addAsLibraries(DeploymentHelper.getEngineSpring())
  .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/web.xml", "web.xml");
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(managed=false, name="deployment")
public static WebArchive processArchive() {    
 
 return  ShrinkWrap.create(WebArchive.class, "test.war")
  .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
  .addAsLibraries(DeploymentHelper.getEjbClient())
  .addAsResource("META-INF/processes.xml", "META-INF/processes.xml")
  .addAsResource("org/camunda/bpm/integrationtest/functional/drools/TestDeploymentWithDroolsTaskFails.testDeployDroolsFails.bpmn20.xml");           
}

origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 // the test is deployed as a seperate deployment
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 // the test is deployed as a seperate deployment
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment
public static WebArchive processArchive() {    
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "test.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addAsLibraries(DeploymentHelper.getEngineCdi())
     .addClass(AbstractFoxPlatformIntegrationTest.class);
 
 TestContainer.addContainerSpecificResources(deployment);
 
 return deployment;
 
}

org.jboss.shrinkwrap.api.specWebArchiveaddAsLibraries

Popular methods of WebArchive

  • addAsWebInfResource
  • addClass
  • addClasses
  • addAsResource
  • addPackage
  • setWebXML
  • addAsLibrary
  • addAsWebResource
  • toString
  • add
  • addPackages
  • addAsServiceProvider
  • addPackages,
  • addAsServiceProvider,
  • get,
  • addAsManifestResource,
  • as,
  • delete,
  • merge,
  • setManifest,
  • contains

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now