diff options
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/CircleLayerTest.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/CircleLayerTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/CircleLayerTest.java b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/CircleLayerTest.java index f6966664f3..4101c0ffa1 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/CircleLayerTest.java +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/CircleLayerTest.java @@ -139,6 +139,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-radius"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((Float) layer.getCircleRadius().getValue()); // Set and Get layer.setProperties(circleRadius(0.3f)); @@ -153,6 +154,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-radius-expression"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull(layer.getCircleRadius().getExpression()); // Set and Get Expression expression = number(Expression.get("undefined")); @@ -183,6 +185,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-color"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((String) layer.getCircleColor().getValue()); // Set and Get layer.setProperties(circleColor("rgba(0, 0, 0, 1)")); @@ -197,6 +200,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-color-expression"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull(layer.getCircleColor().getExpression()); // Set and Get Expression expression = toColor(Expression.get("undefined")); @@ -241,6 +245,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-blur"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((Float) layer.getCircleBlur().getValue()); // Set and Get layer.setProperties(circleBlur(0.3f)); @@ -255,6 +260,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-blur-expression"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull(layer.getCircleBlur().getExpression()); // Set and Get Expression expression = number(Expression.get("undefined")); @@ -285,6 +291,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-opacity"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((Float) layer.getCircleOpacity().getValue()); // Set and Get layer.setProperties(circleOpacity(0.3f)); @@ -299,6 +306,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-opacity-expression"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull(layer.getCircleOpacity().getExpression()); // Set and Get Expression expression = number(Expression.get("undefined")); @@ -329,6 +337,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-translate"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((Float[]) layer.getCircleTranslate().getValue()); // Set and Get layer.setProperties(circleTranslate(new Float[] {0f, 0f})); @@ -343,6 +352,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-translate-anchor"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((String) layer.getCircleTranslateAnchor().getValue()); // Set and Get layer.setProperties(circleTranslateAnchor(CIRCLE_TRANSLATE_ANCHOR_MAP)); @@ -357,6 +367,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-pitch-scale"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((String) layer.getCirclePitchScale().getValue()); // Set and Get layer.setProperties(circlePitchScale(CIRCLE_PITCH_SCALE_MAP)); @@ -371,6 +382,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-pitch-alignment"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((String) layer.getCirclePitchAlignment().getValue()); // Set and Get layer.setProperties(circlePitchAlignment(CIRCLE_PITCH_ALIGNMENT_MAP)); @@ -400,6 +412,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-stroke-width"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((Float) layer.getCircleStrokeWidth().getValue()); // Set and Get layer.setProperties(circleStrokeWidth(0.3f)); @@ -414,6 +427,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-stroke-width-expression"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull(layer.getCircleStrokeWidth().getExpression()); // Set and Get Expression expression = number(Expression.get("undefined")); @@ -444,6 +458,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-stroke-color"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((String) layer.getCircleStrokeColor().getValue()); // Set and Get layer.setProperties(circleStrokeColor("rgba(0, 0, 0, 1)")); @@ -458,6 +473,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-stroke-color-expression"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull(layer.getCircleStrokeColor().getExpression()); // Set and Get Expression expression = toColor(Expression.get("undefined")); @@ -502,6 +518,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-stroke-opacity"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull((Float) layer.getCircleStrokeOpacity().getValue()); // Set and Get layer.setProperties(circleStrokeOpacity(0.3f)); @@ -516,6 +533,7 @@ public class CircleLayerTest extends BaseActivityTest { Timber.i("circle-stroke-opacity-expression"); invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(layer); + assertNull(layer.getCircleStrokeOpacity().getExpression()); // Set and Get Expression expression = number(Expression.get("undefined")); |