Back to project page android-test-demo.
The source code is released under:
MIT License
If you think the Android project android-test-demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.andydyer.androidtestdemo.api; //from w w w.j a va2s.c o m import org.andydyer.androidtestdemo.ui.fragments.EventListFragment; import org.andydyer.androidtestdemo.ui.LoginActivity; import org.andydyer.androidtestdemo.LoginActivityTest; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; import static org.mockito.Mockito.mock; /** * Created by andy on 8/28/14. */ @Module(injects = { EventListFragment.class, MockApiService.class, ApiServiceTest.class, LoginActivity.class, LoginActivityTest.class }) public class MockApiServiceModule { @Provides @Singleton public ApiService provideApiService() { return new MockApiService(); } @Provides @Singleton public AuthenticationService provideAuthenticationService() { return mock(AuthenticationService.class); // not implemented } }