BoundaryLayer extends KujakuLayer { @Override @NonNull public String[] getLayerIds() { return new String[] {BOUNDARY_LABEL_LAYER_ID, BOUNDARY_LINE_LAYER_ID}; } BoundaryLayer(@NonNull KujakuLayer.Builder builder); void updateLineLayerProperties(@NonNull PropertyValue<?>... properties); @Override void addLayerToMap(@NonNull MapboxMap mapboxMap); @Override void enableLayerOnMap(@NonNull MapboxMap mapboxMap); @Override void disableLayerOnMap(@NonNull MapboxMap mapboxMap); @Override @NonNull String[] getLayerIds(); @Override boolean removeLayerOnMap(@NonNull MapboxMap mapboxMap); @Override void updateFeatures(@NonNull FeatureCollection featureCollection); @Override FeatureCollection getFeatureCollection();  }
@Test public void getLayerIdsShouldReturnStringArrayWithLayerIds() { float textSize = 20f; float boundaryWidth = 6f; int colorInt = Color.GREEN; String labelProperty = "district-name"; FeatureCollection featureCollection = FeatureCollection.fromFeatures(new ArrayList<Feature>()); BoundaryLayer boundaryLayer = new BoundaryLayer.Builder(featureCollection) .setLabelProperty(labelProperty) .setLabelTextSize(textSize) .setLabelColorInt(colorInt) .setBoundaryColor(colorInt) .setBoundaryWidth(boundaryWidth) .build(); String[] layerIds = boundaryLayer.getLayerIds(); assertEquals(2, layerIds.length); assertNotNull(layerIds[0]); assertNotNull(layerIds[1]); }