Created
December 8, 2017 08:10
-
-
Save flipper83/e882ef933e26a897e6d668919b5824f1 to your computer and use it in GitHub Desktop.
screenshoot testing custom view
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
private SuperHeroViewHolder givenASuperHeroViewHolder() { | |
Context context = getInstrumentation().getTargetContext(); | |
LayoutInflater inflater = LayoutInflater.from(context); | |
View view = inflater.inflate(R.layout.super_hero_row, null, false); | |
return new SuperHeroViewHolder(view, mock(SuperHeroesPresenter.class)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment