Search in sources :

Example 1 with BasicAuthentication

use of com.opentext.ia.sdk.support.http.rest.BasicAuthentication in project infoarchive-sip-sdk by Enterprise-Content-Management.

the class WhenConfiguringAuthenticationStrategy method shouldGetBasicAuthentication.

@Test
public void shouldGetBasicAuthentication() {
    configuration.setAuthenticationUser(randomString());
    configuration.setAuthenticationPassword(randomString());
    AuthenticationStrategy authentication = authFactory.getAuthenticationStrategy(() -> null, () -> null);
    assertTrue(authentication instanceof BasicAuthentication);
}
Also used : AuthenticationStrategy(com.opentext.ia.sdk.support.http.rest.AuthenticationStrategy) BasicAuthentication(com.opentext.ia.sdk.support.http.rest.BasicAuthentication) Test(org.junit.Test)

Aggregations

AuthenticationStrategy (com.opentext.ia.sdk.support.http.rest.AuthenticationStrategy)1 BasicAuthentication (com.opentext.ia.sdk.support.http.rest.BasicAuthentication)1 Test (org.junit.Test)1