Skip to content Skip to sidebar Skip to footer

Set Parameters Of Android.location.location Object From Junit Unit Test

I'm trying to make unit test for a function which receive android.location.Location object. But i blocked because i don't have possibility to set up parameters for Location object.

Solution 1:

After adding @RunWith(RobolectricTestRunner.class) - it works as expected.


Post a Comment for "Set Parameters Of Android.location.location Object From Junit Unit Test"