commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From celes...@apache.org
Subject svn commit: r1358339 - in /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear: ArrayRealVectorTest.java RealVectorAbstractTest.java RealVectorTest.java SparseRealVectorTest.java
Date Fri, 06 Jul 2012 18:32:04 GMT
Author: celestin
Date: Fri Jul  6 18:32:03 2012
New Revision: 1358339

URL: http://svn.apache.org/viewvc?rev=1358339&view=rev
Log:
MATH-795: default implementation of RealVector RealVectorAbstractTest.createAlien(double[]).

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/RealVectorAbstractTest.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=1358339&r1=1358338&r2=1358339&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
Fri Jul  6 18:32:03 2012
@@ -36,11 +36,6 @@ public class ArrayRealVectorTest extends
         return new ArrayRealVector(data, true);
     }
 
-    @Override
-    public RealVector createAlien(final double[] data) {
-        return new RealVectorTestImpl(data);
-    }
-
     @Test
     public void testConstructors() {
         final double[] vec1 = {1d, 2d, 3d};

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java?rev=1358339&r1=1358338&r2=1358339&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
Fri Jul  6 18:32:03 2012
@@ -148,7 +148,9 @@ public abstract class RealVectorAbstract
      * @param data the entries of the vector to be created
      * @return a new {@link RealVector} of an alien type
      */
-    public abstract RealVector createAlien(double[] data);
+    public RealVector createAlien(double[] data){
+        return new RealVectorTestImpl(data);
+    }
 
     /**
      * Returns a preferred value of the entries, to be tested specifically. Some

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=1358339&r1=1358338&r2=1358339&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
Fri Jul  6 18:32:03 2012
@@ -38,11 +38,6 @@ public class RealVectorTest extends Real
         return new RealVectorTestImpl(data);
     }
 
-    @Override
-    public RealVector createAlien(double[] data) {
-        return new RealVectorTestImpl(data);
-    }
-
     @Test
     @Ignore("Abstract class RealVector does not implement append(RealVector).")
     @Override

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=1358339&r1=1358338&r2=1358339&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
Fri Jul  6 18:32:03 2012
@@ -31,11 +31,6 @@ public class SparseRealVectorTest extend
         return new OpenMapRealVector(data);
     }
 
-    @Override
-    public RealVector createAlien(double[] data) {
-        return new RealVectorTestImpl(data);
-    }
-
     @Test
     public void testConstructors() {
         final double[] vec1 = {1d, 2d, 3d};



Mime
View raw message