sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1688797 - /sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTFormatTest.java
Date Thu, 02 Jul 2015 09:43:27 GMT
Author: desruisseaux
Date: Thu Jul  2 09:43:27 2015
New Revision: 1688797

URL: http://svn.apache.org/r1688797
Log:
Added a test for consistency of parsing/formatting using Convention.WKT2_SIMPLIFIED.

Modified:
    sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTFormatTest.java

Modified: sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTFormatTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTFormatTest.java?rev=1688797&r1=1688796&r2=1688797&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTFormatTest.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/io/wkt/WKTFormatTest.java
[UTF-8] Thu Jul  2 09:43:27 2015
@@ -117,6 +117,21 @@ public final strictfp class WKTFormatTes
     }
 
     /**
+     * Tests consistency between the parser and the formatter when using the WKT 2 simplified
format.
+     * This test parses a WKT, formats it then parses again. We should obtain the same result.
+     *
+     * @throws ParseException if a parsing failed.
+     */
+    @Test
+    @DependsOnMethod("testConsistencyOfWKT2")
+    public void testConsistencyOfWKT2_Simplified() throws ParseException {
+        format = new WKTFormat(null, null);
+        format.setConvention(Convention.WKT2_SIMPLIFIED);
+        parser = format;
+        testConsistency();
+    }
+
+    /**
      * Implementation of {@link #testConsistencyOfWKT1()} and variants.
      *
      * @throws ParseException if a parsing failed.



Mime
View raw message