You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2012/08/15 20:30:20 UTC

svn commit: r1373554 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealMatrixFormatAbstractTest.java

Author: tn
Date: Wed Aug 15 18:30:18 2012
New Revision: 1373554

URL: http://svn.apache.org/viewvc?rev=1373554&view=rev
Log:
Fix RealMatrixFormatTests to always use a fixed locale instead of the default one.

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

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealMatrixFormatAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealMatrixFormatAbstractTest.java?rev=1373554&r1=1373553&r2=1373554&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealMatrixFormatAbstractTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealMatrixFormatAbstractTest.java Wed Aug 15 18:30:18 2012
@@ -341,7 +341,7 @@ public abstract class RealMatrixFormatAb
     public void testForgottenPrefix() {
         ParsePosition pos = new ParsePosition(0);
         final String source = "1; 1; 1]";
-        Assert.assertNull("Should not parse <"+source+">", new RealMatrixFormat().parse(source, pos));
+        Assert.assertNull("Should not parse <"+source+">", realMatrixFormat.parse(source, pos));
         Assert.assertEquals(0, pos.getErrorIndex());
     }
 
@@ -349,7 +349,7 @@ public abstract class RealMatrixFormatAb
     public void testForgottenSeparator() {
         ParsePosition pos = new ParsePosition(0);
         final String source = "{{1, 1 1}}";
-        Assert.assertNull("Should not parse <"+source+">", new RealMatrixFormat().parse(source, pos));
+        Assert.assertNull("Should not parse <"+source+">", realMatrixFormat.parse(source, pos));
         Assert.assertEquals(7, pos.getErrorIndex());
     }
 
@@ -357,7 +357,7 @@ public abstract class RealMatrixFormatAb
     public void testForgottenSuffix() {
         ParsePosition pos = new ParsePosition(0);
         final String source = "{{1, 1, 1 ";
-        Assert.assertNull("Should not parse <"+source+">", new RealMatrixFormat().parse(source, pos));
+        Assert.assertNull("Should not parse <"+source+">", realMatrixFormat.parse(source, pos));
         Assert.assertEquals(9, pos.getErrorIndex());
     }
 }