Search in sources :

Example 1 with RawClient

use of com.khmelenko.lab.varis.network.retrofit.raw.RawClient in project Varis-Android by dkhmelenko.

the class TestNetworkModule method provideRawRestClient.

@Singleton
@Provides
public RawClient provideRawRestClient() {
    RawClient rawClient = mock(RawClient.class);
    RawApiService rawApiService = mock(RawApiService.class);
    Mockito.when(rawClient.getApiService()).thenReturn(rawApiService);
    return rawClient;
}
Also used : RawApiService(com.khmelenko.lab.varis.network.retrofit.raw.RawApiService) RawClient(com.khmelenko.lab.varis.network.retrofit.raw.RawClient) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

RawApiService (com.khmelenko.lab.varis.network.retrofit.raw.RawApiService)1 RawClient (com.khmelenko.lab.varis.network.retrofit.raw.RawClient)1 Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1