lundi 16 février 2015

Testing Fragments using junit with eclipse

I have a FragmentActivity that have FrameLayout in xml resource. In this activity i have two buttons A and B ,on click of A button Fragment A is replaced with FrameLayout and on click of B fragment B is replaced.


Now i want to create test cases for unit testing using junit with eclipse. can you please tell me how to check that which fragment is loaded currently.


Aucun commentaire:

Enregistrer un commentaire