commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1364030 - in /commons/proper/math/trunk/src/test/java/org/apache/commons/math3: analysis/integration/ analysis/interpolation/ analysis/polynomials/ analysis/solvers/ fraction/ linear/ ode/nonstiff/ special/ stat/ stat/correlation/ stat/dat...
Date Sat, 21 Jul 2012 01:10:05 GMT
Author: erans
Date: Sat Jul 21 01:10:04 2012
New Revision: 1364030

URL: http://svn.apache.org/viewvc?rev=1364030&view=rev
Log:
MATH-829
Removed unnecessary "throws Exception" clause from method signature.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/RombergIntegratorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/SimpsonIntegratorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/TrapezoidIntegratorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/DividedDifferenceInterpolatorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/LinearInterpolatorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/NevilleInterpolatorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/SplineInterpolatorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionNewtonFormTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolver2Test.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolverTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionFormatTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionFormatTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/Array2DRowRealMatrixTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockFieldMatrixTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockRealMatrixTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/FieldMatrixImplTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseFieldMatrixTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/nonstiff/HighamHall54IntegratorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/ErfTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/StatUtilsTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/PearsonsCorrelationTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/SpearmansRankCorrelationTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/data/CertifiedDataAbstractTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatisticsTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/DescriptiveStatisticsTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/ListUnivariateImplTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MixedListUnivariateImplTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MultivariateSummaryStatisticsTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/SummaryStatisticsTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/UnivariateStatisticAbstractTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/ChiSquareTestTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/MannWhitneyUTestTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/OneWayAnovaTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TTestTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TestUtilsTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/WilcoxonSignedRankTestTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/GLSMultipleLinearRegressionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MillerUpdatingRegressionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MultipleLinearRegressionAbstractTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegressionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/RombergIntegratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/RombergIntegratorTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/RombergIntegratorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/RombergIntegratorTest.java Sat Jul 21 01:10:04 2012
@@ -96,7 +96,7 @@ public final class RombergIntegratorTest
      * Test of parameters for the integrator.
      */
     @Test
