Search in sources :

Example 6 with PerfTestException

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);
    }
}
Also used : InputStream(java.io.InputStream) PerfTestException(org.camunda.bpm.qa.performance.engine.framework.PerfTestException) Properties(java.util.Properties) PoolProperties(org.apache.tomcat.jdbc.pool.PoolProperties) PerfTestException(org.camunda.bpm.qa.performance.engine.framework.PerfTestException)

Aggregations

PerfTestException (org.camunda.bpm.qa.performance.engine.framework.PerfTestException)6 File (java.io.File)4 Properties (java.util.Properties)2 BufferedOutputStream (java.io.BufferedOutputStream)1 FileInputStream (java.io.FileInputStream)1 FileOutputStream (java.io.FileOutputStream)1 InputStream (java.io.InputStream)1 PoolProperties (org.apache.tomcat.jdbc.pool.PoolProperties)1 ProcessEngineConfigurationImpl (org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl)1 ProcessEnginePlugin (org.camunda.bpm.engine.impl.cfg.ProcessEnginePlugin)1 StandaloneProcessEngineConfiguration (org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration)1 PerfTestConfiguration (org.camunda.bpm.qa.performance.engine.framework.PerfTestConfiguration)1 ObjectMapper (org.codehaus.jackson.map.ObjectMapper)1