diff --git a/src/test/org/apache/commons/math/ode/ClassicalRungeKuttaIntegratorTest.java b/src/test/org/apache/commons/math/ode/ClassicalRungeKuttaIntegratorTest.java index 8a7840c1d..8c6ef7913 100644 --- a/src/test/org/apache/commons/math/ode/ClassicalRungeKuttaIntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/ClassicalRungeKuttaIntegratorTest.java @@ -116,7 +116,7 @@ public class ClassicalRungeKuttaIntegratorTest assertTrue(handler.getLastError() < 2.0e-13); assertTrue(handler.getMaximalError() < 4.0e-12); - + assertEquals("classical Runge-Kutta", integ.getName()); } public void testBigStep() diff --git a/src/test/org/apache/commons/math/ode/DormandPrince54IntegratorTest.java b/src/test/org/apache/commons/math/ode/DormandPrince54IntegratorTest.java index 6498698f9..063395fc3 100644 --- a/src/test/org/apache/commons/math/ode/DormandPrince54IntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/DormandPrince54IntegratorTest.java @@ -97,6 +97,7 @@ public class DormandPrince54IntegratorTest pb.getInitialTime(), pb.getInitialState(), pb.getFinalTime(), new double[pb.getDimension()]); assertTrue(handler.wasLastSeen()); + assertEquals("Dormand-Prince 5(4)", integ.getName()); } diff --git a/src/test/org/apache/commons/math/ode/DormandPrince853IntegratorTest.java b/src/test/org/apache/commons/math/ode/DormandPrince853IntegratorTest.java index 5198c2901..ff26ca008 100644 --- a/src/test/org/apache/commons/math/ode/DormandPrince853IntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/DormandPrince853IntegratorTest.java @@ -189,6 +189,7 @@ public class DormandPrince853IntegratorTest integ.integrate(pb, pb.getInitialTime(), pb.getInitialState(), pb.getFinalTime(), new double[pb.getDimension()]); + assertEquals("Dormand-Prince 8 (5, 3)", integ.getName()); } public void testNoDenseOutput() diff --git a/src/test/org/apache/commons/math/ode/EulerIntegratorTest.java b/src/test/org/apache/commons/math/ode/EulerIntegratorTest.java index 4fb36220d..9840f7282 100644 --- a/src/test/org/apache/commons/math/ode/EulerIntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/EulerIntegratorTest.java @@ -97,6 +97,7 @@ public class EulerIntegratorTest assertTrue(handler.getLastError() < 2.0e-4); assertTrue(handler.getMaximalError() < 1.0e-3); + assertEquals("Euler", integ.getName()); } diff --git a/src/test/org/apache/commons/math/ode/GillIntegratorTest.java b/src/test/org/apache/commons/math/ode/GillIntegratorTest.java index 7053126bf..376ebce80 100644 --- a/src/test/org/apache/commons/math/ode/GillIntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/GillIntegratorTest.java @@ -96,6 +96,7 @@ public class GillIntegratorTest assertTrue(handler.getLastError() < 2.0e-13); assertTrue(handler.getMaximalError() < 4.0e-12); + assertEquals("Gill", integ.getName()); } diff --git a/src/test/org/apache/commons/math/ode/GraggBulirschStoerIntegratorTest.java b/src/test/org/apache/commons/math/ode/GraggBulirschStoerIntegratorTest.java index fca8f2050..34f1c91eb 100644 --- a/src/test/org/apache/commons/math/ode/GraggBulirschStoerIntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/GraggBulirschStoerIntegratorTest.java @@ -189,6 +189,7 @@ public class GraggBulirschStoerIntegratorTest integ.integrate(pb, pb.getInitialTime(), pb.getInitialState(), pb.getFinalTime(), new double[pb.getDimension()]); + assertEquals("Gragg-Bulirsch-Stoer", integ.getName()); } public void testUnstableDerivative() diff --git a/src/test/org/apache/commons/math/ode/HighamHall54IntegratorTest.java b/src/test/org/apache/commons/math/ode/HighamHall54IntegratorTest.java index ddb9a7b0f..f54df0911 100644 --- a/src/test/org/apache/commons/math/ode/HighamHall54IntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/HighamHall54IntegratorTest.java @@ -236,6 +236,7 @@ public class HighamHall54IntegratorTest integ.integrate(pb, pb.getInitialTime(), pb.getInitialState(), pb.getFinalTime(), new double[pb.getDimension()]); + assertEquals("Higham-Hall 5(4)", integ.getName()); } private static class KeplerHandler implements StepHandler { diff --git a/src/test/org/apache/commons/math/ode/MidpointIntegratorTest.java b/src/test/org/apache/commons/math/ode/MidpointIntegratorTest.java index becb39bf7..119997c22 100644 --- a/src/test/org/apache/commons/math/ode/MidpointIntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/MidpointIntegratorTest.java @@ -95,6 +95,7 @@ public class MidpointIntegratorTest assertTrue(handler.getLastError() < 2.0e-7); assertTrue(handler.getMaximalError() < 1.0e-6); + assertEquals("midpoint", integ.getName()); } diff --git a/src/test/org/apache/commons/math/ode/ThreeEighthesIntegratorTest.java b/src/test/org/apache/commons/math/ode/ThreeEighthesIntegratorTest.java index 305bb3449..d417e8c2c 100644 --- a/src/test/org/apache/commons/math/ode/ThreeEighthesIntegratorTest.java +++ b/src/test/org/apache/commons/math/ode/ThreeEighthesIntegratorTest.java @@ -96,6 +96,7 @@ public class ThreeEighthesIntegratorTest assertTrue(handler.getLastError() < 2.0e-13); assertTrue(handler.getMaximalError() < 4.0e-12); + assertEquals("3/8", integ.getName()); }