This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] - instrumentation tests upgrade, move view checking to util…
…ity class, remove inheritance in runtime style test (#6803) update gitignore for generated tests add camera move test add realtime geojson to be excluded when generating Activity sanity tests by default show workaround for showing a MapView in a dialog add annotation tests remove older camera tests, introduce tests for move, ease and animate, bring back setLatLng and getLatLng on MapView, add tests for internal camera API. compass view tests add tests for attribution and logo. fix annotation tests Rename Actiivity test class, split up annotation tests, added MarkerView tests, added infowindow tests, added MyLocationView tests fix addRemoveLayer test by integrating map interactions inside a ViewAction
- Loading branch information
Showing
62 changed files
with
2,241 additions
and
1,342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...apboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/maps/MapViewUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.mapbox.mapboxsdk.maps; | ||
|
||
import com.mapbox.mapboxsdk.geometry.LatLng; | ||
|
||
/** | ||
* Utility class to bypass package visibility | ||
*/ | ||
public class MapViewUtils { | ||
|
||
public static void setDirection(MapView mapView, float direction) { | ||
mapView.setBearing(direction); | ||
} | ||
|
||
public static float getDirection(MapView mapView) { | ||
return (float) mapView.getDirection(); | ||
} | ||
|
||
public static void setTilt(MapView mapView, float tilt) { | ||
mapView.setTilt((double) tilt); | ||
} | ||
|
||
public static float getTilt(MapView mapView) { | ||
return (float) mapView.getTilt(); | ||
} | ||
|
||
public static void setLatLng(MapView mapView, LatLng latLng) { | ||
mapView.setCenterCoordinate(latLng); | ||
} | ||
|
||
public static LatLng getLatLng(MapView mapView) { | ||
return mapView.getCenterCoordinate(); | ||
} | ||
|
||
public static int[] getContentPadding(MapView mapView) { | ||
return new int[]{mapView.getContentPaddingLeft(), mapView.getContentPaddingTop(), mapView.getContentPaddingRight(), mapView.getContentPaddingBottom()}; | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
...boxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/maps/MapboxMapUtils.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...ava/com/mapbox/mapboxsdk/testapp/activity/gen/annotation/AddRemoveMarkerActivityTest.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...est/java/com/mapbox/mapboxsdk/testapp/activity/gen/annotation/BulkMarkerActivityTest.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...com/mapbox/mapboxsdk/testapp/activity/gen/annotation/DynamicMarkerChangeActivityTest.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...est/java/com/mapbox/mapboxsdk/testapp/activity/gen/annotation/MarkerViewActivityTest.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...ava/com/mapbox/mapboxsdk/testapp/activity/gen/annotation/MarkerViewScaleActivityTest.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...idTest/java/com/mapbox/mapboxsdk/testapp/activity/gen/annotation/PolygonActivityTest.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...dTest/java/com/mapbox/mapboxsdk/testapp/activity/gen/annotation/PolylineActivityTest.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...java/com/mapbox/mapboxsdk/testapp/activity/gen/annotation/PressForMarkerActivityTest.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...ava/com/mapbox/mapboxsdk/testapp/activity/gen/camera/CameraAnimationTypeActivityTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.