use of com.github.pockethub.android.PocketHub in project PocketHub by pockethub.
the class GistFilesViewActivityTest method setUp.
@Before
public void setUp() {
Context context = getInstrumentation().getTargetContext();
PocketHub pocketHub = (PocketHub) context.getApplicationContext();
store = pocketHub.applicationComponent().gistStore();
Map<String, GistFile> files = new ArrayMap<>();
GistFile a = GistFile.builder().content("aa").filename("a").build();
GistFile b = GistFile.builder().content("bb").filename("b").build();
files.put("a", a);
files.put("b", b);
gist = Gist.builder().id("abcd").files(files).build();
store.addGist(gist);
activityTestRule.launchActivity(GistFilesViewActivity.Companion.createIntent(gist, 0));
}