From 787ac701215400ea40f43e2459f4fcc8e12bcf90 Mon Sep 17 00:00:00 2001 From: Kiryl Dzehtsiarenka Date: Fri, 25 Sep 2020 15:15:10 +0300 Subject: [PATCH 1/2] Bump Maps SDK to 9.5.0 --- .../mapboxsdk/plugins/annotation/SymbolManagerTest.java | 4 ++-- gradle/dependencies.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java index 1bcf14321..18dd54fd5 100644 --- a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java +++ b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java @@ -59,8 +59,8 @@ public void testSymbolSpacingAsConstant() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbolManager); - symbolManager.setSymbolSpacing(0.3f); - assertEquals((Float) symbolManager.getSymbolSpacing(), (Float) 0.3f); + symbolManager.setSymbolSpacing(2.0f); + assertEquals((Float) symbolManager.getSymbolSpacing(), (Float) 2.0f); }); } diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle index 30f86f5a6..665a445d6 100644 --- a/gradle/dependencies.gradle +++ b/gradle/dependencies.gradle @@ -7,7 +7,7 @@ ] version = [ - mapboxMapSdk : '9.4.0', + mapboxMapSdk : '9.5.0', mapboxJava : '5.5.0', mapboxTurf : '5.5.0', playLocation : '16.0.0', From 626e8bff5d11eb842878b98d8c53a75a3dbd4b31 Mon Sep 17 00:00:00 2001 From: Kiryl Dzehtsiarenka Date: Fri, 25 Sep 2020 18:38:19 +0300 Subject: [PATCH 2/2] Fix test generator --- .../plugins/annotation/CircleTest.java | 20 ++--- .../plugins/annotation/FillTest.java | 4 +- .../plugins/annotation/LineManagerTest.java | 8 +- .../plugins/annotation/LineTest.java | 20 ++--- .../plugins/annotation/SymbolManagerTest.java | 16 ++-- .../plugins/annotation/SymbolTest.java | 56 ++++++------- plugin-annotation/scripts/code-gen.js | 2 +- .../plugins/annotation/CircleManagerTest.java | 30 +++---- .../plugins/annotation/FillManagerTest.java | 6 +- .../plugins/annotation/LineManagerTest.java | 30 +++---- .../plugins/annotation/SymbolManagerTest.java | 84 +++++++++---------- 11 files changed, 138 insertions(+), 138 deletions(-) diff --git a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/CircleTest.java b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/CircleTest.java index 05d71a861..170325c99 100644 --- a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/CircleTest.java +++ b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/CircleTest.java @@ -52,8 +52,8 @@ public void testCircleRadius() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(circle); - circle.setCircleRadius(0.3f); - assertEquals((Float) circle.getCircleRadius(), (Float) 0.3f); + circle.setCircleRadius(2.0f); + assertEquals((Float) circle.getCircleRadius(), (Float) 2.0f); }); } @@ -91,8 +91,8 @@ public void testCircleBlur() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(circle); - circle.setCircleBlur(0.3f); - assertEquals((Float) circle.getCircleBlur(), (Float) 0.3f); + circle.setCircleBlur(2.0f); + assertEquals((Float) circle.getCircleBlur(), (Float) 2.0f); }); } @@ -104,8 +104,8 @@ public void testCircleOpacity() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(circle); - circle.setCircleOpacity(0.3f); - assertEquals((Float) circle.getCircleOpacity(), (Float) 0.3f); + circle.setCircleOpacity(2.0f); + assertEquals((Float) circle.getCircleOpacity(), (Float) 2.0f); }); } @@ -117,8 +117,8 @@ public void testCircleStrokeWidth() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(circle); - circle.setCircleStrokeWidth(0.3f); - assertEquals((Float) circle.getCircleStrokeWidth(), (Float) 0.3f); + circle.setCircleStrokeWidth(2.0f); + assertEquals((Float) circle.getCircleStrokeWidth(), (Float) 2.0f); }); } @@ -156,8 +156,8 @@ public void testCircleStrokeOpacity() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(circle); - circle.setCircleStrokeOpacity(0.3f); - assertEquals((Float) circle.getCircleStrokeOpacity(), (Float) 0.3f); + circle.setCircleStrokeOpacity(2.0f); + assertEquals((Float) circle.getCircleStrokeOpacity(), (Float) 2.0f); }); } } diff --git a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/FillTest.java b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/FillTest.java index 7e3ab864d..728c2aa83 100644 --- a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/FillTest.java +++ b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/FillTest.java @@ -58,8 +58,8 @@ public void testFillOpacity() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(fill); - fill.setFillOpacity(0.3f); - assertEquals((Float) fill.getFillOpacity(), (Float) 0.3f); + fill.setFillOpacity(2.0f); + assertEquals((Float) fill.getFillOpacity(), (Float) 2.0f); }); } diff --git a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/LineManagerTest.java b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/LineManagerTest.java index 28cf06b2b..000943f09 100644 --- a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/LineManagerTest.java +++ b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/LineManagerTest.java @@ -59,8 +59,8 @@ public void testLineMiterLimitAsConstant() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(lineManager); - lineManager.setLineMiterLimit(0.3f); - assertEquals((Float) lineManager.getLineMiterLimit(), (Float) 0.3f); + lineManager.setLineMiterLimit(2.0f); + assertEquals((Float) lineManager.getLineMiterLimit(), (Float) 2.0f); }); } @@ -72,8 +72,8 @@ public void testLineRoundLimitAsConstant() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(lineManager); - lineManager.setLineRoundLimit(0.3f); - assertEquals((Float) lineManager.getLineRoundLimit(), (Float) 0.3f); + lineManager.setLineRoundLimit(2.0f); + assertEquals((Float) lineManager.getLineRoundLimit(), (Float) 2.0f); }); } diff --git a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/LineTest.java b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/LineTest.java index e2a55d2e7..a926d7f48 100644 --- a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/LineTest.java +++ b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/LineTest.java @@ -68,8 +68,8 @@ public void testLineOpacity() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(line); - line.setLineOpacity(0.3f); - assertEquals((Float) line.getLineOpacity(), (Float) 0.3f); + line.setLineOpacity(2.0f); + assertEquals((Float) line.getLineOpacity(), (Float) 2.0f); }); } @@ -107,8 +107,8 @@ public void testLineWidth() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(line); - line.setLineWidth(0.3f); - assertEquals((Float) line.getLineWidth(), (Float) 0.3f); + line.setLineWidth(2.0f); + assertEquals((Float) line.getLineWidth(), (Float) 2.0f); }); } @@ -120,8 +120,8 @@ public void testLineGapWidth() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(line); - line.setLineGapWidth(0.3f); - assertEquals((Float) line.getLineGapWidth(), (Float) 0.3f); + line.setLineGapWidth(2.0f); + assertEquals((Float) line.getLineGapWidth(), (Float) 2.0f); }); } @@ -133,8 +133,8 @@ public void testLineOffset() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(line); - line.setLineOffset(0.3f); - assertEquals((Float) line.getLineOffset(), (Float) 0.3f); + line.setLineOffset(2.0f); + assertEquals((Float) line.getLineOffset(), (Float) 2.0f); }); } @@ -146,8 +146,8 @@ public void testLineBlur() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(line); - line.setLineBlur(0.3f); - assertEquals((Float) line.getLineBlur(), (Float) 0.3f); + line.setLineBlur(2.0f); + assertEquals((Float) line.getLineBlur(), (Float) 2.0f); }); } diff --git a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java index 18dd54fd5..0b5fabf2b 100644 --- a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java +++ b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java @@ -163,8 +163,8 @@ public void testIconPaddingAsConstant() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbolManager); - symbolManager.setIconPadding(0.3f); - assertEquals((Float) symbolManager.getIconPadding(), (Float) 0.3f); + symbolManager.setIconPadding(2.0f); + assertEquals((Float) symbolManager.getIconPadding(), (Float) 2.0f); }); } @@ -228,8 +228,8 @@ public void testTextLineHeightAsConstant() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbolManager); - symbolManager.setTextLineHeight(0.3f); - assertEquals((Float) symbolManager.getTextLineHeight(), (Float) 0.3f); + symbolManager.setTextLineHeight(2.0f); + assertEquals((Float) symbolManager.getTextLineHeight(), (Float) 2.0f); }); } @@ -254,8 +254,8 @@ public void testTextMaxAngleAsConstant() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbolManager); - symbolManager.setTextMaxAngle(0.3f); - assertEquals((Float) symbolManager.getTextMaxAngle(), (Float) 0.3f); + symbolManager.setTextMaxAngle(2.0f); + assertEquals((Float) symbolManager.getTextMaxAngle(), (Float) 2.0f); }); } @@ -267,8 +267,8 @@ public void testTextPaddingAsConstant() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbolManager); - symbolManager.setTextPadding(0.3f); - assertEquals((Float) symbolManager.getTextPadding(), (Float) 0.3f); + symbolManager.setTextPadding(2.0f); + assertEquals((Float) symbolManager.getTextPadding(), (Float) 2.0f); }); } diff --git a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolTest.java b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolTest.java index 4057a1f37..87eb76841 100644 --- a/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolTest.java +++ b/app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolTest.java @@ -52,8 +52,8 @@ public void testSymbolSortKey() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setSymbolSortKey(0.3f); - assertEquals((Float) symbol.getSymbolSortKey(), (Float) 0.3f); + symbol.setSymbolSortKey(2.0f); + assertEquals((Float) symbol.getSymbolSortKey(), (Float) 2.0f); }); } @@ -65,8 +65,8 @@ public void testIconSize() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setIconSize(0.3f); - assertEquals((Float) symbol.getIconSize(), (Float) 0.3f); + symbol.setIconSize(2.0f); + assertEquals((Float) symbol.getIconSize(), (Float) 2.0f); }); } @@ -91,8 +91,8 @@ public void testIconRotate() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setIconRotate(0.3f); - assertEquals((Float) symbol.getIconRotate(), (Float) 0.3f); + symbol.setIconRotate(2.0f); + assertEquals((Float) symbol.getIconRotate(), (Float) 2.0f); }); } @@ -156,8 +156,8 @@ public void testTextSize() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setTextSize(0.3f); - assertEquals((Float) symbol.getTextSize(), (Float) 0.3f); + symbol.setTextSize(2.0f); + assertEquals((Float) symbol.getTextSize(), (Float) 2.0f); }); } @@ -169,8 +169,8 @@ public void testTextMaxWidth() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setTextMaxWidth(0.3f); - assertEquals((Float) symbol.getTextMaxWidth(), (Float) 0.3f); + symbol.setTextMaxWidth(2.0f); + assertEquals((Float) symbol.getTextMaxWidth(), (Float) 2.0f); }); } @@ -182,8 +182,8 @@ public void testTextLetterSpacing() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setTextLetterSpacing(0.3f); - assertEquals((Float) symbol.getTextLetterSpacing(), (Float) 0.3f); + symbol.setTextLetterSpacing(2.0f); + assertEquals((Float) symbol.getTextLetterSpacing(), (Float) 2.0f); }); } @@ -208,8 +208,8 @@ public void testTextRadialOffset() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setTextRadialOffset(0.3f); - assertEquals((Float) symbol.getTextRadialOffset(), (Float) 0.3f); + symbol.setTextRadialOffset(2.0f); + assertEquals((Float) symbol.getTextRadialOffset(), (Float) 2.0f); }); } @@ -234,8 +234,8 @@ public void testTextRotate() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setTextRotate(0.3f); - assertEquals((Float) symbol.getTextRotate(), (Float) 0.3f); + symbol.setTextRotate(2.0f); + assertEquals((Float) symbol.getTextRotate(), (Float) 2.0f); }); } @@ -273,8 +273,8 @@ public void testIconOpacity() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setIconOpacity(0.3f); - assertEquals((Float) symbol.getIconOpacity(), (Float) 0.3f); + symbol.setIconOpacity(2.0f); + assertEquals((Float) symbol.getIconOpacity(), (Float) 2.0f); }); } @@ -338,8 +338,8 @@ public void testIconHaloWidth() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setIconHaloWidth(0.3f); - assertEquals((Float) symbol.getIconHaloWidth(), (Float) 0.3f); + symbol.setIconHaloWidth(2.0f); + assertEquals((Float) symbol.getIconHaloWidth(), (Float) 2.0f); }); } @@ -351,8 +351,8 @@ public void testIconHaloBlur() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setIconHaloBlur(0.3f); - assertEquals((Float) symbol.getIconHaloBlur(), (Float) 0.3f); + symbol.setIconHaloBlur(2.0f); + assertEquals((Float) symbol.getIconHaloBlur(), (Float) 2.0f); }); } @@ -364,8 +364,8 @@ public void testTextOpacity() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setTextOpacity(0.3f); - assertEquals((Float) symbol.getTextOpacity(), (Float) 0.3f); + symbol.setTextOpacity(2.0f); + assertEquals((Float) symbol.getTextOpacity(), (Float) 2.0f); }); } @@ -429,8 +429,8 @@ public void testTextHaloWidth() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setTextHaloWidth(0.3f); - assertEquals((Float) symbol.getTextHaloWidth(), (Float) 0.3f); + symbol.setTextHaloWidth(2.0f); + assertEquals((Float) symbol.getTextHaloWidth(), (Float) 2.0f); }); } @@ -442,8 +442,8 @@ public void testTextHaloBlur() { invoke(mapboxMap, (uiController, mapboxMap) -> { assertNotNull(symbol); - symbol.setTextHaloBlur(0.3f); - assertEquals((Float) symbol.getTextHaloBlur(), (Float) 0.3f); + symbol.setTextHaloBlur(2.0f); + assertEquals((Float) symbol.getTextHaloBlur(), (Float) 2.0f); }); } } diff --git a/plugin-annotation/scripts/code-gen.js b/plugin-annotation/scripts/code-gen.js index 13b447273..1a5c3d141 100644 --- a/plugin-annotation/scripts/code-gen.js +++ b/plugin-annotation/scripts/code-gen.js @@ -235,7 +235,7 @@ global.defaultValueJava = function(property) { case 'boolean': return 'true'; case 'number': - return '0.3f'; + return '2.0f'; case 'formatted': case 'string': return '"' + property['default'] + '"'; diff --git a/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/CircleManagerTest.java b/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/CircleManagerTest.java index 4c8646076..3ff0f2719 100644 --- a/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/CircleManagerTest.java +++ b/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/CircleManagerTest.java @@ -169,26 +169,26 @@ public void addCircleFromFeatureCollection() { Geometry geometry = Point.fromLngLat(10, 10); Feature feature = Feature.fromGeometry(geometry); - feature.addNumberProperty("circle-radius", 0.3f); + feature.addNumberProperty("circle-radius", 2.0f); feature.addStringProperty("circle-color", "rgba(0, 0, 0, 1)"); - feature.addNumberProperty("circle-blur", 0.3f); - feature.addNumberProperty("circle-opacity", 0.3f); - feature.addNumberProperty("circle-stroke-width", 0.3f); + feature.addNumberProperty("circle-blur", 2.0f); + feature.addNumberProperty("circle-opacity", 2.0f); + feature.addNumberProperty("circle-stroke-width", 2.0f); feature.addStringProperty("circle-stroke-color", "rgba(0, 0, 0, 1)"); - feature.addNumberProperty("circle-stroke-opacity", 0.3f); + feature.addNumberProperty("circle-stroke-opacity", 2.0f); feature.addBooleanProperty("is-draggable", true); List circles = circleManager.create(FeatureCollection.fromFeature(feature)); Circle circle = circles.get(0); assertEquals(circle.geometry, geometry); - assertEquals(circle.getCircleRadius(), 0.3f); + assertEquals(circle.getCircleRadius(), 2.0f); assertEquals(circle.getCircleColor(), "rgba(0, 0, 0, 1)"); - assertEquals(circle.getCircleBlur(), 0.3f); - assertEquals(circle.getCircleOpacity(), 0.3f); - assertEquals(circle.getCircleStrokeWidth(), 0.3f); + assertEquals(circle.getCircleBlur(), 2.0f); + assertEquals(circle.getCircleOpacity(), 2.0f); + assertEquals(circle.getCircleStrokeWidth(), 2.0f); assertEquals(circle.getCircleStrokeColor(), "rgba(0, 0, 0, 1)"); - assertEquals(circle.getCircleStrokeOpacity(), 0.3f); + assertEquals(circle.getCircleStrokeOpacity(), 2.0f); assertTrue(circle.isDraggable()); } @@ -254,7 +254,7 @@ public void testCircleRadiusLayerProperty() { circleManager = new CircleManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(circleLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(circleRadius(get("circle-radius"))))); - CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleRadius(0.3f); + CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleRadius(2.0f); circleManager.create(options); verify(circleLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(circleRadius(get("circle-radius"))))); @@ -280,7 +280,7 @@ public void testCircleBlurLayerProperty() { circleManager = new CircleManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(circleLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(circleBlur(get("circle-blur"))))); - CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleBlur(0.3f); + CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleBlur(2.0f); circleManager.create(options); verify(circleLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(circleBlur(get("circle-blur"))))); @@ -293,7 +293,7 @@ public void testCircleOpacityLayerProperty() { circleManager = new CircleManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(circleLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(circleOpacity(get("circle-opacity"))))); - CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleOpacity(0.3f); + CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleOpacity(2.0f); circleManager.create(options); verify(circleLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(circleOpacity(get("circle-opacity"))))); @@ -306,7 +306,7 @@ public void testCircleStrokeWidthLayerProperty() { circleManager = new CircleManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(circleLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(circleStrokeWidth(get("circle-stroke-width"))))); - CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleStrokeWidth(0.3f); + CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleStrokeWidth(2.0f); circleManager.create(options); verify(circleLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(circleStrokeWidth(get("circle-stroke-width"))))); @@ -332,7 +332,7 @@ public void testCircleStrokeOpacityLayerProperty() { circleManager = new CircleManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(circleLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(circleStrokeOpacity(get("circle-stroke-opacity"))))); - CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleStrokeOpacity(0.3f); + CircleOptions options = new CircleOptions().withLatLng(new LatLng()).withCircleStrokeOpacity(2.0f); circleManager.create(options); verify(circleLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(circleStrokeOpacity(get("circle-stroke-opacity"))))); diff --git a/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/FillManagerTest.java b/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/FillManagerTest.java index 37d61c900..84b5469cd 100644 --- a/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/FillManagerTest.java +++ b/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/FillManagerTest.java @@ -183,7 +183,7 @@ public void addFillFromFeatureCollection() { Geometry geometry = Polygon.fromLngLats(points); Feature feature = Feature.fromGeometry(geometry); - feature.addNumberProperty("fill-opacity", 0.3f); + feature.addNumberProperty("fill-opacity", 2.0f); feature.addStringProperty("fill-color", "rgba(0, 0, 0, 1)"); feature.addStringProperty("fill-outline-color", "rgba(0, 0, 0, 1)"); feature.addStringProperty("fill-pattern", "pedestrian-polygon"); @@ -193,7 +193,7 @@ public void addFillFromFeatureCollection() { Fill fill = fills.get(0); assertEquals(fill.geometry, geometry); - assertEquals(fill.getFillOpacity(), 0.3f); + assertEquals(fill.getFillOpacity(), 2.0f); assertEquals(fill.getFillColor(), "rgba(0, 0, 0, 1)"); assertEquals(fill.getFillOutlineColor(), "rgba(0, 0, 0, 1)"); assertEquals(fill.getFillPattern(), "pedestrian-polygon"); @@ -324,7 +324,7 @@ public void testFillOpacityLayerProperty() { innerLatLngs.add(new LatLng(-1,-1)); List>latLngs = new ArrayList<>(); latLngs.add(innerLatLngs); - FillOptions options = new FillOptions().withLatLngs(latLngs).withFillOpacity(0.3f); + FillOptions options = new FillOptions().withLatLngs(latLngs).withFillOpacity(2.0f); fillManager.create(options); verify(fillLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(fillOpacity(get("fill-opacity"))))); diff --git a/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/LineManagerTest.java b/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/LineManagerTest.java index a51657b43..b062de625 100644 --- a/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/LineManagerTest.java +++ b/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/LineManagerTest.java @@ -176,12 +176,12 @@ public void addLineFromFeatureCollection() { Feature feature = Feature.fromGeometry(geometry); feature.addStringProperty("line-join", LINE_JOIN_BEVEL); - feature.addNumberProperty("line-opacity", 0.3f); + feature.addNumberProperty("line-opacity", 2.0f); feature.addStringProperty("line-color", "rgba(0, 0, 0, 1)"); - feature.addNumberProperty("line-width", 0.3f); - feature.addNumberProperty("line-gap-width", 0.3f); - feature.addNumberProperty("line-offset", 0.3f); - feature.addNumberProperty("line-blur", 0.3f); + feature.addNumberProperty("line-width", 2.0f); + feature.addNumberProperty("line-gap-width", 2.0f); + feature.addNumberProperty("line-offset", 2.0f); + feature.addNumberProperty("line-blur", 2.0f); feature.addStringProperty("line-pattern", "pedestrian-polygon"); feature.addBooleanProperty("is-draggable", true); @@ -190,12 +190,12 @@ public void addLineFromFeatureCollection() { assertEquals(line.geometry, geometry); assertEquals(line.getLineJoin(), LINE_JOIN_BEVEL); - assertEquals(line.getLineOpacity(), 0.3f); + assertEquals(line.getLineOpacity(), 2.0f); assertEquals(line.getLineColor(), "rgba(0, 0, 0, 1)"); - assertEquals(line.getLineWidth(), 0.3f); - assertEquals(line.getLineGapWidth(), 0.3f); - assertEquals(line.getLineOffset(), 0.3f); - assertEquals(line.getLineBlur(), 0.3f); + assertEquals(line.getLineWidth(), 2.0f); + assertEquals(line.getLineGapWidth(), 2.0f); + assertEquals(line.getLineOffset(), 2.0f); + assertEquals(line.getLineBlur(), 2.0f); assertEquals(line.getLinePattern(), "pedestrian-polygon"); assertTrue(line.isDraggable()); } @@ -304,7 +304,7 @@ public void testLineOpacityLayerProperty() { ListlatLngs = new ArrayList<>(); latLngs.add(new LatLng()); latLngs.add(new LatLng(1,1)); - LineOptions options = new LineOptions().withLatLngs(latLngs).withLineOpacity(0.3f); + LineOptions options = new LineOptions().withLatLngs(latLngs).withLineOpacity(2.0f); lineManager.create(options); verify(lineLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(lineOpacity(get("line-opacity"))))); @@ -336,7 +336,7 @@ public void testLineWidthLayerProperty() { ListlatLngs = new ArrayList<>(); latLngs.add(new LatLng()); latLngs.add(new LatLng(1,1)); - LineOptions options = new LineOptions().withLatLngs(latLngs).withLineWidth(0.3f); + LineOptions options = new LineOptions().withLatLngs(latLngs).withLineWidth(2.0f); lineManager.create(options); verify(lineLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(lineWidth(get("line-width"))))); @@ -352,7 +352,7 @@ public void testLineGapWidthLayerProperty() { ListlatLngs = new ArrayList<>(); latLngs.add(new LatLng()); latLngs.add(new LatLng(1,1)); - LineOptions options = new LineOptions().withLatLngs(latLngs).withLineGapWidth(0.3f); + LineOptions options = new LineOptions().withLatLngs(latLngs).withLineGapWidth(2.0f); lineManager.create(options); verify(lineLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(lineGapWidth(get("line-gap-width"))))); @@ -368,7 +368,7 @@ public void testLineOffsetLayerProperty() { ListlatLngs = new ArrayList<>(); latLngs.add(new LatLng()); latLngs.add(new LatLng(1,1)); - LineOptions options = new LineOptions().withLatLngs(latLngs).withLineOffset(0.3f); + LineOptions options = new LineOptions().withLatLngs(latLngs).withLineOffset(2.0f); lineManager.create(options); verify(lineLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(lineOffset(get("line-offset"))))); @@ -384,7 +384,7 @@ public void testLineBlurLayerProperty() { ListlatLngs = new ArrayList<>(); latLngs.add(new LatLng()); latLngs.add(new LatLng(1,1)); - LineOptions options = new LineOptions().withLatLngs(latLngs).withLineBlur(0.3f); + LineOptions options = new LineOptions().withLatLngs(latLngs).withLineBlur(2.0f); lineManager.create(options); verify(lineLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(lineBlur(get("line-blur"))))); diff --git a/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java b/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java index 71468adfc..0ee0a554d 100644 --- a/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java +++ b/plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation/SymbolManagerTest.java @@ -169,70 +169,70 @@ public void addSymbolFromFeatureCollection() { Geometry geometry = Point.fromLngLat(10, 10); Feature feature = Feature.fromGeometry(geometry); - feature.addNumberProperty("symbol-sort-key", 0.3f); - feature.addNumberProperty("icon-size", 0.3f); + feature.addNumberProperty("symbol-sort-key", 2.0f); + feature.addNumberProperty("icon-size", 2.0f); feature.addStringProperty("icon-image", "undefined"); - feature.addNumberProperty("icon-rotate", 0.3f); + feature.addNumberProperty("icon-rotate", 2.0f); feature.addProperty("icon-offset", convertArray(new Float[] {0f, 0f})); feature.addStringProperty("icon-anchor", ICON_ANCHOR_CENTER); feature.addStringProperty("text-field", ""); feature.addProperty("text-font", convertArray(new String[]{"Open Sans Regular", "Arial Unicode MS Regular"})); - feature.addNumberProperty("text-size", 0.3f); - feature.addNumberProperty("text-max-width", 0.3f); - feature.addNumberProperty("text-letter-spacing", 0.3f); + feature.addNumberProperty("text-size", 2.0f); + feature.addNumberProperty("text-max-width", 2.0f); + feature.addNumberProperty("text-letter-spacing", 2.0f); feature.addStringProperty("text-justify", TEXT_JUSTIFY_AUTO); - feature.addNumberProperty("text-radial-offset", 0.3f); + feature.addNumberProperty("text-radial-offset", 2.0f); feature.addStringProperty("text-anchor", TEXT_ANCHOR_CENTER); - feature.addNumberProperty("text-rotate", 0.3f); + feature.addNumberProperty("text-rotate", 2.0f); feature.addStringProperty("text-transform", TEXT_TRANSFORM_NONE); feature.addProperty("text-offset", convertArray(new Float[] {0f, 0f})); - feature.addNumberProperty("icon-opacity", 0.3f); + feature.addNumberProperty("icon-opacity", 2.0f); feature.addStringProperty("icon-color", "rgba(0, 0, 0, 1)"); feature.addStringProperty("icon-halo-color", "rgba(0, 0, 0, 1)"); - feature.addNumberProperty("icon-halo-width", 0.3f); - feature.addNumberProperty("icon-halo-blur", 0.3f); - feature.addNumberProperty("text-opacity", 0.3f); + feature.addNumberProperty("icon-halo-width", 2.0f); + feature.addNumberProperty("icon-halo-blur", 2.0f); + feature.addNumberProperty("text-opacity", 2.0f); feature.addStringProperty("text-color", "rgba(0, 0, 0, 1)"); feature.addStringProperty("text-halo-color", "rgba(0, 0, 0, 1)"); - feature.addNumberProperty("text-halo-width", 0.3f); - feature.addNumberProperty("text-halo-blur", 0.3f); + feature.addNumberProperty("text-halo-width", 2.0f); + feature.addNumberProperty("text-halo-blur", 2.0f); feature.addBooleanProperty("is-draggable", true); List symbols = symbolManager.create(FeatureCollection.fromFeature(feature)); Symbol symbol = symbols.get(0); assertEquals(symbol.geometry, geometry); - assertEquals(symbol.getSymbolSortKey(), 0.3f); - assertEquals(symbol.getIconSize(), 0.3f); + assertEquals(symbol.getSymbolSortKey(), 2.0f); + assertEquals(symbol.getIconSize(), 2.0f); assertEquals(symbol.getIconImage(), "undefined"); - assertEquals(symbol.getIconRotate(), 0.3f); + assertEquals(symbol.getIconRotate(), 2.0f); PointF iconOffsetExpected = new PointF(new Float[] {0f, 0f}[0], new Float[] {0f, 0f}[1]); assertEquals(iconOffsetExpected.x, symbol.getIconOffset().x); assertEquals(iconOffsetExpected.y, symbol.getIconOffset().y); assertEquals(symbol.getIconAnchor(), ICON_ANCHOR_CENTER); assertEquals(symbol.getTextField(), ""); assertTrue(Arrays.equals(symbol.getTextFont(), new String[]{"Open Sans Regular", "Arial Unicode MS Regular"})); - assertEquals(symbol.getTextSize(), 0.3f); - assertEquals(symbol.getTextMaxWidth(), 0.3f); - assertEquals(symbol.getTextLetterSpacing(), 0.3f); + assertEquals(symbol.getTextSize(), 2.0f); + assertEquals(symbol.getTextMaxWidth(), 2.0f); + assertEquals(symbol.getTextLetterSpacing(), 2.0f); assertEquals(symbol.getTextJustify(), TEXT_JUSTIFY_AUTO); - assertEquals(symbol.getTextRadialOffset(), 0.3f); + assertEquals(symbol.getTextRadialOffset(), 2.0f); assertEquals(symbol.getTextAnchor(), TEXT_ANCHOR_CENTER); - assertEquals(symbol.getTextRotate(), 0.3f); + assertEquals(symbol.getTextRotate(), 2.0f); assertEquals(symbol.getTextTransform(), TEXT_TRANSFORM_NONE); PointF textOffsetExpected = new PointF(new Float[] {0f, 0f}[0], new Float[] {0f, 0f}[1]); assertEquals(textOffsetExpected.x, symbol.getTextOffset().x); assertEquals(textOffsetExpected.y, symbol.getTextOffset().y); - assertEquals(symbol.getIconOpacity(), 0.3f); + assertEquals(symbol.getIconOpacity(), 2.0f); assertEquals(symbol.getIconColor(), "rgba(0, 0, 0, 1)"); assertEquals(symbol.getIconHaloColor(), "rgba(0, 0, 0, 1)"); - assertEquals(symbol.getIconHaloWidth(), 0.3f); - assertEquals(symbol.getIconHaloBlur(), 0.3f); - assertEquals(symbol.getTextOpacity(), 0.3f); + assertEquals(symbol.getIconHaloWidth(), 2.0f); + assertEquals(symbol.getIconHaloBlur(), 2.0f); + assertEquals(symbol.getTextOpacity(), 2.0f); assertEquals(symbol.getTextColor(), "rgba(0, 0, 0, 1)"); assertEquals(symbol.getTextHaloColor(), "rgba(0, 0, 0, 1)"); - assertEquals(symbol.getTextHaloWidth(), 0.3f); - assertEquals(symbol.getTextHaloBlur(), 0.3f); + assertEquals(symbol.getTextHaloWidth(), 2.0f); + assertEquals(symbol.getTextHaloBlur(), 2.0f); assertTrue(symbol.isDraggable()); } @@ -298,7 +298,7 @@ public void testSymbolSortKeyLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(symbolSortKey(get("symbol-sort-key"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withSymbolSortKey(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withSymbolSortKey(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(symbolSortKey(get("symbol-sort-key"))))); @@ -311,7 +311,7 @@ public void testIconSizeLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(iconSize(get("icon-size"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconSize(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconSize(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(iconSize(get("icon-size"))))); @@ -337,7 +337,7 @@ public void testIconRotateLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(iconRotate(get("icon-rotate"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconRotate(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconRotate(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(iconRotate(get("icon-rotate"))))); @@ -402,7 +402,7 @@ public void testTextSizeLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(textSize(get("text-size"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextSize(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextSize(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(textSize(get("text-size"))))); @@ -415,7 +415,7 @@ public void testTextMaxWidthLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(textMaxWidth(get("text-max-width"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextMaxWidth(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextMaxWidth(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(textMaxWidth(get("text-max-width"))))); @@ -428,7 +428,7 @@ public void testTextLetterSpacingLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(textLetterSpacing(get("text-letter-spacing"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextLetterSpacing(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextLetterSpacing(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(textLetterSpacing(get("text-letter-spacing"))))); @@ -454,7 +454,7 @@ public void testTextRadialOffsetLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(textRadialOffset(get("text-radial-offset"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextRadialOffset(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextRadialOffset(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(textRadialOffset(get("text-radial-offset"))))); @@ -480,7 +480,7 @@ public void testTextRotateLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(textRotate(get("text-rotate"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextRotate(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextRotate(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(textRotate(get("text-rotate"))))); @@ -519,7 +519,7 @@ public void testIconOpacityLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(iconOpacity(get("icon-opacity"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconOpacity(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconOpacity(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(iconOpacity(get("icon-opacity"))))); @@ -558,7 +558,7 @@ public void testIconHaloWidthLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(iconHaloWidth(get("icon-halo-width"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconHaloWidth(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconHaloWidth(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(iconHaloWidth(get("icon-halo-width"))))); @@ -571,7 +571,7 @@ public void testIconHaloBlurLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(iconHaloBlur(get("icon-halo-blur"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconHaloBlur(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withIconHaloBlur(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(iconHaloBlur(get("icon-halo-blur"))))); @@ -584,7 +584,7 @@ public void testTextOpacityLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(textOpacity(get("text-opacity"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextOpacity(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextOpacity(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(textOpacity(get("text-opacity"))))); @@ -623,7 +623,7 @@ public void testTextHaloWidthLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(textHaloWidth(get("text-halo-width"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextHaloWidth(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextHaloWidth(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(textHaloWidth(get("text-halo-width"))))); @@ -636,7 +636,7 @@ public void testTextHaloBlurLayerProperty() { symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, null, null, draggableAnnotationController); verify(symbolLayer, times(0)).setProperties(argThat(new PropertyValueMatcher(textHaloBlur(get("text-halo-blur"))))); - SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextHaloBlur(0.3f); + SymbolOptions options = new SymbolOptions().withLatLng(new LatLng()).withTextHaloBlur(2.0f); symbolManager.create(options); verify(symbolLayer, times(1)).setProperties(argThat(new PropertyValueMatcher(textHaloBlur(get("text-halo-blur")))));