I am getting "java.lang.RuntimeException: Stub!" and it is because android.jar contains only stub implementation of the classes. I will not be running the tests in an emulator. Robolectric works with JUnit but it does not appear to work with TestNG. Is it possible to run TestNG classes without an android emulator? All I need is a Context and I would like to use MockContext but every method is a Stub! exception.
Aucun commentaire:
Enregistrer un commentaire