use of org.camunda.bpm.qa.performance.engine.framework.PerfTestException in project camunda-bpm-platform by camunda.
the class PerfTestProcessEngine method loadProperties.
public static Properties loadProperties() {
InputStream propertyInputStream = null;
try {
propertyInputStream = PerfTestProcessEngine.class.getClassLoader().getResourceAsStream(PROPERTIES_FILE_NAME);
Properties properties = new Properties();
properties.load(propertyInputStream);
return properties;
} catch (Exception e) {
throw new PerfTestException("Cannot load properties from file " + PROPERTIES_FILE_NAME + ": " + e);
} finally {
IoUtil.closeSilently(propertyInputStream);
}
}
Aggregations