FillBoundaryLayer extends BoundaryLayer { @Override @NonNull public String[] getLayerIds() { List<String> both = new ArrayList<>(); Collections.addAll(both, super.getLayerIds()); Collections.addAll(both, BOUNDARY_FILL_LAYER_ID) ; return both.toArray(new String[both.size()]); } private  FillBoundaryLayer(@NonNull KujakuLayer.Builder builder); @Override @NonNull String[] getLayerIds();  }
@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>()); FillBoundaryLayer fillBoundaryLayer = new FillBoundaryLayer.Builder(featureCollection) .setLabelProperty(labelProperty) .setLabelTextSize(textSize) .setLabelColorInt(colorInt) .setBoundaryColor(colorInt) .setBoundaryWidth(boundaryWidth) .build(); String[] layerIds = fillBoundaryLayer.getLayerIds(); assertEquals(3, layerIds.length); assertNotNull(layerIds[0]); assertNotNull(layerIds[1]); assertNotNull(layerIds[2]); }