src/test/java/ucar/geoapi/NetcdfCRSTest.java
private void assertAxisEquals(final String name, final Unit<?> unit, final CoordinateSystemAxis axis) {
        assertNameEquals(name, axis);
        final Unit<?> axisUnit = axis.getUnit();
        if (axisUnit != null) try {
            assertEquals(name, axisUnit.getConverterToAny(unit).convert(1), 1, 1E-15);
        } catch (IncommensurableException e) {
            throw new AssertionError(e);
        }
    }
/**
     * Verifies that the given axis has the expected properties.
     *
     * @param name  the expected axis name.
     * @param unit  the expected axis unit.
     * @param axis  the axis to verify.
     */
Verifies that the given axis has the expected properties.
@param name  the expected axis name.
@param unit  the expected axis unit.
@param axis  the axis to verify.
Verifies that the given axis has the expected properties . @param name the expected axis name . @param unit the expected axis unit . @param axis the axis to verify .
private void assertAxisEquals(final String name, final Unit<?> unit, final CoordinateSystemAxis axis) {
        assertNameEquals(name, axis);
        final Unit<?> axisUnit = axis.getUnit();
        if (axisUnit != null) try {
            assertEquals(name, axisUnit.getConverterToAny(unit).convert(1), 1, 1E-15);
        } catch (IncommensurableException e) {
            throw new AssertionError(e);
        }
    }
private void assertAxisEquals ( final String name , final Unit < ? > unit , final CoordinateSystemAxis axis ) { assertNameEquals ( name , axis ) ; final Unit < ? > axisUnit = axis . getUnit ( ) ; if ( axisUnit != null ) try { assertEquals ( name , axisUnit . getConverterToAny ( unit ) . convert ( 1 ) , 1 , 1E-15 ) ; } catch ( IncommensurableException e ) { throw new AssertionError ( e ) ; } }
Verifies that the given axis has the expected properties.
Verifies that the given axis has the expected properties .