use of org.apache.sis.internal.netcdf.ucar.DecoderWrapper in project sis by apache.
the class MetadataReaderTest method testUCAR.
/**
* Reads the metadata using the UCAR library and compares
* its string representation with the expected one.
*
* @throws IOException if an I/O error occurred.
* @throws DataStoreException if a logical error occurred.
*/
@Test
public void testUCAR() throws IOException, DataStoreException {
final Metadata metadata;
try (Decoder input = new DecoderWrapper(new NetcdfDataset(open(NCEP)), GeometryLibrary.JAVA2D, TestCase.LISTENERS)) {
metadata = new MetadataReader(input).read();
}
compareToExpected(metadata);
}
Aggregations