/** * Tests {@link NetcdfStore#getConventionVersion()}. * * @throws DataStoreException if an error occurred while reading the netCDF file. */ @Test public void testGetConventionVersion() throws DataStoreException { final Version version; try (NetcdfStore store = create(TestData.NETCDF_2D_GEOGRAPHIC)) { version = store.getConventionVersion(); } assertEquals("major", 1, version.getMajor()); assertEquals("minor", 4, version.getMinor()); } }