Created
July 18, 2017 04:31
-
-
Save oznus/ae94caa683211927f642eeef1e3ec0dc to your computer and use it in GitHub Desktop.
Mocking UI tests module and component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Singleton | |
@Component(modules = { | |
MyAppModule.class}) | |
public interface MyAppComponent { | |
void inject(MainActivity activity); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
public class MyAppModule { | |
@Provides | |
@Singleton | |
MyAppNetworkService providesMyAppNetworkService() { | |
return new MyAppNetworkService(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment