@Test public void testProvideOkHttpClient() { assertNotNull(applicationModule.provideOkHttpClient()); }
@Provides @ApplicationScope public OkHttpClient provideOkHttpClient() { return new HttpService(context).getHttpClient(); }
ApplicationModule { @Provides @ApplicationScope public OkHttpClient provideOkHttpClient() { return new HttpService(context).getHttpClient(); } }
ApplicationModule { @Provides @ApplicationScope public OkHttpClient provideOkHttpClient() { return new HttpService(context).getHttpClient(); } ApplicationModule(Context context); }
ApplicationModule { @Provides @ApplicationScope public OkHttpClient provideOkHttpClient() { return new HttpService(context).getHttpClient(); } ApplicationModule(Context context); @Provides @ApplicationScope NetworkService provideNetworkService(OkHttpClient okHttpClient, GsonConverterFactory gsonConverterFactory); @Provides @ApplicationScope ChatService provideChatService(NetworkService networkService); @Provides @ApplicationScope OkHttpClient provideOkHttpClient(); @Provides @ApplicationScope GsonConverterFactory provideGsonConverterFactory(); }
ApplicationModule { @Provides @ApplicationScope public OkHttpClient provideOkHttpClient() { return new HttpService(context).getHttpClient(); } ApplicationModule(Context context); @Provides @ApplicationScope NetworkService provideNetworkService(OkHttpClient okHttpClient, GsonConverterFactory gsonConverterFactory); @Provides @ApplicationScope ChatService provideChatService(NetworkService networkService); @Provides @ApplicationScope OkHttpClient provideOkHttpClient(); @Provides @ApplicationScope GsonConverterFactory provideGsonConverterFactory();  }