Search in sources :

Example 1 with TestProperties

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);
}
Also used : TestProperties(org.camunda.bpm.TestProperties) DefaultApacheHttpClient4Config(com.sun.jersey.client.apache4.config.DefaultApacheHttpClient4Config) HttpParams(org.apache.http.params.HttpParams) ClientConfig(com.sun.jersey.api.client.config.ClientConfig)

Example 2 with TestProperties

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);
}
Also used : TestProperties(org.camunda.bpm.TestProperties) TestUtil(org.camunda.bpm.util.TestUtil) Before(org.junit.Before)

Aggregations

TestProperties (org.camunda.bpm.TestProperties)2 ClientConfig (com.sun.jersey.api.client.config.ClientConfig)1 DefaultApacheHttpClient4Config (com.sun.jersey.client.apache4.config.DefaultApacheHttpClient4Config)1 HttpParams (org.apache.http.params.HttpParams)1 TestUtil (org.camunda.bpm.util.TestUtil)1 Before (org.junit.Before)1