You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2012/02/03 19:24:16 UTC

svn commit: r1240282 - in /commons/proper/math/trunk/src/test/java/org/apache/commons/math: stat/descriptive/ListUnivariateImpl.java util/DefaultTransformerTest.java

Author: tn
Date: Fri Feb  3 18:24:16 2012
New Revision: 1240282

URL: http://svn.apache.org/viewvc?rev=1240282&view=rev
Log:
Fixed failing unit test after change to NumberFormat.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/DefaultTransformerTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java?rev=1240282&r1=1240281&r2=1240282&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/ListUnivariateImpl.java Fri Feb  3 18:24:16 2012
@@ -20,7 +20,7 @@ import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;
 
-import org.apache.commons.math.MathException;
+import org.apache.commons.math.exception.MathIllegalArgumentException;
 import org.apache.commons.math.stat.descriptive.UnivariateStatistic;
 import org.apache.commons.math.stat.descriptive.DescriptiveStatistics;
 import org.apache.commons.math.util.DefaultTransformer;
@@ -113,7 +113,7 @@ public class ListUnivariateImpl extends 
 
         try {
             value = transformer.transform(list.get(calcIndex));
-        } catch (MathException e) {
+        } catch (MathIllegalArgumentException e) {
             e.printStackTrace();
         }
 

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=1240282&r1=1240281&r2=1240282&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 Fri Feb  3 18:24:16 2012
@@ -20,8 +20,8 @@ package org.apache.commons.math.util;
 import java.math.BigDecimal;
 
 
-import org.apache.commons.math.MathException;
 import org.apache.commons.math.TestUtils;
+import org.apache.commons.math.exception.MathIllegalArgumentException;
 import org.apache.commons.math.exception.NullArgumentException;
 import org.junit.Assert;
 import org.junit.Test;
@@ -98,7 +98,7 @@ public class DefaultTransformerTest {
         try {
             t.transform(input);
             Assert.fail("Expecting MathException");
-        } catch (MathException e) {
+        } catch (MathIllegalArgumentException e) {
             // expected
         }
     }