Search in sources :

Example 1 with DefaultClientConfig

use of com.microsoft.graph.core.DefaultClientConfig in project msgraph-sdk-java by microsoftgraph.

the class GraphServiceClientTest method testClientMethodsReturnStuff.

@Test
public void testClientMethodsReturnStuff() {
    IGraphServiceClient client = GraphServiceClient.fromConfig(new DefaultClientConfig() {

        @Override
        public IAuthenticationProvider getAuthenticationProvider() {
            return auth;
        }
    });
    assertEquals(auth, client.getAuthenticationProvider());
    assertNotNull(client.getExecutors());
    assertNotNull(client.getHttpProvider());
    assertNotNull(client.getLogger());
    assertNotNull(client.getSerializer());
}
Also used : DefaultClientConfig(com.microsoft.graph.core.DefaultClientConfig) IAuthenticationProvider(com.microsoft.graph.authentication.IAuthenticationProvider) IGraphServiceClient(com.microsoft.graph.models.extensions.IGraphServiceClient) Test(org.junit.Test)

Aggregations

IAuthenticationProvider (com.microsoft.graph.authentication.IAuthenticationProvider)1 DefaultClientConfig (com.microsoft.graph.core.DefaultClientConfig)1 IGraphServiceClient (com.microsoft.graph.models.extensions.IGraphServiceClient)1 Test (org.junit.Test)1