Skip to content

Instantly share code, notes, and snippets.

@mohsenoid
Last active February 4, 2018 18:02
Show Gist options
  • Save mohsenoid/9b25e5a1375742d281b4546021fe552e to your computer and use it in GitHub Desktop.
Save mohsenoid/9b25e5a1375742d281b4546021fe552e to your computer and use it in GitHub Desktop.
package com.mirhoseini.marvel;
/*...*/
public class MarvelTestApplication extends MarvelApplicationImpl {
@Override
public ApplicationTestComponent createComponent() {
return DaggerApplicationTestComponent
.builder()
.androidModule(new AndroidModule(this))
// replace Api Module with Mocked one
.apiModule(new ApiTestModule())
.build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment