diff --git a/src/test/java/org/apache/commons/math/analysis/solvers/BrentSolverTest.java b/src/test/java/org/apache/commons/math/analysis/solvers/BrentSolverTest.java index c48ebfb2e..60e3b62a6 100644 --- a/src/test/java/org/apache/commons/math/analysis/solvers/BrentSolverTest.java +++ b/src/test/java/org/apache/commons/math/analysis/solvers/BrentSolverTest.java @@ -149,6 +149,7 @@ public final class BrentSolverTest { try { result = solver.solve(5, f, 0.85, 5); + Assert.fail("Expected TooManyEvaluationsException"); } catch (TooManyEvaluationsException e) { // Expected. } diff --git a/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java b/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java index fe29d889b..c1a2a2536 100644 --- a/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java +++ b/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java @@ -78,6 +78,7 @@ public class FieldLUDecompositionImplTest extends TestCase { { Fraction.ZERO, Fraction.ZERO }, { Fraction.ZERO, Fraction.ZERO } })); + fail("Expected NonSquareMatrixException"); } catch (NonSquareMatrixException ime) { // expected behavior }