@Test public void testProvideNetworkService() { assertNotNull(applicationModule.provideNetworkService(new OkHttpClient(), GsonConverterFactory.create())); }
@Provides @ApplicationScope public NetworkService provideNetworkService(OkHttpClient okHttpClient, GsonConverterFactory gsonConverterFactory) { return new NetworkService(okHttpClient, gsonConverterFactory); }
ApplicationModule { @Provides @ApplicationScope public NetworkService provideNetworkService(OkHttpClient okHttpClient, GsonConverterFactory gsonConverterFactory) { return new NetworkService(okHttpClient, gsonConverterFactory); } }
ApplicationModule { @Provides @ApplicationScope public NetworkService provideNetworkService(OkHttpClient okHttpClient, GsonConverterFactory gsonConverterFactory) { return new NetworkService(okHttpClient, gsonConverterFactory); } ApplicationModule(Context context); }
ApplicationModule { @Provides @ApplicationScope public NetworkService provideNetworkService(OkHttpClient okHttpClient, GsonConverterFactory gsonConverterFactory) { return new NetworkService(okHttpClient, gsonConverterFactory); } 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 NetworkService provideNetworkService(OkHttpClient okHttpClient, GsonConverterFactory gsonConverterFactory) { return new NetworkService(okHttpClient, gsonConverterFactory); } 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();  }