Search in sources :

Example 1 with DefaultCredentialsProvider

use of com.gargoylesoftware.htmlunit.DefaultCredentialsProvider in project sling by apache.

the class ITWebConsoleRemote method prepareWebClient.

@Before
public void prepareWebClient() {
    webClient = new WebClient();
    ((DefaultCredentialsProvider) webClient.getCredentialsProvider()).addCredentials("admin", "admin");
}
Also used : DefaultCredentialsProvider(com.gargoylesoftware.htmlunit.DefaultCredentialsProvider) WebClient(com.gargoylesoftware.htmlunit.WebClient) Before(org.junit.Before)

Aggregations

DefaultCredentialsProvider (com.gargoylesoftware.htmlunit.DefaultCredentialsProvider)1 WebClient (com.gargoylesoftware.htmlunit.WebClient)1 Before (org.junit.Before)1