From: fabrizio g. <fg...@us...> - 2005-01-06 10:10:40
|
Update of /cvsroot/jtidy/jtidy/src/test/org/w3c/tidy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26013/src/test/org/w3c/tidy Modified Files: TidyTestCase.java Log Message: use assertEquals when a comparison fail, more IDE-friendly Index: TidyTestCase.java =================================================================== RCS file: /cvsroot/jtidy/jtidy/src/test/org/w3c/tidy/TidyTestCase.java,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- TidyTestCase.java 18 Sep 2004 13:26:35 -0000 1.26 +++ TidyTestCase.java 6 Jan 2005 10:10:31 -0000 1.27 @@ -149,7 +149,7 @@ { super.setUp(); - //creates a new Tidy + // creates a new Tidy this.tidy = new Tidy(); } @@ -321,7 +321,7 @@ */ protected Document parseDomTest(String fileName) throws Exception { - //creates a new Tidy + // creates a new Tidy setUpTidy(fileName); // input file @@ -505,15 +505,7 @@ if ((tidyLine != null) || (testLine != null)) { - fail("Wrong output, file comparison failed at line [" - + (i - 1) - + "]:\n" - + "[tidy][" - + tidyLine - + "]\n" - + "[test][" - + testLine - + "]"); + assertEquals("Wrong output, file comparison failed at line [" + (i - 1) + "]", testLine, tidyLine); } return; } |