Search in sources :

Example 1 with TravisRestClient

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

the class TestNetworkModule method provideTravisRestClient.

@Singleton
@Provides
public TravisRestClient provideTravisRestClient() {
    TravisRestClient travisRestClient = mock(TravisRestClient.class);
    TravisApiService apiService = mock(TravisApiService.class);
    Mockito.when(travisRestClient.getApiService()).thenReturn(apiService);
    return travisRestClient;
}
Also used : TravisRestClient(com.khmelenko.lab.varis.network.retrofit.travis.TravisRestClient) TravisApiService(com.khmelenko.lab.varis.network.retrofit.travis.TravisApiService) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

TravisApiService (com.khmelenko.lab.varis.network.retrofit.travis.TravisApiService)1 TravisRestClient (com.khmelenko.lab.varis.network.retrofit.travis.TravisRestClient)1 Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1