commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1243466 - in /commons/proper/math/trunk/src: site/xdoc/changes.xml test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java test/java/org/apache/commons/math/util/DefaultTransformerTest.java
Date Mon, 13 Feb 2012 10:25:09 GMT
Author: erans
Date: Mon Feb 13 10:25:09 2012
New Revision: 1243466

URL: http://svn.apache.org/viewvc?rev=1243466&view=rev
Log:
MATH-488
Removed last occurrences of "MathException" (appearing as a string and in
a commented-out unit test.

Modified:
    commons/proper/math/trunk/src/site/xdoc/changes.xml
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java

Modified: commons/proper/math/trunk/src/site/xdoc/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/site/xdoc/changes.xml?rev=1243466&r1=1243465&r2=1243466&view=diff
==============================================================================
--- commons/proper/math/trunk/src/site/xdoc/changes.xml (original)
+++ commons/proper/math/trunk/src/site/xdoc/changes.xml Mon Feb 13 10:25:09 2012
@@ -52,6 +52,9 @@ The <action> type attribute can be add,u
     If the output is not quite correct, check for invisible trailing spaces!
      -->
     <release version="3.0" date="TBD" description="TBD">
+      <action dev="erans" type="update" issue="MATH-459">
+        Removed "MathRuntimeException" (from package "o.a.c.math").
+      </action>
       <action dev="tn" type="fix" issue="MATH-739">
       	Merged interface and implementation of statistical tests in
       	o.a.c.m.stat.inference package.

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java?rev=1243466&r1=1243465&r2=1243466&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/regression/MillerUpdatingRegressionTest.java
Mon Feb 13 10:25:09 2012
@@ -714,7 +714,7 @@ public class MillerUpdatingRegressionTes
     }
 
 //    @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][];

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java?rev=1243466&r1=1243465&r2=1243466&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java
Mon Feb 13 10:25:09 2012
@@ -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



Mime
View raw message