From d429505103865e9f92c4c21d1a5d51eab35d7733 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Mon, 13 Feb 2012 10:25:09 +0000 Subject: [PATCH] MATH-488 Removed last occurrences of "MathException" (appearing as a string and in a commented-out unit test. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1243466 13f79535-47bb-0310-9956-ffa450edef68 --- src/site/xdoc/changes.xml | 3 +++ .../stat/regression/MillerUpdatingRegressionTest.java | 2 +- .../apache/commons/math/util/DefaultTransformerTest.java | 9 ++------- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/site/xdoc/changes.xml b/src/site/xdoc/changes.xml index fb365d118..60ac6269d 100644 --- a/src/site/xdoc/changes.xml +++ b/src/site/xdoc/changes.xml @@ -52,6 +52,9 @@ The type attribute can be add,update,fix,remove. If the output is not quite correct, check for invisible trailing spaces! --> + + Removed "MathRuntimeException" (from package "o.a.c.math"). + Merged interface and implementation of statistical tests in o.a.c.m.stat.inference package. diff --git a/src/test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java b/src/test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java index 807db0cf2..4196880db 100644 --- a/src/test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java +++ b/src/test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java @@ -714,7 +714,7 @@ public class MillerUpdatingRegressionTest { } // @Test -// public void testRegressReorder() throws MathException { +// public void testRegressReorder() { // // System.out.println("testRegressReorder"); // MillerUpdatingRegression instance = new MillerUpdatingRegression(4, false); // double[][] x = new double[airdata[0].length][]; diff --git a/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java b/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java index 38c7c5e8d..f7fed1ca3 100644 --- a/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java +++ b/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java @@ -91,16 +91,11 @@ public class DefaultTransformerTest { /** * */ - @Test + @Test(expected=MathIllegalArgumentException.class) public void testTransformObject(){ Boolean input = Boolean.TRUE; DefaultTransformer t = new DefaultTransformer(); - try { - t.transform(input); - Assert.fail("Expecting MathException"); - } catch (MathIllegalArgumentException e) { - // expected - } + t.transform(input); } @Test