diff --git a/src/test/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaIntegratorTest.java b/src/test/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaIntegratorTest.java index 69e92196a..181d772d8 100644 --- a/src/test/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaIntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/nonstiff/ClassicalRungeKuttaIntegratorTest.java @@ -189,7 +189,7 @@ public class ClassicalRungeKuttaIntegratorTest maxError = 0; } public void handleStep(StepInterpolator interpolator, - boolean isLast) { + boolean isLast) throws DerivativeException { double[] interpolatedY = interpolator.getInterpolatedState (); double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime()); diff --git a/src/test/org/apache/commons/math/ode/nonstiff/EulerStepInterpolatorTest.java b/src/test/org/apache/commons/math/ode/nonstiff/EulerStepInterpolatorTest.java index cf52b6552..f2e1b4b1e 100644 --- a/src/test/org/apache/commons/math/ode/nonstiff/EulerStepInterpolatorTest.java +++ b/src/test/org/apache/commons/math/ode/nonstiff/EulerStepInterpolatorTest.java @@ -37,7 +37,7 @@ import org.junit.Test; public class EulerStepInterpolatorTest { @Test - public void noReset() { + public void noReset() throws DerivativeException { double[] y = { 0.0, 1.0, -2.0 }; double[][] yDot = { { 1.0, 2.0, -2.0 } }; diff --git a/src/test/org/apache/commons/math/ode/nonstiff/GillIntegratorTest.java b/src/test/org/apache/commons/math/ode/nonstiff/GillIntegratorTest.java index 3034c480e..76bdf1ec8 100644 --- a/src/test/org/apache/commons/math/ode/nonstiff/GillIntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/nonstiff/GillIntegratorTest.java @@ -179,9 +179,9 @@ public class GillIntegratorTest maxError = 0; } public void handleStep(StepInterpolator interpolator, - boolean isLast) { + boolean isLast) throws DerivativeException { - double[] interpolatedY = interpolator.getInterpolatedState (); + double[] interpolatedY = interpolator.getInterpolatedState(); double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime()); double dx = interpolatedY[0] - theoreticalY[0]; double dy = interpolatedY[1] - theoreticalY[1]; diff --git a/src/test/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java b/src/test/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java index 91108c3be..9174cc41b 100644 --- a/src/test/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java @@ -373,10 +373,10 @@ public class HighamHall54IntegratorTest maxError = 0; } public void handleStep(StepInterpolator interpolator, - boolean isLast) { + boolean isLast) throws DerivativeException { ++nbSteps; - double[] interpolatedY = interpolator.getInterpolatedState (); + double[] interpolatedY = interpolator.getInterpolatedState(); double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime()); double dx = interpolatedY[0] - theoreticalY[0]; double dy = interpolatedY[1] - theoreticalY[1]; diff --git a/src/test/org/apache/commons/math/ode/nonstiff/ThreeEighthesIntegratorTest.java b/src/test/org/apache/commons/math/ode/nonstiff/ThreeEighthesIntegratorTest.java index 174392f27..90cd06711 100644 --- a/src/test/org/apache/commons/math/ode/nonstiff/ThreeEighthesIntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/nonstiff/ThreeEighthesIntegratorTest.java @@ -174,9 +174,9 @@ public class ThreeEighthesIntegratorTest } public void handleStep(StepInterpolator interpolator, - boolean isLast) { + boolean isLast) throws DerivativeException { - double[] interpolatedY = interpolator.getInterpolatedState (); + double[] interpolatedY = interpolator.getInterpolatedState(); double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime()); double dx = interpolatedY[0] - theoreticalY[0]; double dy = interpolatedY[1] - theoreticalY[1];