lundi 7 septembre 2015

Application instance is not getting initialized with Robolectric and powermock

I have an activity which uses application instance for app level book keepings. I am saving app instance in static member after its creation(in application subclass itself). It works fine if I run with only Robolectric, but if I use Powermockito with Robolectric the application is not getting created and member varialble is null when I try to access it from activity.

Aucun commentaire:

Enregistrer un commentaire