[HtmlUnit] SVN: [13810] trunk/neko-htmlunit/src/test/java/net/sourceforge/htmlunit/ cyberneko/CanonicalTest.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [13810] trunk/neko-htmlunit/src/test/java/net/sourceforge/htmlunit/ cyberneko/CanonicalTest.java

rbri
Revision: 13810
          http://sourceforge.net/p/htmlunit/code/13810
Author:   rbri
Date:     2017-03-17 18:22:44 +0000 (Fri, 17 Mar 2017)
Log Message:
-----------
fix path

Modified Paths:
--------------
    trunk/neko-htmlunit/src/test/java/net/sourceforge/htmlunit/cyberneko/CanonicalTest.java

Modified: trunk/neko-htmlunit/src/test/java/net/sourceforge/htmlunit/cyberneko/CanonicalTest.java
===================================================================
--- trunk/neko-htmlunit/src/test/java/net/sourceforge/htmlunit/cyberneko/CanonicalTest.java 2017-03-17 18:21:41 UTC (rev 13809)
+++ trunk/neko-htmlunit/src/test/java/net/sourceforge/htmlunit/cyberneko/CanonicalTest.java 2017-03-17 18:22:44 UTC (rev 13810)
@@ -52,16 +52,17 @@
  */
 public class CanonicalTest extends TestCase {
 
-    private static final File canonicalDir = new File("data/canonical");
+    private static final File dataDir = new File("src/test/resources");
+    private static final File canonicalDir = new File("src/test/resources/canonical");
     private static final File outputDir = new File("target/data/output/" + XercesBridge.getInstance().getVersion());
     private File dataFile;
     
     public static Test suite() throws Exception {
+        System.out.println(canonicalDir.getAbsolutePath());
         outputDir.mkdirs();
 
         TestSuite suite = new TestSuite();
         final List<File> dataFiles = new ArrayList<>();
-        File dataDir = new File("data");
         dataDir.listFiles(new FileFilter() {
             @Override
             public boolean accept(final File file) {
@@ -104,7 +105,7 @@
             }
             final String canonicalLines = getCanonical(canonicalFile);
             
-            assertEquals(canonicalLines, dataLines);
+            assertEquals(dataFile.toString(), canonicalLines, dataLines);
         }
         catch (final AssertionFailedError e)
         {


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...