Hello I have a fragment with the following function? How would you write an
automated test for this method?
void addGroundOverlay(final GoogleMap map, final String filename)
{
if (filename != null)
{
// parse GroundOverlayOptions from filename
map.addGroundOverlay(groundOverlayOptions);
}
}
I am using ActivityUnitTest but encounter a problem creating the GoogleMap
-- when using MapView/MapFragment .getMap(), an exception indicating "main
thread" is thrown. Tried runOnUiThread() same thing.
Tried using Mockito + dexmaker, but unfortunately GoogleMap is final class
and not supported by Mockito.
Looking for any pointers on what I could be doing wrong.
Thanks in advance.
Charles
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.