Package org.xhtmlrenderer.test
Class DocumentDiffTest
java.lang.Object
org.xhtmlrenderer.test.DocumentDiffTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
compareTestFile
(String test, String diff, int width, int height) private static String
file_to_string
(File file) private static String
file_to_string
(String filename) void
generateDiffs
(File dir, int width, int height) static void
generateTestFile
(String test, String diff, int width, int height) private static void
Gets the diff attribute of the DocumentDiffTest objectstatic void
The main program for the DocumentDiffTest classprivate void
static void
string_to_file
(String text, File file) static String
xhtmlToDiff
(String xhtml, int width, int height)
-
Field Details
-
width
private static final int width- See Also:
-
height
private static final int height- See Also:
-
-
Constructor Details
-
DocumentDiffTest
public DocumentDiffTest()
-
-
Method Details
-
runTests
- Throws:
Exception
-
generateDiffs
- Throws:
Exception
-
generateTestFile
public static void generateTestFile(String test, String diff, int width, int height) throws Exception - Throws:
Exception
-
xhtmlToDiff
- Throws:
Exception
-
compareTestFile
- Throws:
Exception
-
getDiff
Gets the diff attribute of the DocumentDiffTest object -
main
The main program for the DocumentDiffTest class- Parameters:
args
- The command line arguments- Throws:
Exception
-
file_to_string
- Throws:
IOException
-
file_to_string
- Throws:
IOException
-
string_to_file
- Throws:
IOException
-