commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1240282 - in /commons/proper/math/trunk/src/test/java/org/apache/commons/math: stat/descriptive/ListUnivariateImpl.java util/DefaultTransformerTest.java
Date Fri, 03 Feb 2012 18:24:16 GMT
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
         }
     }



Mime
View raw message