commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From celes...@apache.org
Subject svn commit: r1358349 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
Date Fri, 06 Jul 2012 19:02:16 GMT
Author: celestin
Date: Fri Jul  6 19:02:16 2012
New Revision: 1358349

URL: http://svn.apache.org/viewvc?rev=1358349&view=rev
Log:
MATH-795: in RealVectorTest, removed unecessary re-implementation of testAddToEntry.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java

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=1358349&r1=1358348&r2=1358349&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 19:02:16 2012
@@ -18,9 +18,7 @@
 package org.apache.commons.math3.linear;
 
 import java.util.Iterator;
-import java.util.Random;
 
-import org.apache.commons.math3.exception.DimensionMismatchException;
 import org.apache.commons.math3.linear.RealVector.Entry;
 import org.junit.Assert;
 import org.junit.Ignore;
@@ -219,20 +217,6 @@ public class RealVectorTest extends Real
         }
     }
 
-    @Override
-    @Test
-    public void testAddToEntry() {
-        final double[] v = new double[] { 1, 2, 3 };
-        final RealVector x = new RealVectorTestImpl(v.clone());
-        final double inc = 7;
-        for (int i = 0; i < x.getDimension(); i++) {
-            x.addToEntry(i, inc);
-        }
-        for (int i = 0; i < x.getDimension(); i++) {
-            Assert.assertEquals(v[i] + inc, x.getEntry(i), 0);
-        }
-    }
-
     @Test
     @Ignore("Abstract class RealVector is not serializable.")
     @Override



Mime
View raw message