Search in sources :

Example 1 with MockHttpProvider

use of com.microsoft.graph.http.MockHttpProvider in project msgraph-sdk-java by microsoftgraph.

the class BaseClientTests method setUp.

@Before
public void setUp() throws Exception {
    baseClient = new BaseClient() {

        @Override
        public String getServiceRoot() {
            return mEndpoint;
        }

        @Override
        public void setServiceRoot(String value) {
            mEndpoint = value;
        }
    };
    mAuthenticationProvider = new MockAuthenticationProvider();
    mExecutors = new MockExecutors();
    mHttpProvider = new MockHttpProvider();
    mLogger = new MockLogger();
    mSerializer = new MockSerializer(null, "");
}
Also used : MockSerializer(com.microsoft.graph.serializer.MockSerializer) MockLogger(com.microsoft.graph.logger.MockLogger) MockAuthenticationProvider(com.microsoft.graph.authentication.MockAuthenticationProvider) MockExecutors(com.microsoft.graph.concurrency.MockExecutors) MockHttpProvider(com.microsoft.graph.http.MockHttpProvider) Before(org.junit.Before)

Aggregations

MockAuthenticationProvider (com.microsoft.graph.authentication.MockAuthenticationProvider)1 MockExecutors (com.microsoft.graph.concurrency.MockExecutors)1 MockHttpProvider (com.microsoft.graph.http.MockHttpProvider)1 MockLogger (com.microsoft.graph.logger.MockLogger)1 MockSerializer (com.microsoft.graph.serializer.MockSerializer)1 Before (org.junit.Before)1