sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1701665 - in /sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis: io/wkt/WKTParserTest.java referencing/operation/projection/LambertConicConformalTest.java
Date Mon, 07 Sep 2015 18:44:47 GMT
Author: desruisseaux
Date: Mon Sep  7 18:44:47 2015
New Revision: 1701665

URL: http://svn.apache.org/r1701665
Log:
Use 'StrictMath' instead than 'Math' in tests.

Modified:
    sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTParserTest.java
    sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/LambertConicConformalTest.java

Modified: sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTParserTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTParserTest.java?rev=1701665&r1=1701664&r2=1701665&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTParserTest.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTParserTest.java
[UTF-8] Mon Sep  7 18:44:47 2015
@@ -61,7 +61,7 @@ public final strictfp class WKTParserTes
      */
     @Override
     protected String preprocessWKT(String wkt) {
-        if (Math.random() >= 0.5) {
+        if (StrictMath.random() >= 0.5) {
             wkt = super.preprocessWKT(wkt);
         }
         return wkt;

Modified: sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/LambertConicConformalTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/LambertConicConformalTest.java?rev=1701665&r1=1701664&r2=1701665&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/LambertConicConformalTest.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/LambertConicConformalTest.java
[UTF-8] Mon Sep  7 18:44:47 2015
@@ -67,7 +67,7 @@ public final strictfp class LambertConic
         a = a.multiply(new BigDecimal("57.29577951308232087679815481410517"));  // Conversion
from radians to degrees.
         a = a.multiply(new BigDecimal(60 * 60));                                // Conversion
from degrees to seconds.
         a = a.add     (new BigDecimal("29.2985"));                              // The standard
value.
-        assertTrue(Math.abs(a.doubleValue()) < 1E-31);
+        assertTrue(abs(a.doubleValue()) < 1E-31);
     }
 
     /**



Mime
View raw message