use of org.camunda.bpm.TestProperties in project camunda-bpm-platform by camunda.
the class AbstractWebIT method createClient.
public void createClient(String ctxPath) throws Exception {
testProperties = new TestProperties();
APP_BASE_PATH = testProperties.getApplicationPath("/" + ctxPath);
LOGGER.info("Connecting to application " + APP_BASE_PATH);
ClientConfig clientConfig = new DefaultApacheHttpClient4Config();
clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
client = ApacheHttpClient4.create(clientConfig);
defaultHttpClient = (DefaultHttpClient) client.getClientHandler().getHttpClient();
HttpParams params = defaultHttpClient.getParams();
HttpConnectionParams.setConnectionTimeout(params, 3 * 60 * 1000);
HttpConnectionParams.setSoTimeout(params, 10 * 60 * 1000);
}
use of org.camunda.bpm.TestProperties in project camunda-bpm-platform by camunda.
the class AbstractWebIT method before.
@Before
public void before() throws Exception {
testProperties = new TestProperties(48080);
testUtil = new TestUtil(testProperties);
}
Aggregations