@Test public void disposeDoesNotCallLayerDispose() { final boolean[] layerDisposed = new boolean[1]; Layer layer = new MockLayer(WORLD) { @Override public void dispose() { layerDisposed[0] = true; } }; MapContent mc = new SingleLayerMapContent(layer); mc.dispose(); assertFalse(layerDisposed[0]); }
@Override public void dispose() { }
SingleLayerMapContent extends MapContent { @Override public void dispose() { } }
SingleLayerMapContent extends MapContent { @Override public void dispose() { } SingleLayerMapContent(Layer layer); }
SingleLayerMapContent extends MapContent { @Override public void dispose() { } SingleLayerMapContent(Layer layer); @Override boolean addLayer(Layer layer); @Override void moveLayer(int sourcePosition, int destPosition); @Override boolean removeLayer(Layer layer); @Override void dispose(); }
SingleLayerMapContent extends MapContent { @Override public void dispose() { } SingleLayerMapContent(Layer layer); @Override boolean addLayer(Layer layer); @Override void moveLayer(int sourcePosition, int destPosition); @Override boolean removeLayer(Layer layer); @Override void dispose();  }