use of com.microsoft.graph.models.extensions.IGraphServiceClient in project msgraph-sdk-java by microsoftgraph.
the class GraphServiceClientTest method testOverrideOfDefaultAuthenticationProvider.
@Test
public void testOverrideOfDefaultAuthenticationProvider() {
IAuthenticationProvider ap = new IAuthenticationProvider() {
@Override
public void authenticateRequest(IHttpRequest request) {
// do nothing
}
};
IGraphServiceClient client = //
GraphServiceClient.builder().authenticationProvider(//
ap).buildClient();
assertEquals(ap, client.getAuthenticationProvider());
assertNotNull(client.getExecutors());
assertNotNull(client.getHttpProvider());
assertNotNull(client.getLogger());
assertNotNull(client.getSerializer());
assertEquals(ap, ((DefaultHttpProvider) client.getHttpProvider()).getAuthenticationProvider());
}
Aggregations