I should also mention that we do use Robotium for some of the other tests, 
but trying to look for a faster/simpler way to test this function if 
possible ... 

Thanks,
Charles

On Sunday, March 16, 2014 4:25:04 PM UTC-7, Charles wrote:
>
> 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.

Reply via email to