Android : Testing Fragments using junit with eclipse

on Monday, February 16, 2015


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.


0 comments:

Post a Comment