I'm trying to use Robolectric framework to run a simple Unit
test, although I got that Robolectric.setupActivity()
is deprecated.
@RunWith(RobolectricTestRunner.class)
public class MainActivityFragmentTest {
MainActivity mainActivity;
@Before
public void setUp() {
mainActivity = Robolectric.setupActivity(MainActivity.class);
}
// Rest of Test
How can I solve that? Thanks for help in advance..
Aucun commentaire:
Enregistrer un commentaire