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);
}
}
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);
}
Aggregations