org.junit.internal.runners.model.ReflectiveCallable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-curves4 Show documentation
Show all versions of virtdata-lib-curves4 Show documentation
Statistical sampling library for use in virtualdataset libraries, based on apache commons math 4
package org.junit.internal.runners.model;
import java.lang.reflect.InvocationTargetException;
/**
* When invoked, throws the exception from the reflected method, rather than
* wrapping it in an InvocationTargetException.
*/
public abstract class ReflectiveCallable {
public Object run() throws Throwable {
try {
return runReflectiveCall();
} catch (InvocationTargetException e) {
throw e.getTargetException();
}
}
protected abstract Object runReflectiveCall() throws Throwable;
}