Skip to content

Commit

Permalink
fixup! Fix unit tests according to new layerId API
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVautherin committed Jun 22, 2023
1 parent 683fa1b commit 4ee174a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public class <%- camelize(type) %>ManagerTest {

@Test
public void testLayerBelowInitialization() {
<%- type %>Manager = new <%- camelize(type) %>Manager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, draggableAnnotationController);
<%- type %>Manager = new <%- camelize(type) %>Manager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, null, draggableAnnotationController);
verify(style).addSource(geoJsonSource);
verify(style).addLayerBelow(<%- type %>Layer, "test_layer");
assertTrue(<%- type %>Manager.dataDrivenPropertyUsageMap.size() > 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void testInitializationOnStyleReload() {

@Test
public void testLayerBelowInitialization() {
circleManager = new CircleManager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, draggableAnnotationController);
circleManager = new CircleManager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, null, draggableAnnotationController);
verify(style).addSource(geoJsonSource);
verify(style).addLayerBelow(circleLayer, "test_layer");
assertTrue(circleManager.dataDrivenPropertyUsageMap.size() > 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void testInitializationOnStyleReload() {

@Test
public void testLayerBelowInitialization() {
fillManager = new FillManager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, draggableAnnotationController);
fillManager = new FillManager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, null, draggableAnnotationController);
verify(style).addSource(geoJsonSource);
verify(style).addLayerBelow(fillLayer, "test_layer");
assertTrue(fillManager.dataDrivenPropertyUsageMap.size() > 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void testInitializationOnStyleReload() {

@Test
public void testLayerBelowInitialization() {
lineManager = new LineManager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, draggableAnnotationController);
lineManager = new LineManager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, null, draggableAnnotationController);
verify(style).addSource(geoJsonSource);
verify(style).addLayerBelow(lineLayer, "test_layer");
assertTrue(lineManager.dataDrivenPropertyUsageMap.size() > 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void testInitializationOnStyleReload() {

@Test
public void testLayerBelowInitialization() {
symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, draggableAnnotationController);
symbolManager = new SymbolManager(mapView, mapboxMap, style, coreElementProvider, "test_layer", null, null, draggableAnnotationController);
verify(style).addSource(geoJsonSource);
verify(style).addLayerBelow(symbolLayer, "test_layer");
assertTrue(symbolManager.dataDrivenPropertyUsageMap.size() > 0);
Expand Down

0 comments on commit 4ee174a

Please sign in to comment.