Reputation: 2159
I have a few PreferenceFragment classes that I need to test:
public class MyPref extends PreferenceFragment
how do I test them ?
for example I have tried to:
public class MyPrefTester extends ActivityInstrumentationTestCase2<MyPref>
However this fails because this Android test class requires that the parameter inherit from Activity. And PreferenceFragment inherits from Fragment (which is used by an Activity).
What can some suggest ?
Upvotes: 0
Views: 647
Reputation: 2185
I have been working on the same problem on the last couple of weeks, here's my approach:
Upvotes: 1