Guest User

Untitled

a guest
Jan 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public class DialogIdlingResource implements IdlingResource {
  2. private ResourceCallback resourceCallback;
  3. private View idView;
  4. private String text;
  5.  
  6. public DialogIdlingResource(View idView, String text) {
  7. this.idView = idView;
  8. this.text = text;
  9. }
  10.  
  11. @Before
  12. fun registerDialogIdlingResource() {
  13. val instrumentation = InstrumentationRegistry.getInstrumentation()
  14. idlingResource = DialogIdlingResource(instrumentation.)
  15. Espresso.registerIdlingResources(idlingResource)
  16. }
  17.  
  18. idlingResource = DialogIdlingResource(instrumentation.targetContext)
Add Comment
Please, Sign In to add comment