android - In JUnit, test Activity if it did received the Extra from Intent -
someactivity below:
intent intent = new intent(someactivity.this, anotheractivity.class); intent.putextra("id", someid); startactivity(intent);
in junit test anotheractivity
if did received intent. how do this?
have tried using setactivityintent though? try below code figure out.
intent intent = new intent(); intent.setclassname("com.app", "com.app.hello"); intent.putextra("id", "1234"); setactivityintent(addevent);
Comments
Post a Comment