commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1042509 - in /commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math: analysis/interpolation/ analysis/polynomials/ transform/
Date Mon, 06 Dec 2010 01:49:59 GMT
Author: sebb
Date: Mon Dec  6 01:49:59 2010
New Revision: 1042509

URL: http://svn.apache.org/viewvc?rev=1042509&view=rev
Log:
Remove unnecessary throws clauses from testxxx methods

Modified:
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionNewtonFormTest.java
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastCosineTransformerTest.java
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastFourierTransformerTest.java
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastSineTransformerTest.java

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java?rev=1042509&r1=1042508&r2=1042509&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java
Mon Dec  6 01:49:59 2010
@@ -264,7 +264,7 @@ public final class BicubicSplineInterpol
      * f(x, y) = &Sigma;<sub>i</sub>&Sigma;<sub>j</sub> (i+1)
(j+2) x<sup>i</sup> y<sup>j</sup>
      */
     @Test
-    public void testSplinePartialDerivatives() throws MathException {
+    public void testSplinePartialDerivatives() {
         final int N = 4;
         final double[] coeff = new double[16];
 

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java?rev=1042509&r1=1042508&r2=1042509&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
Mon Dec  6 01:49:59 2010
@@ -16,7 +16,6 @@
  */
 package org.apache.commons.math.analysis.interpolation;
 
-import org.apache.commons.math.MathException;
 import org.apache.commons.math.exception.DimensionMismatchException;
 import org.apache.commons.math.util.FastMath;
 import org.apache.commons.math.analysis.TrivariateRealFunction;
@@ -33,7 +32,7 @@ public final class TricubicSplineInterpo
      * Test preconditions.
      */
     @Test
-    public void testPreconditions() throws MathException {
+    public void testPreconditions() {
         double[] xval = new double[] {3, 4, 5, 6.5};
         double[] yval = new double[] {-4, -3, -1, 2.5};
         double[] zval = new double[] {-12, -8, -5.5, -3, 0, 2.5};
@@ -275,7 +274,7 @@ public final class TricubicSplineInterpo
      * </p>
      */
     @Test
-    public void testPlane() throws MathException {
+    public void testPlane() {
         double[] xval = new double[] {3, 4, 5, 6.5};
         double[] yval = new double[] {-4, -3, -1, 2, 2.5};
         double[] zval = new double[] {-12, -8, -5.5, -3, 0, 2.5};
@@ -380,7 +379,7 @@ public final class TricubicSplineInterpo
      * with A = 0.2, &omega; = 0.5, k<sub>x</sub> = 2, k<sub>y</sub>
= 1.
      */
     @Test
-    public void testWave() throws MathException {
+    public void testWave() {
         double[] xval = new double[] {3, 4, 5, 6.5};
         double[] yval = new double[] {-4, -3, -1, 2, 2.5};
         double[] zval = new double[] {-12, -8, -5.5, -3, 0, 4};

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java?rev=1042509&r1=1042508&r2=1042509&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java
Mon Dec  6 01:49:59 2010
@@ -16,7 +16,6 @@
  */
 package org.apache.commons.math.analysis.polynomials;
 
-import org.apache.commons.math.MathException;
 import junit.framework.TestCase;
 
 /**
@@ -33,7 +32,7 @@ public final class PolynomialFunctionLag
     /**
      * Test of polynomial for the linear function.
      */
-    public void testLinearFunction() throws MathException {
+    public void testLinearFunction() {
         PolynomialFunctionLagrangeForm p;
         double c[], z, expected, result, tolerance = 1E-12;
 
@@ -62,7 +61,7 @@ public final class PolynomialFunctionLag
     /**
      * Test of polynomial for the quadratic function.
      */
-    public void testQuadraticFunction() throws MathException {
+    public void testQuadraticFunction() {
         PolynomialFunctionLagrangeForm p;
         double c[], z, expected, result, tolerance = 1E-12;
 
@@ -92,7 +91,7 @@ public final class PolynomialFunctionLag
     /**
      * Test of polynomial for the quintic function.
      */
-    public void testQuinticFunction() throws MathException {
+    public void testQuinticFunction() {
         PolynomialFunctionLagrangeForm p;
         double c[], z, expected, result, tolerance = 1E-12;
 

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionNewtonFormTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionNewtonFormTest.java?rev=1042509&r1=1042508&r2=1042509&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionNewtonFormTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionNewtonFormTest.java
Mon Dec  6 01:49:59 2010
@@ -16,7 +16,6 @@
  */
 package org.apache.commons.math.analysis.polynomials;
 
-import org.apache.commons.math.MathException;
 import junit.framework.TestCase;
 
 /**
@@ -31,7 +30,7 @@ public final class PolynomialFunctionNew
     /**
      * Test of polynomial for the linear function.
      */
-    public void testLinearFunction() throws MathException {
+    public void testLinearFunction() {
         PolynomialFunctionNewtonForm p;
         double coefficients[], z, expected, result, tolerance = 1E-12;
 
@@ -60,7 +59,7 @@ public final class PolynomialFunctionNew
     /**
      * Test of polynomial for the quadratic function.
      */
-    public void testQuadraticFunction() throws MathException {
+    public void testQuadraticFunction() {
         PolynomialFunctionNewtonForm p;
         double coefficients[], z, expected, result, tolerance = 1E-12;
 
@@ -90,7 +89,7 @@ public final class PolynomialFunctionNew
     /**
      * Test of polynomial for the quintic function.
      */
-    public void testQuinticFunction() throws MathException {
+    public void testQuinticFunction() {
         PolynomialFunctionNewtonForm p;
         double coefficients[], z, expected, result, tolerance = 1E-12;
 

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java?rev=1042509&r1=1042508&r2=1042509&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java
Mon Dec  6 01:49:59 2010
@@ -16,8 +16,6 @@
  */
 package org.apache.commons.math.analysis.polynomials;
 
-// commons-math
-import org.apache.commons.math.MathException;
 import org.apache.commons.math.TestUtils;
 import org.apache.commons.math.util.FastMath;
 // junit
@@ -39,7 +37,7 @@ public final class PolynomialFunctionTes
      *
      * <p>value of this is 2.5 everywhere.</p>
      */
-    public void testConstants() throws MathException {
+    public void testConstants() {
         double[] c = { 2.5 };
         PolynomialFunction f = new PolynomialFunction( c );
 
@@ -65,7 +63,7 @@ public final class PolynomialFunctionTes
      *      f(0.5) = 0.0, f(1.5) = 3.0</tt> and <tt>f(3.0) = 7.5</tt>
      * </p>
      */
-    public void testLinear() throws MathException {
+    public void testLinear() {
         double[] c = { -1.5, 3.0 };
         PolynomialFunction f = new PolynomialFunction( c );
 
@@ -139,7 +137,7 @@ public final class PolynomialFunctionTes
      * <tt>f(x) = x^3 - 2x^2 + 6x + 3, g(x) = 3x^2 - 4x + 6</tt>
      * and <tt>h(x) = 6x - 4</tt>
      */
-    public void testfirstDerivativeComparison() throws MathException {
+    public void testfirstDerivativeComparison() {
         double[] f_coeff = { 3.0, 6.0, -2.0, 1.0 };
         double[] g_coeff = { 6.0, -4.0, 3.0 };
         double[] h_coeff = { -4.0, 6.0 };
@@ -239,7 +237,7 @@ public final class PolynomialFunctionTes
      * <tt>f(x) = x^3 - 2x^2 + 6x + 3, g(x) = 3x^2 - 4x + 6</tt>
      * and <tt>h(x) = 6x - 4</tt>
      */
-    public void testMath341() throws MathException {
+    public void testMath341() {
         double[] f_coeff = { 3.0, 6.0, -2.0, 1.0 };
         double[] g_coeff = { 6.0, -4.0, 3.0 };
         double[] h_coeff = { -4.0, 6.0 };

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastCosineTransformerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastCosineTransformerTest.java?rev=1042509&r1=1042508&r2=1042509&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastCosineTransformerTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastCosineTransformerTest.java
Mon Dec  6 01:49:59 2010
@@ -18,7 +18,6 @@ package org.apache.commons.math.transfor
 
 import org.apache.commons.math.analysis.*;
 import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.MathException;
 import junit.framework.TestCase;
 
 /**
@@ -69,7 +68,7 @@ public final class FastCosineTransformer
     /**
      * Test of transformer for the sine function.
      */
-    public void testSinFunction() throws MathException {
+    public void testSinFunction() {
         UnivariateRealFunction f = new SinFunction();
         FastCosineTransformer transformer = new FastCosineTransformer();
         double min, max, result[], tolerance = 1E-12; int N = 9;

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastFourierTransformerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastFourierTransformerTest.java?rev=1042509&r1=1042508&r2=1042509&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastFourierTransformerTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastFourierTransformerTest.java
Mon Dec  6 01:49:59 2010
@@ -19,7 +19,6 @@ package org.apache.commons.math.transfor
 import org.apache.commons.math.analysis.*;
 import org.apache.commons.math.complex.*;
 import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.MathException;
 import junit.framework.TestCase;
 
 /**
@@ -114,7 +113,7 @@ public final class FastFourierTransforme
     /**
      * Test of transformer for the sine function.
      */
-    public void testSinFunction() throws MathException {
+    public void testSinFunction() {
         UnivariateRealFunction f = new SinFunction();
         FastFourierTransformer transformer = new FastFourierTransformer();
         Complex result[]; int N = 1 << 8;

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastSineTransformerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastSineTransformerTest.java?rev=1042509&r1=1042508&r2=1042509&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastSineTransformerTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/transform/FastSineTransformerTest.java
Mon Dec  6 01:49:59 2010
@@ -18,7 +18,6 @@ package org.apache.commons.math.transfor
 
 import org.apache.commons.math.analysis.*;
 import org.apache.commons.math.util.FastMath;
-import org.apache.commons.math.MathException;
 import junit.framework.TestCase;
 
 /**
@@ -69,7 +68,7 @@ public final class FastSineTransformerTe
     /**
      * Test of transformer for the sine function.
      */
-    public void testSinFunction() throws MathException {
+    public void testSinFunction() {
         UnivariateRealFunction f = new SinFunction();
         FastSineTransformer transformer = new FastSineTransformer();
         double min, max, result[], tolerance = 1E-12; int N = 1 << 8;



Mime
View raw message