Search in sources :

Example 1 with GitHubRestClient

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

the class TestNetworkModule method provideGitHubRestClient.

@Singleton
@Provides
public GitHubRestClient provideGitHubRestClient() {
    GitHubRestClient gitHubRestClient = Mockito.mock(GitHubRestClient.class);
    GithubApiService githubApiService = Mockito.mock(GithubApiService.class);
    Mockito.when(gitHubRestClient.getApiService()).thenReturn(githubApiService);
    return gitHubRestClient;
}
Also used : GitHubRestClient(com.khmelenko.lab.varis.network.retrofit.github.GitHubRestClient) GithubApiService(com.khmelenko.lab.varis.network.retrofit.github.GithubApiService) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

GitHubRestClient (com.khmelenko.lab.varis.network.retrofit.github.GitHubRestClient)1 GithubApiService (com.khmelenko.lab.varis.network.retrofit.github.GithubApiService)1 Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1