Package org.xhtmlrenderer.test
Class DocumentDiffTest
java.lang.Object
org.xhtmlrenderer.test.DocumentDiffTest
-
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) static void
generateTestFile
(String test, String diff, int width, int height) private static void
Gets the diff attribute of the DocumentDiffTest objectstatic void
string_to_file
(String text, File file) static String
xhtmlToDiff
(String xhtml, int width, int height)
-
Constructor Details
-
DocumentDiffTest
public DocumentDiffTest()
-
-
Method Details
-
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 -
file_to_string
- Throws:
IOException
-
file_to_string
- Throws:
IOException
-
string_to_file
- Throws:
IOException
-