-    public void testParameters() throws Exception {
+    public void testParameters() {
         UnivariateFunction f = new SinFunction();
 
         try {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/SimpsonIntegratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/SimpsonIntegratorTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/SimpsonIntegratorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/SimpsonIntegratorTest.java Sat Jul 21 01:10:04 2012
@@ -95,7 +95,7 @@ public final class SimpsonIntegratorTest
      * Test of parameters for the integrator.
      */
     @Test
-    public void testParameters() throws Exception {
+    public void testParameters() {
         UnivariateFunction f = new SinFunction();
         try {
             // bad interval

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/TrapezoidIntegratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/TrapezoidIntegratorTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/TrapezoidIntegratorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/TrapezoidIntegratorTest.java Sat Jul 21 01:10:04 2012
@@ -96,7 +96,7 @@ public final class TrapezoidIntegratorTe
      * Test of parameters for the integrator.
      */
     @Test
-    public void testParameters() throws Exception {
+    public void testParameters() {
         UnivariateFunction f = new SinFunction();
 
         try {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/DividedDifferenceInterpolatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/DividedDifferenceInterpolatorTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/DividedDifferenceInterpolatorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/DividedDifferenceInterpolatorTest.java Sat Jul 21 01:10:04 2012
@@ -113,7 +113,7 @@ public final class DividedDifferenceInte
      * Test of parameters for the interpolator.
      */
     @Test
-    public void testParameters() throws Exception {
+    public void testParameters() {
         UnivariateInterpolator interpolator = new DividedDifferenceInterpolator();
 
         try {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/LinearInterpolatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/LinearInterpolatorTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/LinearInterpolatorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/LinearInterpolatorTest.java Sat Jul 21 01:10:04 2012
@@ -42,7 +42,7 @@ public class LinearInterpolatorTest {
 
     @Test
     public void testInterpolateLinearDegenerateTwoSegment()
-        throws Exception {
+        {
         double x[] = { 0.0, 0.5, 1.0 };
         double y[] = { 0.0, 0.5, 1.0 };
         UnivariateInterpolator i = new LinearInterpolator();
@@ -64,7 +64,7 @@ public class LinearInterpolatorTest {
 
     @Test
     public void testInterpolateLinearDegenerateThreeSegment()
-        throws Exception {
+        {
         double x[] = { 0.0, 0.5, 1.0, 1.5 };
         double y[] = { 0.0, 0.5, 1.0, 1.5 };
         UnivariateInterpolator i = new LinearInterpolator();
@@ -87,7 +87,7 @@ public class LinearInterpolatorTest {
     }
 
     @Test
-    public void testInterpolateLinear() throws Exception {
+    public void testInterpolateLinear() {
         double x[] = { 0.0, 0.5, 1.0 };
         double y[] = { 0.0, 0.5, 0.0 };
         UnivariateInterpolator i = new LinearInterpolator();
@@ -138,7 +138,7 @@ public class LinearInterpolatorTest {
      * verifies that f(x[i]) = y[i] for i = 0..n-1 where n is common length.
      */
     protected void verifyInterpolation(UnivariateFunction f, double x[], double y[])
-        throws Exception{
+       {
         for (int i = 0; i < x.length; i++) {
             Assert.assertEquals(f.value(x[i]), y[i], knotTolerance);
         }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/NevilleInterpolatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/NevilleInterpolatorTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/NevilleInterpolatorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/NevilleInterpolatorTest.java Sat Jul 21 01:10:04 2012
@@ -113,7 +113,7 @@ public final class NevilleInterpolatorTe
      * Test of parameters for the interpolator.
      */
     @Test
-    public void testParameters() throws Exception {
+    public void testParameters() {
         UnivariateInterpolator interpolator = new NevilleInterpolator();
 
         try {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/SplineInterpolatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/SplineInterpolatorTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/SplineInterpolatorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/SplineInterpolatorTest.java Sat Jul 21 01:10:04 2012
@@ -45,7 +45,7 @@ public class SplineInterpolatorTest {
 
     @Test
     public void testInterpolateLinearDegenerateTwoSegment()
-        throws Exception {
+        {
         double x[] = { 0.0, 0.5, 1.0 };
         double y[] = { 0.0, 0.5, 1.0 };
         UnivariateInterpolator i = new SplineInterpolator();
@@ -68,7 +68,7 @@ public class SplineInterpolatorTest {
 
     @Test
     public void testInterpolateLinearDegenerateThreeSegment()
-        throws Exception {
+        {
         double x[] = { 0.0, 0.5, 1.0, 1.5 };
         double y[] = { 0.0, 0.5, 1.0, 1.5 };
         UnivariateInterpolator i = new SplineInterpolator();
@@ -91,7 +91,7 @@ public class SplineInterpolatorTest {
     }
 
     @Test
-    public void testInterpolateLinear() throws Exception {
+    public void testInterpolateLinear() {
         double x[] = { 0.0, 0.5, 1.0 };
         double y[] = { 0.0, 0.5, 0.0 };
         UnivariateInterpolator i = new SplineInterpolator();
@@ -108,7 +108,7 @@ public class SplineInterpolatorTest {
     }
 
     @Test
-    public void testInterpolateSin() throws Exception {
+    public void testInterpolateSin() {
         double x[] =
             {
                 0.0,
@@ -194,7 +194,7 @@ public class SplineInterpolatorTest {
      * verifies that f(x[i]) = y[i] for i = 0..n-1 where n is common length.
      */
     protected void verifyInterpolation(UnivariateFunction f, double x[], double y[])
-        throws Exception{
+       {
         for (int i = 0; i < x.length; i++) {
             Assert.assertEquals(f.value(x[i]), y[i], knotTolerance);
         }
@@ -205,7 +205,7 @@ public class SplineInterpolatorTest {
      *    adjacent polynomials must agree through two derivatives at knot points
      */
     protected void verifyConsistency(PolynomialSplineFunction f, double x[])
-        throws Exception {
+        {
         PolynomialFunction polynomials[] = f.getPolynomials();
         for (int i = 1; i < x.length - 2; i++) {
             // evaluate polynomials and derivatives at x[i + 1]

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java Sat Jul 21 01:10:04 2012
@@ -33,7 +33,7 @@ public final class TricubicSplineInterpo
      * Test preconditions.
      */
     @Test
-    public void testPreconditions() throws Exception {
+    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};

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionLagrangeFormTest.java Sat Jul 21 01:10:04 2012
@@ -130,7 +130,7 @@ public final class PolynomialFunctionLag
      * Test of parameters for the polynomial.
      */
     @Test
-    public void testParameters() throws Exception {
+    public void testParameters() {
 
         try {
             // bad input array length

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionNewtonFormTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionNewtonFormTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionNewtonFormTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialFunctionNewtonFormTest.java Sat Jul 21 01:10:04 2012
@@ -130,7 +130,7 @@ public final class PolynomialFunctionNew
      * Test of parameters for the polynomial.
      */
     @Test
-    public void testParameters() throws Exception {
+    public void testParameters() {
 
         try {
             // bad input array length

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java Sat Jul 21 01:10:04 2012
@@ -90,7 +90,7 @@ public class PolynomialSplineFunctionTes
     }
 
     @Test
-    public void testValues() throws Exception {
+    public void testValues() {
         PolynomialSplineFunction spline =
             new PolynomialSplineFunction(knots, polynomials);
         UnivariateFunction dSpline = spline.derivative();

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolver2Test.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolver2Test.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolver2Test.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolver2Test.java Sat Jul 21 01:10:04 2012
@@ -124,7 +124,7 @@ public final class MullerSolver2Test {
      * Test of parameters for the solver.
      */
     @Test
-    public void testParameters() throws Exception {
+    public void testParameters() {
         UnivariateFunction f = new SinFunction();
         UnivariateSolver solver = new MullerSolver2();
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolverTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolverTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolverTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/solvers/MullerSolverTest.java Sat Jul 21 01:10:04 2012
@@ -126,7 +126,7 @@ public final class MullerSolverTest {
      * Test of parameters for the solver.
      */
     @Test
-    public void testParameters() throws Exception {
+    public void testParameters() {
         UnivariateFunction f = new SinFunction();
         UnivariateSolver solver = new MullerSolver();
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionFormatTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionFormatTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionFormatTest.java Sat Jul 21 01:10:04 2012
@@ -39,7 +39,7 @@ public class BigFractionFormatTest {
     }
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         properFormat = BigFractionFormat.getProperInstance(getLocale());
         improperFormat = BigFractionFormat.getImproperInstance(getLocale());
     }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/BigFractionTest.java Sat Jul 21 01:10:04 2012
@@ -42,7 +42,7 @@ public class BigFractionTest {
     }
 
     @Test
-    public void testConstructor() throws Exception {
+    public void testConstructor() {
         assertFraction(0, 1, new BigFraction(0, 1));
         assertFraction(0, 1, new BigFraction(0l, 2l));
         assertFraction(0, 1, new BigFraction(0, -1));

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionFormatTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionFormatTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionFormatTest.java Sat Jul 21 01:10:04 2012
@@ -37,7 +37,7 @@ public class FractionFormatTest {
     }
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         properFormat = FractionFormat.getProperInstance(getLocale());
         improperFormat = FractionFormat.getImproperInstance(getLocale());
     }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fraction/FractionTest.java Sat Jul 21 01:10:04 2012
@@ -36,7 +36,7 @@ public class FractionTest {
     }
 
     @Test
-    public void testConstructor() throws Exception {
+    public void testConstructor() {
         assertFraction(0, 1, new Fraction(0, 1));
         assertFraction(0, 1, new Fraction(0, 2));
         assertFraction(0, 1, new Fraction(0, -1));
@@ -215,7 +215,7 @@ public class FractionTest {
     }
 
     @Test
-    public void testConstructorDouble() throws Exception {
+    public void testConstructorDouble() {
         assertFraction(1, 2, new Fraction(0.5));
         assertFraction(1, 3, new Fraction(1.0 / 3.0));
         assertFraction(17, 100, new Fraction(17.0 / 100.0));

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/Array2DRowRealMatrixTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/Array2DRowRealMatrixTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/Array2DRowRealMatrixTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/Array2DRowRealMatrixTest.java Sat Jul 21 01:10:04 2012
@@ -894,7 +894,7 @@ public final class Array2DRowRealMatrixT
     }
 
     @Test
-    public void testSetSubMatrix() throws Exception {
+    public void testSetSubMatrix() {
         Array2DRowRealMatrix m = new Array2DRowRealMatrix(testData);
         m.setSubMatrix(detData2,1,1);
         RealMatrix expected = MatrixUtils.createRealMatrix

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockFieldMatrixTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockFieldMatrixTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockFieldMatrixTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockFieldMatrixTest.java Sat Jul 21 01:10:04 2012
@@ -1158,7 +1158,7 @@ public final class BlockFieldMatrixTest 
     }
 
     @Test
-    public void testSetSubMatrix() throws Exception {
+    public void testSetSubMatrix() {
         BlockFieldMatrix<Fraction> m = new BlockFieldMatrix<Fraction>(testData);
         m.setSubMatrix(detData2,1,1);
         FieldMatrix<Fraction> expected = new BlockFieldMatrix<Fraction>

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockRealMatrixTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockRealMatrixTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockRealMatrixTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/BlockRealMatrixTest.java Sat Jul 21 01:10:04 2012
@@ -1069,7 +1069,7 @@ public final class BlockRealMatrixTest {
     }
 
     @Test
-    public void testSetSubMatrix() throws Exception {
+    public void testSetSubMatrix() {
         BlockRealMatrix m = new BlockRealMatrix(testData);
         m.setSubMatrix(detData2,1,1);
         RealMatrix expected = new BlockRealMatrix

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/FieldMatrixImplTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/FieldMatrixImplTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/FieldMatrixImplTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/FieldMatrixImplTest.java Sat Jul 21 01:10:04 2012
@@ -878,7 +878,7 @@ public final class FieldMatrixImplTest {
     }
 
     @Test
-    public void testSetSubMatrix() throws Exception {
+    public void testSetSubMatrix() {
         Array2DRowFieldMatrix<Fraction> m = new Array2DRowFieldMatrix<Fraction>(testData);
         m.setSubMatrix(detData2,1,1);
         FieldMatrix<Fraction> expected = new Array2DRowFieldMatrix<Fraction>

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java Sat Jul 21 01:10:04 2012
@@ -189,7 +189,7 @@ public class RealVectorTest extends Real
     }
 
     @Test
-    public void testSparseIterator() throws Exception {
+    public void testSparseIterator() {
         /*
          * For non-default values, use x + 1, x + 2, etc... to make sure that
          * these values are really different from x.

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseFieldMatrixTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseFieldMatrixTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseFieldMatrixTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseFieldMatrixTest.java Sat Jul 21 01:10:04 2012
@@ -593,7 +593,7 @@ public class SparseFieldMatrixTest {
     */
 
     @Test
-    public void testSetSubMatrix() throws Exception {
+    public void testSetSubMatrix() {
         SparseFieldMatrix<Fraction> m = createSparseMatrix(testData);
         m.setSubMatrix(detData2, 1, 1);
         FieldMatrix<Fraction> expected = createSparseMatrix(new Fraction[][] {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/nonstiff/HighamHall54IntegratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/nonstiff/HighamHall54IntegratorTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/nonstiff/HighamHall54IntegratorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/nonstiff/HighamHall54IntegratorTest.java Sat Jul 21 01:10:04 2012
@@ -38,7 +38,7 @@ import org.junit.Test;
 public class HighamHall54IntegratorTest {
 
   @Test
-  public void testWrongDerivative() throws Exception {
+  public void testWrongDerivative() {
       HighamHall54Integrator integrator =
           new HighamHall54Integrator(0.0, 1.0, 1.0e-10, 1.0e-10);
       FirstOrderDifferentialEquations equations =
@@ -233,7 +233,7 @@ public class HighamHall54IntegratorTest 
   }
 
   @Test
-  public void testEventsNoConvergence() throws Exception {
+  public void testEventsNoConvergence() {
 
     final TestProblem1 pb = new TestProblem1();
     double minStep = 0;
@@ -274,7 +274,7 @@ public class HighamHall54IntegratorTest 
 }
 
   @Test
-  public void testSanityChecks() throws Exception {
+  public void testSanityChecks() {
       final TestProblem3 pb  = new TestProblem3(0.9);
       double minStep = 0;
       double maxStep = pb.getFinalTime() - pb.getInitialTime();

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/ErfTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/ErfTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/ErfTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/ErfTest.java Sat Jul 21 01:10:04 2012
@@ -95,7 +95,7 @@ public class ErfTest {
      * MATH-301, MATH-456
      */
     @Test
-    public void testLargeValues() throws Exception {
+    public void testLargeValues() {
         for (int i = 1; i < 200; i*=10) {
             double result = Erf.erf(i);
             Assert.assertFalse(Double.isNaN(result));
@@ -121,7 +121,7 @@ public class ErfTest {
      * erfl (extended precision erf).
      */
     @Test
-    public void testErfGnu() throws Exception {
+    public void testErfGnu() {
         final double tol = 1E-15;
         final double[] gnuValues = new double[] {-1, -1, -1, -1, -1, 
         -1, -1, -1, -0.99999999999999997848, 
@@ -145,7 +145,7 @@ public class ErfTest {
      * erfcl (extended precision erfc).
      */
     @Test
-    public void testErfcGnu() throws Exception {
+    public void testErfcGnu() {
         final double tol = 1E-15;
         final double[] gnuValues = new double[] { 2,  2,  2,  2,  2, 
         2,  2,  2, 1.9999999999999999785, 
@@ -170,7 +170,7 @@ public class ErfTest {
      * http//www.jstatsoft.org/v11/a05/paper
      */
     @Test
-    public void testErfcMaple() throws Exception {
+    public void testErfcMaple() {
         double[][] ref = new double[][]
                         {{0.1, 4.60172162722971e-01},
                          {1.2, 1.15069670221708e-01},
@@ -201,7 +201,7 @@ public class ErfTest {
      * obtained from Erf.erf(double) and Erf.erfc(double).
      */
     @Test
-    public void testTwoArgumentErf() throws Exception {
+    public void testTwoArgumentErf() {
         double[] xi = new double[]{-2.0, -1.0, -0.9, -0.1, 0.0, 0.1, 0.9, 1.0, 2.0};
         for(double x1 : xi) {
             for(double x2 : xi) {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/StatUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/StatUtilsTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/StatUtilsTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/StatUtilsTest.java Sat Jul 21 01:10:04 2012
@@ -58,7 +58,7 @@ public final class StatUtilsTest {
     }
 
     @Test
-    public void testN0andN1Conditions() throws Exception {
+    public void testN0andN1Conditions() {
         double[] values = new double[0];
 
         Assert.assertTrue(
@@ -79,7 +79,7 @@ public final class StatUtilsTest {
     }
 
     @Test
-    public void testArrayIndexConditions() throws Exception {
+    public void testArrayIndexConditions() {
         double[] values = { 1.0, 2.0, 3.0, 4.0 };
 
         Assert.assertEquals(
@@ -416,7 +416,7 @@ public final class StatUtilsTest {
     }
 
     @Test
-    public void testDifferenceStats() throws Exception {
+    public void testDifferenceStats() {
         double sample1[] = {1d, 2d, 3d, 4d};
         double sample2[] = {1d, 3d, 4d, 2d};
         double diff[] = {0d, -1d, -1d, 2d};
@@ -448,7 +448,7 @@ public final class StatUtilsTest {
     }
 
     @Test
-    public void testGeometricMean() throws Exception {
+    public void testGeometricMean() {
         double[] test = null;
         try {
             StatUtils.geometricMean(test);

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/PearsonsCorrelationTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/PearsonsCorrelationTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/PearsonsCorrelationTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/PearsonsCorrelationTest.java Sat Jul 21 01:10:04 2012
@@ -101,7 +101,7 @@ public class PearsonsCorrelationTest {
      * Test Longley dataset against R.
      */
     @Test
-    public void testLongly() throws Exception {
+    public void testLongly() {
         RealMatrix matrix = createRealMatrix(longleyData, 16, 7);
         PearsonsCorrelation corrInstance = new PearsonsCorrelation(matrix);
         RealMatrix correlationMatrix = corrInstance.getCorrelationMatrix();
@@ -140,7 +140,7 @@ public class PearsonsCorrelationTest {
      * Test R Swiss fertility dataset against R.
      */
     @Test
-    public void testSwissFertility() throws Exception {
+    public void testSwissFertility() {
          RealMatrix matrix = createRealMatrix(swissData, 47, 5);
          PearsonsCorrelation corrInstance = new PearsonsCorrelation(matrix);
          RealMatrix correlationMatrix = corrInstance.getCorrelationMatrix();
@@ -168,7 +168,7 @@ public class PearsonsCorrelationTest {
      * Test p-value near 0. JIRA: MATH-371
      */
     @Test
-    public void testPValueNearZero() throws Exception {
+    public void testPValueNearZero() {
         /*
          * Create a dataset that has r -> 1, p -> 0 as dimension increases.
          * Prior to the fix for MATH-371, p vanished for dimension >= 14.
@@ -225,7 +225,7 @@ public class PearsonsCorrelationTest {
      * with reported p-values
      */
     @Test
-    public void testStdErrorConsistency() throws Exception {
+    public void testStdErrorConsistency() {
         TDistribution tDistribution = new TDistribution(45);
         RealMatrix matrix = createRealMatrix(swissData, 47, 5);
         PearsonsCorrelation corrInstance = new PearsonsCorrelation(matrix);
@@ -246,7 +246,7 @@ public class PearsonsCorrelationTest {
      * direct computation from the original matrix
      */
     @Test
-    public void testCovarianceConsistency() throws Exception {
+    public void testCovarianceConsistency() {
         RealMatrix matrix = createRealMatrix(longleyData, 16, 7);
         PearsonsCorrelation corrInstance = new PearsonsCorrelation(matrix);
         Covariance covInstance = new Covariance(matrix);

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/SpearmansRankCorrelationTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/SpearmansRankCorrelationTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/SpearmansRankCorrelationTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/correlation/SpearmansRankCorrelationTest.java Sat Jul 21 01:10:04 2012
@@ -35,7 +35,7 @@ public class SpearmansRankCorrelationTes
      */
     @Override
     @Test
-    public void testLongly() throws Exception {
+    public void testLongly() {
         RealMatrix matrix = createRealMatrix(longleyData, 16, 7);
         SpearmansCorrelation corrInstance = new SpearmansCorrelation(matrix);
         RealMatrix correlationMatrix = corrInstance.getCorrelationMatrix();
@@ -56,7 +56,7 @@ public class SpearmansRankCorrelationTes
      * Test R swiss fertility dataset.
      */
     @Test
-    public void testSwiss() throws Exception {
+    public void testSwiss() {
         RealMatrix matrix = createRealMatrix(swissData, 47, 5);
         SpearmansCorrelation corrInstance = new SpearmansCorrelation(matrix);
         RealMatrix correlationMatrix = corrInstance.getCorrelationMatrix();
@@ -121,9 +121,9 @@ public class SpearmansRankCorrelationTes
     // Not relevant here
     @Override
     @Test
-    public void testStdErrorConsistency() throws Exception {}
+    public void testStdErrorConsistency() {}
     @Override
     @Test
-    public void testCovarianceConsistency() throws Exception {}
+    public void testCovarianceConsistency() {}
 
 }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/data/CertifiedDataAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/data/CertifiedDataAbstractTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/data/CertifiedDataAbstractTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/data/CertifiedDataAbstractTest.java Sat Jul 21 01:10:04 2012
@@ -102,7 +102,7 @@ public abstract class CertifiedDataAbstr
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         descriptives.clear();
         descriptives = null;
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatisticsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatisticsTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatisticsTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/AggregateSummaryStatisticsTest.java Sat Jul 21 01:10:04 2012
@@ -80,7 +80,7 @@ public class AggregateSummaryStatisticsT
      *     the full dataset
      */
     @Test
-    public void testAggregationConsistency() throws Exception {
+    public void testAggregationConsistency() {
 
         // Generate a random sample and random partition
         double[] totalSample = generateSample();
@@ -131,7 +131,7 @@ public class AggregateSummaryStatisticsT
      * @throws Exception
      */
     @Test
-    public void testAggregate() throws Exception {
+    public void testAggregate() {
 
         // Generate a random sample and random partition
         double[] totalSample = generateSample();
@@ -164,7 +164,7 @@ public class AggregateSummaryStatisticsT
 
 
     @Test
-    public void testAggregateDegenerate() throws Exception {
+    public void testAggregateDegenerate() {
         double[] totalSample = {1, 2, 3, 4, 5};
         double[][] subSamples = {{1}, {2}, {3}, {4}, {5}};
 
@@ -193,7 +193,7 @@ public class AggregateSummaryStatisticsT
     }
 
     @Test
-    public void testAggregateSpecialValues() throws Exception {
+    public void testAggregateSpecialValues() {
         double[] totalSample = {Double.POSITIVE_INFINITY, 2, 3, Double.NaN, 5};
         double[][] subSamples = {{Double.POSITIVE_INFINITY, 2}, {3}, {Double.NaN}, {5}};
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/DescriptiveStatisticsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/DescriptiveStatisticsTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/DescriptiveStatisticsTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/DescriptiveStatisticsTest.java Sat Jul 21 01:10:04 2012
@@ -164,7 +164,7 @@ public class DescriptiveStatisticsTest {
     }
 
     @Test
-    public void testPercentileSetter() throws Exception {
+    public void testPercentileSetter() {
         DescriptiveStatistics stats = createDescriptiveStatistics();
         stats.addValue(1);
         stats.addValue(2);

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/ListUnivariateImplTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/ListUnivariateImplTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/ListUnivariateImplTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/ListUnivariateImplTest.java Sat Jul 21 01:10:04 2012
@@ -72,7 +72,7 @@ public final class ListUnivariateImplTes
     }
 
     @Test
-    public void testN0andN1Conditions() throws Exception {
+    public void testN0andN1Conditions() {
         List<Object> list = new ArrayList<Object>();
 
         DescriptiveStatistics u = new ListUnivariateImpl( list );
@@ -105,7 +105,7 @@ public final class ListUnivariateImplTes
     }
 
     @Test
-    public void testProductAndGeometricMean() throws Exception {
+    public void testProductAndGeometricMean() {
         ListUnivariateImpl u = new ListUnivariateImpl(new ArrayList<Object>());
         u.setWindowSize(10);
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MixedListUnivariateImplTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MixedListUnivariateImplTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MixedListUnivariateImplTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MixedListUnivariateImplTest.java Sat Jul 21 01:10:04 2012
@@ -84,7 +84,7 @@ public final class MixedListUnivariateIm
     }
 
     @Test
-    public void testN0andN1Conditions() throws Exception {
+    public void testN0andN1Conditions() {
         DescriptiveStatistics u = new ListUnivariateImpl(new ArrayList<Object>(),transformers);
 
         Assert.assertTrue(
@@ -148,7 +148,7 @@ public final class MixedListUnivariateIm
     }
 
     @Test
-    public void testProductAndGeometricMean() throws Exception {
+    public void testProductAndGeometricMean() {
         ListUnivariateImpl u = new ListUnivariateImpl(new ArrayList<Object>(),transformers);
         u.setWindowSize(10);
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MultivariateSummaryStatisticsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MultivariateSummaryStatisticsTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MultivariateSummaryStatisticsTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/MultivariateSummaryStatisticsTest.java Sat Jul 21 01:10:04 2012
@@ -40,7 +40,7 @@ public class MultivariateSummaryStatisti
     }
 
     @Test
-    public void testSetterInjection() throws Exception {
+    public void testSetterInjection() {
         MultivariateSummaryStatistics u = createMultivariateSummaryStatistics(2, true);
         u.setMeanImpl(new StorelessUnivariateStatistic[] {
                         new sumMean(), new sumMean()
@@ -66,7 +66,7 @@ public class MultivariateSummaryStatisti
     }
 
     @Test
-    public void testSetterIllegalState() throws Exception {
+    public void testSetterIllegalState() {
         MultivariateSummaryStatistics u = createMultivariateSummaryStatistics(2, true);
         u.addValue(new double[] { 1, 2 });
         u.addValue(new double[] { 3, 4 });
@@ -216,7 +216,7 @@ public class MultivariateSummaryStatisti
     }
 
     @Test
-    public void testN0andN1Conditions() throws Exception {
+    public void testN0andN1Conditions() {
         MultivariateSummaryStatistics u = createMultivariateSummaryStatistics(1, true);
         Assert.assertTrue(Double.isNaN(u.getMean()[0]));
         Assert.assertTrue(Double.isNaN(u.getStandardDeviation()[0]));

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatisticAbstractTest.java Sat Jul 21 01:10:04 2012
@@ -44,7 +44,7 @@ public abstract class StorelessUnivariat
      *  Verifies that increment() and incrementAll work properly.
      */
     @Test
-    public void testIncrementation() throws Exception {
+    public void testIncrementation() {
 
         StorelessUnivariateStatistic statistic =
             (StorelessUnivariateStatistic) getUnivariateStatistic();
@@ -77,7 +77,7 @@ public abstract class StorelessUnivariat
     }
     
     @Test
-    public void testSerialization() throws Exception {
+    public void testSerialization() {
 
         StorelessUnivariateStatistic statistic =
             (StorelessUnivariateStatistic) getUnivariateStatistic();

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/SummaryStatisticsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/SummaryStatisticsTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/SummaryStatisticsTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/SummaryStatisticsTest.java Sat Jul 21 01:10:04 2012
@@ -76,7 +76,7 @@ public class SummaryStatisticsTest {
     }
 
     @Test
-    public void testN0andN1Conditions() throws Exception {
+    public void testN0andN1Conditions() {
         SummaryStatistics u = createSummaryStatistics();
         Assert.assertTrue("Mean of n = 0 set should be NaN",
                 Double.isNaN( u.getMean() ) );
@@ -106,7 +106,7 @@ public class SummaryStatisticsTest {
     }
 
     @Test
-    public void testProductAndGeometricMean() throws Exception {
+    public void testProductAndGeometricMean() {
         SummaryStatistics u = createSummaryStatistics();
         u.addValue( 1.0 );
         u.addValue( 2.0 );
@@ -229,7 +229,7 @@ public class SummaryStatisticsTest {
     }
 
     @Test
-    public void testCopy() throws Exception {
+    public void testCopy() {
         SummaryStatistics u = createSummaryStatistics();
         u.addValue(2d);
         u.addValue(1d);
@@ -270,7 +270,7 @@ public class SummaryStatisticsTest {
     }
 
     @Test
-    public void testSetterInjection() throws Exception {
+    public void testSetterInjection() {
         SummaryStatistics u = createSummaryStatistics();
         u.setMeanImpl(new Sum());
         u.setSumLogImpl(new Sum());
@@ -288,7 +288,7 @@ public class SummaryStatisticsTest {
     }
 
     @Test
-    public void testSetterIllegalState() throws Exception {
+    public void testSetterIllegalState() {
         SummaryStatistics u = createSummaryStatistics();
         u.addValue(1);
         u.addValue(3);
@@ -305,7 +305,7 @@ public class SummaryStatisticsTest {
      * JIRA: MATH-691
      */
     @Test
-    public void testOverrideVarianceWithMathClass() throws Exception {
+    public void testOverrideVarianceWithMathClass() {
         double[] scores = {1, 2, 3, 4};
         SummaryStatistics stats = new SummaryStatistics();
         stats.setVarianceImpl(new Variance(false)); //use "population variance"
@@ -316,7 +316,7 @@ public class SummaryStatisticsTest {
     }
     
     @Test
-    public void testOverrideMeanWithMathClass() throws Exception {
+    public void testOverrideMeanWithMathClass() {
         double[] scores = {1, 2, 3, 4};
         SummaryStatistics stats = new SummaryStatistics();
         stats.setMeanImpl(new Mean()); 
@@ -327,7 +327,7 @@ public class SummaryStatisticsTest {
     }
     
     @Test
-    public void testOverrideGeoMeanWithMathClass() throws Exception {
+    public void testOverrideGeoMeanWithMathClass() {
         double[] scores = {1, 2, 3, 4};
         SummaryStatistics stats = new SummaryStatistics();
         stats.setGeoMeanImpl(new GeometricMean()); 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/UnivariateStatisticAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/UnivariateStatisticAbstractTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/UnivariateStatisticAbstractTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/UnivariateStatisticAbstractTest.java Sat Jul 21 01:10:04 2012
@@ -93,7 +93,7 @@ public abstract class UnivariateStatisti
     }
 
     @Test
-    public void testEvaluation() throws Exception {
+    public void testEvaluation() {
         Assert.assertEquals(
             expectedValue(),
             getUnivariateStatistic().evaluate(testArray),
@@ -144,7 +144,7 @@ public abstract class UnivariateStatisti
     }
 
     @Test
-    public void testCopy() throws Exception {
+    public void testCopy() {
         UnivariateStatistic original = getUnivariateStatistic();
         UnivariateStatistic copy = original.copy();
         Assert.assertEquals(
@@ -163,7 +163,7 @@ public abstract class UnivariateStatisti
      */
 
     @Test
-    public void testWeightedConsistency() throws Exception {
+    public void testWeightedConsistency() {
 
         // See if this statistic computes weighted statistics
         // If not, skip this test

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/ChiSquareTestTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/ChiSquareTestTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/ChiSquareTestTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/ChiSquareTestTest.java Sat Jul 21 01:10:04 2012
@@ -36,7 +36,7 @@ public class ChiSquareTestTest {
     protected ChiSquareTest testStatistic = new ChiSquareTest();
 
     @Test
-    public void testChiSquare() throws Exception {
+    public void testChiSquare() {
 
         // Target values computed using R version 1.8.1
         // Some assembly required ;-)
@@ -103,7 +103,7 @@ public class ChiSquareTestTest {
     }
 
     @Test
-    public void testChiSquareIndependence() throws Exception {
+    public void testChiSquareIndependence() {
 
         // Target values computed using R version 1.8.1
 
@@ -162,7 +162,7 @@ public class ChiSquareTestTest {
     }
 
     @Test
-    public void testChiSquareLargeTestStatistic() throws Exception {
+    public void testChiSquareLargeTestStatistic() {
         double[] exp = new double[] {
             3389119.5, 649136.6, 285745.4, 25357364.76, 11291189.78, 543628.0,
             232921.0, 437665.75
@@ -181,7 +181,7 @@ public class ChiSquareTestTest {
 
     /** Contingency table containing zeros - PR # 32531 */
     @Test
-    public void testChiSquareZeroCount() throws Exception {
+    public void testChiSquareZeroCount() {
         // Target values computed using R version 1.8.1
         long[][] counts = { {40, 0, 4}, {91, 1, 2}, {60, 2, 0}};
         Assert.assertEquals( "chi-square test statistic", 9.67444662263,
@@ -193,7 +193,7 @@ public class ChiSquareTestTest {
     /** Target values verified using DATAPLOT version 2006.3 */
     @Test
     public void testChiSquareDataSetsComparisonEqualCounts()
-        throws Exception {
+        {
         long[] observed1 = {10, 12, 12, 10};
         long[] observed2 = {5, 15, 14, 10};
         Assert.assertEquals("chi-square p value", 0.541096,
@@ -210,7 +210,7 @@ public class ChiSquareTestTest {
     /** Target values verified using DATAPLOT version 2006.3 */
     @Test
     public void testChiSquareDataSetsComparisonUnEqualCounts()
-        throws Exception {
+        {
         long[] observed1 = {10, 12, 12, 10, 15};
         long[] observed2 = {15, 10, 10, 15, 5};
         Assert.assertEquals("chi-square p value", 0.124115,
@@ -229,7 +229,7 @@ public class ChiSquareTestTest {
 
     @Test
     public void testChiSquareDataSetsComparisonBadCounts()
-        throws Exception {
+        {
         long[] observed1 = {10, -1, 12, 10, 15};
         long[] observed2 = {15, 10, 10, 15, 5};
         try {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/MannWhitneyUTestTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/MannWhitneyUTestTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/MannWhitneyUTestTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/MannWhitneyUTestTest.java Sat Jul 21 01:10:04 2012
@@ -33,7 +33,7 @@ public class MannWhitneyUTestTest {
     protected MannWhitneyUTest testStatistic = new MannWhitneyUTest();
 
     @Test
-    public void testMannWhitneyUSimple() throws Exception {
+    public void testMannWhitneyUSimple() {
         /* Target values computed using R version 2.11.1
          * x <- c(19, 22, 16, 29, 24)
          * y <- c(20, 11, 17, 12)
@@ -49,7 +49,7 @@ public class MannWhitneyUTestTest {
 
 
     @Test
-    public void testMannWhitneyUInputValidation() throws Exception {
+    public void testMannWhitneyUInputValidation() {
         /* Samples must be present, i.e. length > 0
          */
         try {
@@ -102,7 +102,7 @@ public class MannWhitneyUTestTest {
     }
     
     @Test
-    public void testBigDataSet() throws Exception {
+    public void testBigDataSet() {
         double[] d1 = new double[1500];
         double[] d2 = new double[1500];
         for (int i = 0; i < 1500; i++) {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/OneWayAnovaTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/OneWayAnovaTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/OneWayAnovaTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/OneWayAnovaTest.java Sat Jul 21 01:10:04 2012
@@ -44,7 +44,7 @@ public class OneWayAnovaTest {
             {110.0, 115.0, 111.0, 117.0, 128.0, 117.0 };
 
     @Test
-    public void testAnovaFValue() throws Exception {
+    public void testAnovaFValue() {
         // Target comparison values computed using R version 2.6.0 (Linux version)
         List<double[]> threeClasses = new ArrayList<double[]>();
         threeClasses.add(classA);
@@ -83,7 +83,7 @@ public class OneWayAnovaTest {
 
 
     @Test
-    public void testAnovaPValue() throws Exception {
+    public void testAnovaPValue() {
         // Target comparison values computed using R version 2.6.0 (Linux version)
         List<double[]> threeClasses = new ArrayList<double[]>();
         threeClasses.add(classA);
@@ -103,7 +103,7 @@ public class OneWayAnovaTest {
     }
 
     @Test
-    public void testAnovaTest() throws Exception {
+    public void testAnovaTest() {
         // Target comparison values computed using R version 2.3.1 (Linux version)
         List<double[]> threeClasses = new ArrayList<double[]>();
         threeClasses.add(classA);

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TTestTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TTestTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TTestTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TTestTest.java Sat Jul 21 01:10:04 2012
@@ -46,7 +46,7 @@ public class TTestTest {
     }
 
     @Test
-    public void testOneSampleT() throws Exception {
+    public void testOneSampleT() {
         double[] observed =
             {93.0, 103.0, 95.0, 101.0, 91.0, 105.0, 96.0, 94.0, 101.0,  88.0, 98.0, 94.0, 101.0, 92.0, 95.0 };
         double mu = 100.0;
@@ -122,7 +122,7 @@ public class TTestTest {
     }
 
     @Test
-    public void testOneSampleTTest() throws Exception {
+    public void testOneSampleTTest() {
         double[] oneSidedP =
             {2d, 0d, 6d, 6d, 3d, 3d, 2d, 3d, -6d, 6d, 6d, 6d, 3d, 0d, 1d, 1d, 0d, 2d, 3d, 3d };
         SummaryStatistics oneSidedPStats = new SummaryStatistics();
@@ -160,7 +160,7 @@ public class TTestTest {
     }
 
     @Test
-    public void testTwoSampleTHeterscedastic() throws Exception {
+    public void testTwoSampleTHeterscedastic() {
         double[] sample1 = { 7d, -4d, 18d, 17d, -3d, -5d, 1d, 10d, 11d, -2d };
         double[] sample2 = { -1d, 12d, -1d, -3d, 3d, -5d, 5d, 2d, -11d, -1d, -3d };
         SummaryStatistics sampleStats1 = new SummaryStatistics();
@@ -247,7 +247,7 @@ public class TTestTest {
         }
     }
     @Test
-    public void testTwoSampleTHomoscedastic() throws Exception {
+    public void testTwoSampleTHomoscedastic() {
         double[] sample1 ={2, 4, 6, 8, 10, 97};
         double[] sample2 = {4, 6, 8, 10, 16};
         SummaryStatistics sampleStats1 = new SummaryStatistics();
@@ -271,7 +271,7 @@ public class TTestTest {
     }
 
     @Test
-    public void testSmallSamples() throws Exception {
+    public void testSmallSamples() {
         double[] sample1 = {1d, 3d};
         double[] sample2 = {4d, 5d};
 
@@ -283,7 +283,7 @@ public class TTestTest {
     }
 
     @Test
-    public void testPaired() throws Exception {
+    public void testPaired() {
         double[] sample1 = {1d, 3d, 5d, 7d};
         double[] sample2 = {0d, 6d, 11d, 2d};
         double[] sample3 = {5d, 7d, 8d, 10d};

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TestUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TestUtilsTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TestUtilsTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/TestUtilsTest.java Sat Jul 21 01:10:04 2012
@@ -38,7 +38,7 @@ import org.junit.Test;
 public class TestUtilsTest {
 
     @Test
-    public void testChiSquare() throws Exception {
+    public void testChiSquare() {
 
         // Target values computed using R version 1.8.1
         // Some assembly required ;-)
@@ -105,7 +105,7 @@ public class TestUtilsTest {
     }
 
     @Test
-    public void testChiSquareIndependence() throws Exception {
+    public void testChiSquareIndependence() {
 
         // Target values computed using R version 1.8.1
 
@@ -164,7 +164,7 @@ public class TestUtilsTest {
     }
 
     @Test
-    public void testChiSquareLargeTestStatistic() throws Exception {
+    public void testChiSquareLargeTestStatistic() {
         double[] exp = new double[] {
                 3389119.5, 649136.6, 285745.4, 25357364.76, 11291189.78, 543628.0,
                 232921.0, 437665.75
@@ -183,7 +183,7 @@ public class TestUtilsTest {
 
     /** Contingency table containing zeros - PR # 32531 */
     @Test
-    public void testChiSquareZeroCount() throws Exception {
+    public void testChiSquareZeroCount() {
         // Target values computed using R version 1.8.1
         long[][] counts = { {40, 0, 4}, {91, 1, 2}, {60, 2, 0}};
         Assert.assertEquals( "chi-square test statistic", 9.67444662263,
@@ -197,7 +197,7 @@ public class TestUtilsTest {
     private SummaryStatistics emptyStats = new SummaryStatistics();
 
     @Test
-    public void testOneSampleT() throws Exception {
+    public void testOneSampleT() {
         double[] observed =
             {93.0, 103.0, 95.0, 101.0, 91.0, 105.0, 96.0, 94.0, 101.0,  88.0, 98.0, 94.0, 101.0, 92.0, 95.0 };
         double mu = 100.0;
@@ -273,7 +273,7 @@ public class TestUtilsTest {
     }
 
     @Test
-    public void testOneSampleTTest() throws Exception {
+    public void testOneSampleTTest() {
         double[] oneSidedP =
             {2d, 0d, 6d, 6d, 3d, 3d, 2d, 3d, -6d, 6d, 6d, 6d, 3d, 0d, 1d, 1d, 0d, 2d, 3d, 3d };
         SummaryStatistics oneSidedPStats = new SummaryStatistics();
@@ -311,7 +311,7 @@ public class TestUtilsTest {
     }
 
     @Test
-    public void testTwoSampleTHeterscedastic() throws Exception {
+    public void testTwoSampleTHeterscedastic() {
         double[] sample1 = { 7d, -4d, 18d, 17d, -3d, -5d, 1d, 10d, 11d, -2d };
         double[] sample2 = { -1d, 12d, -1d, -3d, 3d, -5d, 5d, 2d, -11d, -1d, -3d };
         SummaryStatistics sampleStats1 = new SummaryStatistics();
@@ -398,7 +398,7 @@ public class TestUtilsTest {
         }
     }
     @Test
-    public void testTwoSampleTHomoscedastic() throws Exception {
+    public void testTwoSampleTHomoscedastic() {
         double[] sample1 ={2, 4, 6, 8, 10, 97};
         double[] sample2 = {4, 6, 8, 10, 16};
         SummaryStatistics sampleStats1 = new SummaryStatistics();
@@ -422,7 +422,7 @@ public class TestUtilsTest {
     }
 
     @Test
-    public void testSmallSamples() throws Exception {
+    public void testSmallSamples() {
         double[] sample1 = {1d, 3d};
         double[] sample2 = {4d, 5d};
 
@@ -434,7 +434,7 @@ public class TestUtilsTest {
     }
 
     @Test
-    public void testPaired() throws Exception {
+    public void testPaired() {
         double[] sample1 = {1d, 3d, 5d, 7d};
         double[] sample2 = {0d, 6d, 11d, 2d};
         double[] sample3 = {5d, 7d, 8d, 10d};
@@ -458,7 +458,7 @@ public class TestUtilsTest {
     private OneWayAnova oneWayAnova = new OneWayAnova();
 
     @Test
-    public void testOneWayAnovaUtils() throws Exception {
+    public void testOneWayAnovaUtils() {
         classes.add(classA);
         classes.add(classB);
         classes.add(classC);

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/WilcoxonSignedRankTestTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/WilcoxonSignedRankTestTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/WilcoxonSignedRankTestTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/inference/WilcoxonSignedRankTestTest.java Sat Jul 21 01:10:04 2012
@@ -35,7 +35,7 @@ public class WilcoxonSignedRankTestTest 
     protected WilcoxonSignedRankTest testStatistic = new WilcoxonSignedRankTest();
 
     @Test
-    public void testWilcoxonSignedRankSimple() throws Exception {
+    public void testWilcoxonSignedRankSimple() {
         /* Target values computed using R version 2.11.1
          * x <- c(1.83, 0.50, 1.62, 2.48, 1.68, 1.88, 1.55, 3.06, 1.30)
          * y <- c(0.878, 0.647, 0.598, 2.05, 1.06, 1.29, 1.06, 3.14, 1.29)
@@ -65,7 +65,7 @@ public class WilcoxonSignedRankTestTest 
     }
     
     @Test
-    public void testWilcoxonSignedRankInputValidation() throws Exception {
+    public void testWilcoxonSignedRankInputValidation() {
         /*
          * Exact only for sample size <= 30
          */

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/GLSMultipleLinearRegressionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/GLSMultipleLinearRegressionTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/GLSMultipleLinearRegressionTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/GLSMultipleLinearRegressionTest.java Sat Jul 21 01:10:04 2012
@@ -167,7 +167,7 @@ public class GLSMultipleLinearRegression
      * Verifies that setting X, Y and covariance separately has the same effect as newSample(X,Y,cov).
      */
     @Test
-    public void testNewSample2() throws Exception {
+    public void testNewSample2() {
         double[] y = new double[] {1, 2, 3, 4}; 
         double[][] x = new double[][] {
           {19, 22, 33},
@@ -193,7 +193,7 @@ public class GLSMultipleLinearRegression
      * as OLS.
      */
     @Test
-    public void testGLSOLSConsistency() throws Exception {      
+    public void testGLSOLSConsistency() {      
         RealMatrix identityCov = MatrixUtils.createRealIdentityMatrix(16);
         GLSMultipleLinearRegression glsModel = new GLSMultipleLinearRegression();
         OLSMultipleLinearRegression olsModel = new OLSMultipleLinearRegression();
@@ -215,7 +215,7 @@ public class GLSMultipleLinearRegression
      * on average, perform better than OLS.
      */
     @Test
-    public void testGLSEfficiency() throws Exception {
+    public void testGLSEfficiency() {
         RandomGenerator rg = new JDKRandomGenerator();
         rg.setSeed(200);  // Seed has been selected to generate non-trivial covariance
         

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MillerUpdatingRegressionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MillerUpdatingRegressionTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MillerUpdatingRegressionTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MillerUpdatingRegressionTest.java Sat Jul 21 01:10:04 2012
@@ -625,7 +625,7 @@ public class MillerUpdatingRegressionTes
      * http://www.itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Longley.dat
      */
     @Test
-    public void testLongly() throws Exception {
+    public void testLongly() {
         // Y values are first, then independent vars
         // Each row is one observation
         double[] design = new double[]{

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MultipleLinearRegressionAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MultipleLinearRegressionAbstractTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MultipleLinearRegressionAbstractTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/MultipleLinearRegressionAbstractTest.java Sat Jul 21 01:10:04 2012
@@ -70,7 +70,7 @@ public abstract class MultipleLinearRegr
      * in design matrix.  Confirms the fix for MATH-411.
      */
     @Test
-    public void testNewSample() throws Exception {
+    public void testNewSample() {
         double[] design = new double[] {
           1, 19, 22, 33,
           2, 20, 30, 40,
@@ -105,19 +105,19 @@ public abstract class MultipleLinearRegr
     }
     
     @Test(expected=IllegalArgumentException.class)
-    public void testNewSampleNullData() throws Exception {
+    public void testNewSampleNullData() {
         double[] data = null;
         createRegression().newSampleData(data, 2, 3); 
     }
     
     @Test(expected=IllegalArgumentException.class)
-    public void testNewSampleInvalidData() throws Exception {
+    public void testNewSampleInvalidData() {
         double[] data = new double[] {1, 2, 3, 4};
         createRegression().newSampleData(data, 2, 3);
     }
     
     @Test(expected=IllegalArgumentException.class)
-    public void testNewSampleInsufficientData() throws Exception {
+    public void testNewSampleInsufficientData() {
         double[] data = new double[] {1, 2, 3, 4};
         createRegression().newSampleData(data, 1, 3);
     }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegressionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegressionTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegressionTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegressionTest.java Sat Jul 21 01:10:04 2012
@@ -73,7 +73,7 @@ public class OLSMultipleLinearRegression
     }
 
     @Test
-    public void testPerfectFit() throws Exception {
+    public void testPerfectFit() {
         double[] betaHat = regression.estimateRegressionParameters();
         TestUtils.assertEquals(betaHat,
                                new double[]{ 11.0, 1.0 / 2.0, 2.0 / 3.0, 3.0 / 4.0, 4.0 / 5.0, 5.0 / 6.0 },
@@ -113,7 +113,7 @@ public class OLSMultipleLinearRegression
      * http://www.itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Longley.dat
      */
     @Test
-    public void testLongly() throws Exception {
+    public void testLongly() {
         // Y values are first, then independent vars
         // Each row is one observation
         double[] design = new double[] {
@@ -220,7 +220,7 @@ public class OLSMultipleLinearRegression
      * Data Source: R datasets package
      */
     @Test
-    public void testSwissFertility() throws Exception {
+    public void testSwissFertility() {
         double[] design = new double[] {
             80.2,17.0,15,12,9.96,
             83.1,45.1,6,9,84.84,
@@ -374,7 +374,7 @@ public class OLSMultipleLinearRegression
      * @throws Exception
      */
     @Test
-    public void testHat() throws Exception {
+    public void testHat() {
 
         /*
          * This example is from "The Hat Matrix in Regression and ANOVA",
@@ -455,7 +455,7 @@ public class OLSMultipleLinearRegression
      * Verifies that calculateYVariance and calculateResidualVariance return consistent
      * values with direct variance computation from Y, residuals, respectively.
      */
-    protected void checkVarianceConsistency(OLSMultipleLinearRegression model) throws Exception {
+    protected void checkVarianceConsistency(OLSMultipleLinearRegression model) {
         // Check Y variance consistency
         TestUtils.assertEquals(StatUtils.variance(model.getY().toArray()), model.calculateYVariance(), 0);
         
@@ -472,7 +472,7 @@ public class OLSMultipleLinearRegression
      * Verifies that setting X and Y separately has the same effect as newSample(X,Y).
      */
     @Test
-    public void testNewSample2() throws Exception {
+    public void testNewSample2() {
         double[] y = new double[] {1, 2, 3, 4}; 
         double[][] x = new double[][] {
           {19, 22, 33},
@@ -515,7 +515,7 @@ public class OLSMultipleLinearRegression
      * http://www.itl.nist.gov/div898/strd/lls/data/Wampler1.shtml
      */
     @Test
-    public void testWampler1() throws Exception {
+    public void testWampler1() {
         double[] data = new double[]{
             1, 0,
             6, 1,
@@ -583,7 +583,7 @@ public class OLSMultipleLinearRegression
      * http://www.itl.nist.gov/div898/strd/lls/data/Wampler2.shtml
      */
     @Test
-    public void testWampler2() throws Exception {
+    public void testWampler2() {
         double[] data = new double[]{
             1.00000, 0,
             1.11111, 1,
@@ -651,7 +651,7 @@ public class OLSMultipleLinearRegression
      * http://www.itl.nist.gov/div898/strd/lls/data/Wampler3.shtml
      */
     @Test
-    public void testWampler3() throws Exception {
+    public void testWampler3() {
         double[] data = new double[]{
             760, 0,
             -2042, 1,
@@ -720,7 +720,7 @@ public class OLSMultipleLinearRegression
      * http://www.itl.nist.gov/div898/strd/lls/data/Wampler4.shtml
      */
     @Test
-    public void testWampler4() throws Exception {
+    public void testWampler4() {
         double[] data = new double[]{
             75901, 0,
             -204794, 1,

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java?rev=1364030&r1=1364029&r2=1364030&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java Sat Jul 21 01:10:04 2012
@@ -314,7 +314,7 @@ public final class SimpleRegressionTest 
     }
 
     @Test
-    public void testInference() throws Exception {
+    public void testInference() {
         //----------  verified against R, version 1.8.1 -----
         // infData
         SimpleRegression regression = new SimpleRegression();
@@ -354,7 +354,7 @@ public final class SimpleRegressionTest 
     }
 
     @Test
-    public void testPerfect() throws Exception {
+    public void testPerfect() {
         SimpleRegression regression = new SimpleRegression();
         int n = 100;
         for (int i = 0; i < n; i++) {
@@ -366,7 +366,7 @@ public final class SimpleRegressionTest 
     }
 
     @Test
-    public void testPerfectNegative() throws Exception {
+    public void testPerfectNegative() {
         SimpleRegression regression = new SimpleRegression();
         int n = 100;
         for (int i = 0; i < n; i++) {
@@ -378,7 +378,7 @@ public final class SimpleRegressionTest 
     }
 
     @Test
-    public void testRandom() throws Exception {
+    public void testRandom() {
         SimpleRegression regression = new SimpleRegression();
         Random random = new Random(1);
         int n = 100;
@@ -405,7 +405,7 @@ public final class SimpleRegressionTest 
 
     // Test remove X,Y (single observation)
     @Test
-    public void testRemoveXY() throws Exception {
+    public void testRemoveXY() {
         // Create regression with inference data then remove to test
         SimpleRegression regression = new SimpleRegression();
         regression.addData(infData);
@@ -425,7 +425,7 @@ public final class SimpleRegressionTest 
 
     // Test remove single observation in array
     @Test
-    public void testRemoveSingle() throws Exception {
+    public void testRemoveSingle() {
         // Create regression with inference data then remove to test
         SimpleRegression regression = new SimpleRegression();
         regression.addData(infData);
@@ -444,7 +444,7 @@ public final class SimpleRegressionTest 
 
     // Test remove multiple observations
     @Test
-    public void testRemoveMultiple() throws Exception {
+    public void testRemoveMultiple() {
         // Create regression with inference data then remove to test
         SimpleRegression regression = new SimpleRegression();
         regression.addData(infData);



Mime
View raw message