@Ignore @Test @Category(UnitTest.class) public void testWriteReloadWorks() throws IOException { metadata = reader.read(); Assert.assertEquals("Classification incorrect", Classification.Continuous, metadata.getClassification()); Assert.assertEquals("Max zoom incorrect", 10, metadata.getMaxZoomLevel()); Assert.assertEquals("Tile size incorrect", MrGeoConstants.MRGEO_MRS_TILESIZE_DEFAULT_INT, metadata.getTilesize()); MrsPyramidMetadata newmeta = new MrsPyramidMetadata(); newmeta.setPyramid(metadata.getPyramid()); newmeta.setClassification(Classification.Categorical); newmeta.setMaxZoomLevel(100); newmeta.setTilesize(100); writer.write(newmeta); Assert.assertEquals("Classification wasn't overwritten correctly", Classification.Categorical, metadata.getClassification()); Assert.assertEquals("Max zoom wasn't overwritten correctly", 100, metadata.getMaxZoomLevel()); Assert.assertEquals("Tile size wasn't overwritten correctly", 100, metadata.getTilesize()); }
@Override public void write() throws IOException { MrsPyramidMetadata metadata = provider.getMetadataReader(null).read(); write(metadata); }
AccumuloMrsPyramidMetadataWriter implements MrsPyramidMetadataWriter { @Override public void write() throws IOException { MrsPyramidMetadata metadata = provider.getMetadataReader(null).read(); write(metadata); } }
AccumuloMrsPyramidMetadataWriter implements MrsPyramidMetadataWriter { @Override public void write() throws IOException { MrsPyramidMetadata metadata = provider.getMetadataReader(null).read(); write(metadata); } AccumuloMrsPyramidMetadataWriter(MrsImageDataProvider provider,
    MrsPyramidMetadataWriterContext context); }
AccumuloMrsPyramidMetadataWriter implements MrsPyramidMetadataWriter { @Override public void write() throws IOException { MrsPyramidMetadata metadata = provider.getMetadataReader(null).read(); write(metadata); } AccumuloMrsPyramidMetadataWriter(MrsImageDataProvider provider,
    MrsPyramidMetadataWriterContext context); @Override void write(); @Override @SuppressWarnings("squid:S1166") // Exception caught and handled void write(MrsPyramidMetadata metadata); void setConnector(Connector conn); }
AccumuloMrsPyramidMetadataWriter implements MrsPyramidMetadataWriter { @Override public void write() throws IOException { MrsPyramidMetadata metadata = provider.getMetadataReader(null).read(); write(metadata); } AccumuloMrsPyramidMetadataWriter(MrsImageDataProvider provider,
    MrsPyramidMetadataWriterContext context); @Override void write(); @Override @SuppressWarnings("squid:S1166") // Exception caught and handled void write(MrsPyramidMetadata metadata); void setConnector(Connector conn);  }