Author: celestin Date: Wed Jun 6 03:23:39 2012 New Revision: 1346725 URL: http://svn.apache.org/viewvc?rev=1346725&view=rev Log: MATH-795: removed unused imports.
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.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/SparseRealVectorTest.java Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java?rev=1346725&r1=1346724&r2=1346725&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java (original) +++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java Wed Jun 6 03:23:39 2012 @@ -18,14 +18,9 @@ package org.apache.commons.math3.linear; import java.io.Serializable; import java.util.Iterator; -import java.util.Random; -import org.apache.commons.math3.TestUtils; import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathArithmeticException; import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.util.FastMath; import org.junit.Assert; import org.junit.Test; @@ -359,6 +354,16 @@ public class ArrayRealVectorTest extends } } + @Override + public RealVector create(final double[] data) { + return new ArrayRealVector(data, true); + } + + @Override + public RealVector createAlien(double[] data) { + return new RealVectorTestImpl(data); + } + @Test public void testConstructors() { @@ -505,14 +510,4 @@ public class ArrayRealVectorTest extends Assert.assertEquals(0, new ArrayRealVector(new double[0], true).getDimension()); Assert.assertEquals(0, new ArrayRealVector(new double[0], false).getDimension()); } - - @Override - public RealVector create(final double[] data) { - return new ArrayRealVector(data, true); - } - - @Override - public RealVector createAlien(double[] data) { - return new RealVectorTestImpl(data); - } } 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=1346725&r1=1346724&r2=1346725&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 Wed Jun 6 03:23:39 2012 @@ -176,6 +176,16 @@ public class RealVectorTest extends Real } @Override + public RealVector create(final double[] data) { + return new TestVectorImpl(data); + } + + @Override + public RealVector createAlien(double[] data) { + return new TestVectorImpl(data); + } + + @Override public void testBasicFunctions() { /* * TODO this test is huge, and some of the methods being tested are not @@ -295,16 +305,6 @@ public class RealVectorTest extends Real } @Override - public RealVector create(final double[] data) { - return new TestVectorImpl(data); - } - - @Override - public RealVector createAlien(double[] data) { - return new TestVectorImpl(data); - } - - @Override public void testDataInOut() { /* * TODO Some of the tests carried out in testDataInOut() do not pass, Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseRealVectorTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseRealVectorTest.java?rev=1346725&r1=1346724&r2=1346725&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseRealVectorTest.java (original) +++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseRealVectorTest.java Wed Jun 6 03:23:39 2012 @@ -18,13 +18,10 @@ package org.apache.commons.math3.linear; import java.io.Serializable; import java.util.Iterator; -import org.junit.Assert; -import org.junit.Test; -import org.apache.commons.math3.TestUtils; import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.junit.Assert; +import org.junit.Test; /** * Test cases for the {@link OpenMapRealVector} class. @@ -250,6 +247,16 @@ public class SparseRealVectorTest extend } + @Override + public RealVector create(double[] data) { + return new OpenMapRealVector(data); + } + + @Override + public RealVector createAlien(double[] data) { + return new SparseRealVectorTestImpl(data); + } + @Test public void testConstructors() { @@ -314,14 +321,4 @@ public class SparseRealVectorTest extend u.ebeMultiply(v1); u.ebeDivide(v1); } - - @Override - public RealVector create(double[] data) { - return new OpenMapRealVector(data); - } - - @Override - public RealVector createAlien(double[] data) { - return new SparseRealVectorTestImpl(data); - } }