Search in sources :

Example 11 with TomcatParseBpmPlatformXmlStep

use of org.camunda.bpm.container.impl.tomcat.deployment.TomcatParseBpmPlatformXmlStep in project camunda-bpm-platform by camunda.

the class BpmPlatformXmlLocationTest method getBpmPlatformXmlFromEnvironmentVariableAsUrlLocation.

@Test
public void getBpmPlatformXmlFromEnvironmentVariableAsUrlLocation() {
    try {
        System.setProperty(BPM_PLATFORM_XML_SYSTEM_PROPERTY, BPM_PLATFORM_XML_LOCATION_URL_HTTP_PROTOCOL);
        URL url = new TomcatParseBpmPlatformXmlStep().lookupBpmPlatformXmlLocationFromEnvironmentVariable();
        assertEquals(BPM_PLATFORM_XML_LOCATION_URL_HTTP_PROTOCOL, url.toString());
    } finally {
        System.clearProperty(BPM_PLATFORM_XML_SYSTEM_PROPERTY);
    }
}
Also used : TomcatParseBpmPlatformXmlStep(org.camunda.bpm.container.impl.tomcat.deployment.TomcatParseBpmPlatformXmlStep) URL(java.net.URL) Test(org.junit.Test)

Example 12 with TomcatParseBpmPlatformXmlStep

use of org.camunda.bpm.container.impl.tomcat.deployment.TomcatParseBpmPlatformXmlStep in project camunda-bpm-platform by camunda.

the class BpmPlatformXmlLocationTest method getBpmPlatformXmlFromClasspath.

@Test
public void getBpmPlatformXmlFromClasspath() {
    String classPathResourceLocation = BpmPlatformXmlLocationTest.class.getPackage().getName().replace(".", "/") + "/conf/" + BPM_PLATFORM_XML_FILE;
    URL url = new TomcatParseBpmPlatformXmlStep().lookupBpmPlatformXmlFromClassPath(classPathResourceLocation);
    assertNotNull("Url should point to a bpm-platform.xml file.", url);
}
Also used : TomcatParseBpmPlatformXmlStep(org.camunda.bpm.container.impl.tomcat.deployment.TomcatParseBpmPlatformXmlStep) URL(java.net.URL) Test(org.junit.Test)

Aggregations

TomcatParseBpmPlatformXmlStep (org.camunda.bpm.container.impl.tomcat.deployment.TomcatParseBpmPlatformXmlStep)12 Test (org.junit.Test)11 URL (java.net.URL)10 File (java.io.File)6 Context (javax.naming.Context)2 InitialContext (javax.naming.InitialContext)2 SimpleNamingContext (org.springframework.mock.jndi.SimpleNamingContext)2 StandardServer (org.apache.catalina.core.StandardServer)1 DiscoverBpmPlatformPluginsStep (org.camunda.bpm.container.impl.deployment.DiscoverBpmPlatformPluginsStep)1 PlatformXmlStartProcessEnginesStep (org.camunda.bpm.container.impl.deployment.PlatformXmlStartProcessEnginesStep)1 StartJobExecutorStep (org.camunda.bpm.container.impl.deployment.jobexecutor.StartJobExecutorStep)1 StartManagedThreadPoolStep (org.camunda.bpm.container.impl.deployment.jobexecutor.StartManagedThreadPoolStep)1