in src/main/java/org/apache/sling/commons/testing/integration/HttpTestBase.java [160:185]
protected void setUp() throws Exception {
super.setUp();
MDC.put("testclass", getClass().getName());
MDC.put("testcase", getName());
// assume http and webdav are on the same host + port
URL url = null;
try {
url = new URL(HTTP_BASE_URL);
} catch(MalformedURLException mfe) {
// MalformedURLException doesn't tell us the URL by default
throw new IOException("MalformedURLException: " + HTTP_BASE_URL);
}
// setup HTTP client, with authentication (using default Jackrabbit credentials)
httpClient = new TestInfoPassingClient();
httpClient.getParams().setAuthenticationPreemptive(true);
Credentials defaultcreds = getDefaultCredentials();
httpClient.getState().setCredentials(new AuthScope(url.getHost(), url.getPort(), AuthScope.ANY_REALM), defaultcreds);
testClient = new SlingIntegrationTestClient(httpClient);
testClient.setFolderExistsTestExtension(readinessCheckExtension);
waitForSlingStartup();
}