Android gps unit testing -


i developing android gps-based application.

i have activity implements locationlistener , have implemented logic in onlocationchanged method.

i want make unit test tests activity. want loop array of locations , send them activity onlocationchanged should fire.

i have read couple of answers none of them provided complete solution.

i happy if can explain me how it.

regards,

petar

you use https://play.google.com/store/apps/details?id=ru.gavrikov.mocklocations&hl=en mock location data. can have "mock location" application ruining in background , make sure set fastest interval appropriately in application location updates periodically.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -