commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r764769 - in /commons/proper/math/trunk/src/test/org/apache/commons/math: analysis/polynomials/ distribution/ geometry/ ode/nonstiff/ ode/sampling/ optimization/direct/ optimization/general/ optimization/linear/ transform/
Date Tue, 14 Apr 2009 13:13:55 GMT
Author: sebb
Date: Tue Apr 14 13:13:54 2009
New Revision: 764769

URL: http://svn.apache.org/viewvc?rev=764769&view=rev
Log:
Remove non-thrown throws clauses

Modified:
    commons/proper/math/trunk/src/test/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ExponentialDistributionTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/geometry/RotationTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince54IntegratorTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince853IntegratorTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegratorTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/DummyStepInterpolatorTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/MultiDirectionalTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/NelderMeadTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/GaussNewtonOptimizerTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/MinpackTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/linear/SimplexSolverTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastCosineTransformerTest.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastSineTransformerTest.java

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/analysis/polynomials/PolynomialFunctionTest.java
Tue Apr 14 13:13:54 2009
@@ -90,7 +90,7 @@
      * <p> This will test the function f(x) = 2x^2 - 3x -2 = (2x+1)(x-2)</p>
      *
      */
-    public void testQuadratic() throws MathException {
+    public void testQuadratic() {
         double[] c = { -2.0, -3.0, 2.0 };
         PolynomialFunction f = new PolynomialFunction( c );
 
@@ -112,7 +112,7 @@
      *   f(x) = x^2(x-5)(x+3)(x-1) = x^5 - 3x^4 -13x^3 + 15x^2</p>
      *
      */
-    public void testQuintic() throws MathException {
+    public void testQuintic() {
         double[] c = { 0.0, 0.0, 15.0, -13.0, -3.0, 1.0 };
         PolynomialFunction f = new PolynomialFunction( c );
 

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ExponentialDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ExponentialDistributionTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ExponentialDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/ExponentialDistributionTest.java
Tue Apr 14 13:13:54 2009
@@ -16,8 +16,6 @@
  */
 package org.apache.commons.math.distribution;
 
-import org.apache.commons.math.MathException;
-
 /**
  * Test cases for ExponentialDistribution.
  * Extends ContinuousDistributionAbstractTest.  See class javadoc for
@@ -77,7 +75,7 @@
         assertEquals(0.0905214, actual, 10e-4);
     }
 
-    public void testDensity() throws MathException {
+    public void testDensity() {
         ExponentialDistribution d1 = new ExponentialDistributionImpl(1);
         assertEquals(0.0, d1.density(-1e-9));
         assertEquals(1.0, d1.density(0.0));

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/geometry/RotationTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/geometry/RotationTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/geometry/RotationTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/geometry/RotationTest.java
Tue Apr 14 13:13:54 2009
@@ -349,8 +349,7 @@
 
   }
 
-  public void testSingularities()
-    throws CardanEulerSingularityException {
+  public void testSingularities() {
 
     RotationOrder[] CardanOrders = {
       RotationOrder.XYZ, RotationOrder.XZY, RotationOrder.YXZ,

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince54IntegratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince54IntegratorTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince54IntegratorTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince54IntegratorTest.java
Tue Apr 14 13:13:54 2009
@@ -50,8 +50,7 @@
     }
   }
 
-  public void testMinStep()
-    throws DerivativeException, IntegratorException {
+  public void testMinStep() {
 
     try {
       TestProblem1 pb = new TestProblem1();

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince853IntegratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince853IntegratorTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince853IntegratorTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/DormandPrince853IntegratorTest.java
Tue Apr 14 13:13:54 2009
@@ -65,8 +65,7 @@
     }
   }
 
-  public void testMinStep()
-    throws DerivativeException, IntegratorException {
+  public void testMinStep() {
 
     try {
       TestProblem1 pb = new TestProblem1();

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegratorTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegratorTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/GraggBulirschStoerIntegratorTest.java
Tue Apr 14 13:13:54 2009
@@ -64,8 +64,7 @@
     }
   }
 
-  public void testMinStep()
-    throws DerivativeException, IntegratorException {
+  public void testMinStep() {
 
     try {
       TestProblem5 pb  = new TestProblem5();

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java
Tue Apr 14 13:13:54 2009
@@ -78,8 +78,7 @@
     }
   }
 
-  public void testMinStep()
-    throws DerivativeException, IntegratorException {
+  public void testMinStep() {
 
     try {
       TestProblem1 pb = new TestProblem1();
@@ -193,8 +192,7 @@
 
   }
 
-  public void testEventsErrors()
-    throws DerivativeException, IntegratorException {
+  public void testEventsErrors() {
 
       final TestProblem1 pb = new TestProblem1();
       double minStep = 0;
@@ -238,8 +236,7 @@
 
   }
 
-  public void testEventsNoConvergence()
-  throws DerivativeException, IntegratorException {
+  public void testEventsNoConvergence() {
 
     final TestProblem1 pb = new TestProblem1();
     double minStep = 0;

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/DummyStepInterpolatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/DummyStepInterpolatorTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/DummyStepInterpolatorTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/ode/sampling/DummyStepInterpolatorTest.java
Tue Apr 14 13:13:54 2009
@@ -25,7 +25,6 @@
 import java.io.IOException;
 
 import org.apache.commons.math.ode.DerivativeException;
-import org.apache.commons.math.ode.IntegratorException;
 import org.apache.commons.math.ode.sampling.AbstractStepInterpolator;
 import org.apache.commons.math.ode.sampling.DummyStepInterpolator;
 
@@ -75,8 +74,7 @@
   }
 
   public void testSerialization()
-  throws DerivativeException, IntegratorException,
-         IOException, ClassNotFoundException {
+  throws DerivativeException, IOException, ClassNotFoundException {
 
     double[]   y    =   { 0.0, 1.0, -2.0 };
     DummyStepInterpolator interpolator = new DummyStepInterpolator(y, true);
@@ -104,8 +102,7 @@
   }
 
   public void testImpossibleSerialization()
-  throws DerivativeException, IntegratorException,
-         IOException, ClassNotFoundException {
+  throws IOException {
 
     double[] y = { 0.0, 1.0, -2.0 };
     AbstractStepInterpolator interpolator = new BadStepInterpolator(y, true);
@@ -143,8 +140,7 @@
 
 
   public void testSerializationError()
-  throws DerivativeException, IntegratorException,
-         IOException, ClassNotFoundException {
+  throws IOException {
 
     double[] y = { 0.0, 1.0, -2.0 };
     ErrorGeneratingInterpolator interpolator =

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/MultiDirectionalTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/MultiDirectionalTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/MultiDirectionalTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/MultiDirectionalTest.java
Tue Apr 14 13:13:54 2009
@@ -24,7 +24,6 @@
 import org.apache.commons.math.ConvergenceException;
 import org.apache.commons.math.FunctionEvaluationException;
 import org.apache.commons.math.analysis.MultivariateRealFunction;
-import org.apache.commons.math.linear.decomposition.NotPositiveDefiniteMatrixException;
 import org.apache.commons.math.optimization.GoalType;
 import org.apache.commons.math.optimization.RealPointValuePair;
 import org.apache.commons.math.optimization.SimpleScalarValueChecker;
@@ -36,7 +35,7 @@
     super(name);
   }
 
-  public void testFunctionEvaluationExceptions() throws ConvergenceException {
+  public void testFunctionEvaluationExceptions() {
       MultivariateRealFunction wrong =
           new MultivariateRealFunction() {
             private static final long serialVersionUID = 4751314470965489371L;
@@ -73,7 +72,7 @@
   }
 
   public void testMinimizeMaximize()
-      throws FunctionEvaluationException, ConvergenceException, NotPositiveDefiniteMatrixException
{
+      throws FunctionEvaluationException, ConvergenceException {
 
       // the following function has 4 local extrema:
       final double xM        = -3.841947088256863675365;

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/NelderMeadTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/NelderMeadTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/NelderMeadTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/direct/NelderMeadTest.java
Tue Apr 14 13:13:54 2009
@@ -24,7 +24,6 @@
 import org.apache.commons.math.ConvergenceException;
 import org.apache.commons.math.FunctionEvaluationException;
 import org.apache.commons.math.analysis.MultivariateRealFunction;
-import org.apache.commons.math.linear.decomposition.NotPositiveDefiniteMatrixException;
 import org.apache.commons.math.optimization.GoalType;
 import org.apache.commons.math.optimization.RealPointValuePair;
 import org.apache.commons.math.optimization.SimpleScalarValueChecker;
@@ -36,7 +35,7 @@
     super(name);
   }
 
-  public void testFunctionEvaluationExceptions() throws ConvergenceException {
+  public void testFunctionEvaluationExceptions() {
       MultivariateRealFunction wrong =
           new MultivariateRealFunction() {
             private static final long serialVersionUID = 4751314470965489371L;
@@ -73,7 +72,7 @@
   }
 
   public void testMinimizeMaximize()
-      throws FunctionEvaluationException, ConvergenceException, NotPositiveDefiniteMatrixException
{
+      throws FunctionEvaluationException, ConvergenceException {
 
       // the following function has 4 local extrema:
       final double xM        = -3.841947088256863675365;

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/GaussNewtonOptimizerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/GaussNewtonOptimizerTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/GaussNewtonOptimizerTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/GaussNewtonOptimizerTest.java
Tue Apr 14 13:13:54 2009
@@ -204,7 +204,7 @@
 
     }
 
-    public void testNonInversible() throws OptimizationException {
+    public void testNonInversible() {
 
         LinearProblem problem = new LinearProblem(new double[][] {
                 {  1, 2, -3 },
@@ -260,7 +260,7 @@
 
     }
 
-    public void testMoreEstimatedParametersSimple() throws OptimizationException {
+    public void testMoreEstimatedParametersSimple() {
 
         LinearProblem problem = new LinearProblem(new double[][] {
                 { 3.0, 2.0,  0.0, 0.0 },
@@ -283,7 +283,7 @@
 
     }
 
-    public void testMoreEstimatedParametersUnsorted() throws OptimizationException {
+    public void testMoreEstimatedParametersUnsorted() {
         LinearProblem problem = new LinearProblem(new double[][] {
                  { 1.0, 1.0,  0.0,  0.0, 0.0,  0.0 },
                  { 0.0, 0.0,  1.0,  1.0, 1.0,  0.0 },

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java
Tue Apr 14 13:13:54 2009
@@ -360,7 +360,7 @@
 
     }
 
-    public void testControlParameters() throws OptimizationException {
+    public void testControlParameters() {
         Circle circle = new Circle();
         circle.addPoint( 30.0,  68.0);
         circle.addPoint( 50.0,  -6.0);
@@ -500,7 +500,7 @@
         assertEquals( 0.2075001, center.y,      1.0e-6);
     }
 
-    public void testMath199() throws FunctionEvaluationException, OptimizationException {
+    public void testMath199() throws FunctionEvaluationException {
         try {
             QuadraticProblem problem = new QuadraticProblem();
             problem.addPoint (0, -3.182591015485607);

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/MinpackTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/MinpackTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/MinpackTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/general/MinpackTest.java
Tue Apr 14 13:13:54 2009
@@ -98,30 +98,26 @@
     super(name);
   }
 
-  public void testMinpackLinearFullRank()
-    throws OptimizationException {
+  public void testMinpackLinearFullRank() {
     minpackTest(new LinearFullRankFunction(10, 5, 1.0,
                                            5.0, 2.23606797749979), false);
     minpackTest(new LinearFullRankFunction(50, 5, 1.0,
                                            8.06225774829855, 6.70820393249937), false);
   }
 
-  public void testMinpackLinearRank1()
-    throws OptimizationException {
+  public void testMinpackLinearRank1() {
     minpackTest(new LinearRank1Function(10, 5, 1.0,
                                         291.521868819476, 1.4638501094228), false);
     minpackTest(new LinearRank1Function(50, 5, 1.0,
                                         3101.60039334535, 3.48263016573496), false);
   }
 
-  public void testMinpackLinearRank1ZeroColsAndRows()
-    throws OptimizationException {
+  public void testMinpackLinearRank1ZeroColsAndRows() {
     minpackTest(new LinearRank1ZeroColsAndRowsFunction(10, 5, 1.0), false);
     minpackTest(new LinearRank1ZeroColsAndRowsFunction(50, 5, 1.0), false);
   }
 
-  public void testMinpackRosenbrok()
-    throws OptimizationException {
+  public void testMinpackRosenbrok() {
     minpackTest(new RosenbrockFunction(new double[] { -1.2, 1.0 },
                                        Math.sqrt(24.2)), false);
     minpackTest(new RosenbrockFunction(new double[] { -12.0, 10.0 },
@@ -130,8 +126,7 @@
                                        11.0 * Math.sqrt(169000121.0)), false);
   }
 
-  public void testMinpackHelicalValley()
-    throws OptimizationException {
+  public void testMinpackHelicalValley() {
     minpackTest(new HelicalValleyFunction(new double[] { -1.0, 0.0, 0.0 },
                                           50.0), false);
     minpackTest(new HelicalValleyFunction(new double[] { -10.0, 0.0, 0.0 },
@@ -140,8 +135,7 @@
                                           991.261822123701), false);
   }
     
-  public void testMinpackPowellSingular()
-    throws OptimizationException {
+  public void testMinpackPowellSingular() {
     minpackTest(new PowellSingularFunction(new double[] { 3.0, -1.0, 0.0, 1.0 },
                                            14.6628782986152), false);
     minpackTest(new PowellSingularFunction(new double[] { 30.0, -10.0, 0.0, 10.0 },
@@ -150,8 +144,7 @@
                                            126887.903284750), false);
   }
     
-  public void testMinpackFreudensteinRoth()
-    throws OptimizationException {
+  public void testMinpackFreudensteinRoth() {
     minpackTest(new FreudensteinRothFunction(new double[] { 0.5, -2.0 },
                                              20.0124960961895, 6.99887517584575,
                                              new double[] {
@@ -172,8 +165,7 @@
                                              }), false);
   }
     
-  public void testMinpackBard()
-    throws OptimizationException {
+  public void testMinpackBard() {
     minpackTest(new BardFunction(1.0, 6.45613629515967, 0.0906359603390466,
                                  new double[] {
                                    0.0824105765758334,
@@ -194,8 +186,7 @@
                                  }), false);
   }
     
-  public void testMinpackKowalikOsborne()
-    throws OptimizationException {
+  public void testMinpackKowalikOsborne() {
     minpackTest(new KowalikOsborneFunction(new double[] { 0.25, 0.39, 0.415, 0.39 },
                                            0.0728915102882945,
                                            0.017535837721129,
@@ -225,8 +216,7 @@
                                            }), false);
   }
     
-  public void testMinpackMeyer()
-    throws OptimizationException {
+  public void testMinpackMeyer() {
     minpackTest(new MeyerFunction(new double[] { 0.02, 4000.0, 250.0 },
                                   41153.4665543031, 9.37794514651874,
                                   new double[] {
@@ -243,8 +233,7 @@
                                   }), true);
   }
     
-  public void testMinpackWatson()
-    throws OptimizationException {
+  public void testMinpackWatson() {
   
     minpackTest(new WatsonFunction(6, 0.0,
                                    5.47722557505166, 0.0478295939097601,
@@ -329,14 +318,12 @@
 
   }
     
-  public void testMinpackBox3Dimensional()
-  throws OptimizationException {
+  public void testMinpackBox3Dimensional() {
     minpackTest(new Box3DimensionalFunction(10, new double[] { 0.0, 10.0, 20.0 },
                                             32.1115837449572), false);
   }
     
-  public void testMinpackJennrichSampson()
-    throws OptimizationException {
+  public void testMinpackJennrichSampson() {
     minpackTest(new JennrichSampsonFunction(10, new double[] { 0.3, 0.4 },
                                             64.5856498144943, 11.1517793413499,
                                             new double[] {
@@ -344,8 +331,7 @@
                                             }), false);
   }
 
-  public void testMinpackBrownDennis()
-    throws OptimizationException {
+  public void testMinpackBrownDennis() {
     minpackTest(new BrownDennisFunction(20,
                                         new double[] { 25.0, 5.0, -5.0, -1.0 },
                                         2815.43839161816, 292.954288244866,
@@ -369,8 +355,7 @@
                                         }), false);
   }
     
-  public void testMinpackChebyquad()
-    throws OptimizationException {
+  public void testMinpackChebyquad() {
     minpackTest(new ChebyquadFunction(1, 8, 1.0,
                                       1.88623796907732, 1.88623796907732,
                                       new double[] { 0.5 }), false);
@@ -408,8 +393,7 @@
                                       }), false);
   }
     
-  public void testMinpackBrownAlmostLinear()
-    throws OptimizationException {
+  public void testMinpackBrownAlmostLinear() {
     minpackTest(new BrownAlmostLinearFunction(10, 0.5,
                                               16.5302162063499, 0.0,
                                               new double[] {
@@ -477,8 +461,7 @@
                                               }), false);
     }
     
-  public void testMinpackOsborne1()
-    throws OptimizationException {
+  public void testMinpackOsborne1() {
       minpackTest(new Osborne1Function(new double[] { 0.5, 1.5, -1.0, 0.01, 0.02, },
                                        0.937564021037838, 0.00739249260904843,
                                        new double[] {
@@ -488,8 +471,7 @@
                                        }), false);
     }
     
-  public void testMinpackOsborne2()
-    throws OptimizationException {
+  public void testMinpackOsborne2() {
       
     minpackTest(new Osborne2Function(new double[] {
                                        1.3, 0.65, 0.65, 0.7, 0.6,

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/linear/SimplexSolverTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/linear/SimplexSolverTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/linear/SimplexSolverTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/optimization/linear/SimplexSolverTest.java
Tue Apr 14 13:13:54 2009
@@ -90,7 +90,7 @@
         assertEquals(12.0, solution.getValue());
     }
 
-    public void testInfeasibleSolution() throws UnboundedSolutionException {
+    public void testInfeasibleSolution() {
         LinearObjectiveFunction f = new LinearObjectiveFunction(new double[] { 15 }, 0);
         Collection<LinearConstraint> constraints = new ArrayList<LinearConstraint>();
         constraints.add(new LinearConstraint(new double[] { 1 }, Relationship.LEQ, 1));
@@ -107,7 +107,7 @@
         }
     }
 
-    public void testUnboundedSolution() throws NoFeasibleSolutionException {
+    public void testUnboundedSolution() {
         LinearObjectiveFunction f = new LinearObjectiveFunction(new double[] { 15, 10 },
0);
         Collection<LinearConstraint> constraints = new ArrayList<LinearConstraint>();
         constraints.add(new LinearConstraint(new double[] { 1, 0 }, Relationship.EQ, 2));

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastCosineTransformerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastCosineTransformerTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastCosineTransformerTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastCosineTransformerTest.java
Tue Apr 14 13:13:54 2009
@@ -33,7 +33,7 @@
     /**
      * Test of transformer for the ad hoc data.
      */
-    public void testAdHocData() throws MathException {
+    public void testAdHocData() {
         FastCosineTransformer transformer = new FastCosineTransformer();
         double result[], tolerance = 1E-12;
 

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastSineTransformerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastSineTransformerTest.java?rev=764769&r1=764768&r2=764769&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastSineTransformerTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/transform/FastSineTransformerTest.java
Tue Apr 14 13:13:54 2009
@@ -33,7 +33,7 @@
     /**
      * Test of transformer for the ad hoc data.
      */
-    public void testAdHocData() throws MathException {
+    public void testAdHocData() {
         FastSineTransformer transformer = new FastSineTransformer();
         double result[], tolerance = 1E-12;
 



Mime
View raw message