src/test/java/ucar/geoapi/ContentVerifier.java
private <T> void explode(final Class<T> type, final T actual) {
        if (actual != null) try {
            addPropertyValue(type, actual);
        } catch (InvocationTargetException e) {
            Throwable cause = e.getTargetException();
            if (cause instanceof RuntimeException) {
                throw (RuntimeException) cause;
            } else if (cause instanceof Error) {
                throw (Error) cause;
            } else {
                throw new RuntimeException(cause);
            }
        } catch (IllegalAccessException e) {
            throw new AssertionError(e);                    // Should never happen since we invoked only public methods.
        } finally {
            path.setLength(0);
            visited.clear();
        }
    }
/**
     * Adds a snapshot of the given object for later comparison against expected values.
     *
     * @param  actual  the metadata or CRS read from a dataset, or {@code null} if none.
     * @throws IllegalStateException if the given object contains a property already found in a previous
     *         call to this method, and the values found in those two invocations are not equal.
     */
Adds a snapshot of the given object for later comparison against expected values.
@param  actual  the metadata or CRS read from a dataset, or  null if none.
@throws IllegalStateException if the given object contains a property already found in a previous
call to this method, and the values found in those two invocations are not equal.
Adds a snapshot of the given object for later comparison against expected values . @param actual the metadata or CRS read from a dataset or null if none . @throws IllegalStateException if the given object contains a property already found in a previous call to this method and the values found in those two invocations are not equal .
private <T> void explode(final Class<T> type, final T actual) {
        if (actual != null) try {
            addPropertyValue(type, actual);
        } catch (InvocationTargetException e) {
            Throwable cause = e.getTargetException();
            if (cause instanceof RuntimeException) {
                throw (RuntimeException) cause;
            } else if (cause instanceof Error) {
                throw (Error) cause;
            } else {
                throw new RuntimeException(cause);
            }
        } catch (IllegalAccessException e) {
            throw new AssertionError(e);                    
        } finally {
            path.setLength(0);
            visited.clear();
        }
    }
private < T > void explode ( final Class < T > type , final T actual ) { if ( actual != null ) try { addPropertyValue ( type , actual ) ; } catch ( InvocationTargetException e ) { Throwable cause = e . getTargetException ( ) ; if ( cause instanceof RuntimeException ) { throw ( RuntimeException ) cause ; } else if ( cause instanceof Error ) { throw ( Error ) cause ; } else { throw new RuntimeException ( cause ) ; } } catch ( IllegalAccessException e ) { throw new AssertionError ( e ) ; } finally { path . setLength ( 0 ) ; visited . clear ( ) ; } }
Adds a snapshot of the given object for later comparison against expected values.
Adds a snapshot of the given object for later comparison against expected values .
// Should never happen since we invoked only public methods.