Class DocumentDiffTest


  • public class DocumentDiffTest
    extends java.lang.Object
    Description of the Class
    Author:
    empty
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int height  
      static int width  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compareTestFile​(java.lang.String test, java.lang.String diff, int width, int height)
      Description of the Method
      void generateDiffs​(java.io.File dir, int width, int height)
      Description of the Method
      static void generateTestFile​(java.lang.String test, java.lang.String diff, int width, int height)
      Description of the Method
      static void getDiff​(java.lang.StringBuffer sb, Box box, java.lang.String tab)
      Gets the diff attribute of the DocumentDiffTest object
      static void main​(java.lang.String[] args)
      The main program for the DocumentDiffTest class
      void runTests​(java.io.File dir, int width, int height)
      Description of the Method
      static java.lang.String xhtmlToDiff​(java.lang.String xhtml, int width, int height)
      Description of the Method
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocumentDiffTest

        public DocumentDiffTest()
    • Method Detail

      • runTests

        public void runTests​(java.io.File dir,
                             int width,
                             int height)
                      throws java.lang.Exception
        Description of the Method
        Parameters:
        dir - PARAM
        width - PARAM
        height - PARAM
        Throws:
        java.lang.Exception - Throws
      • generateDiffs

        public void generateDiffs​(java.io.File dir,
                                  int width,
                                  int height)
                           throws java.lang.Exception
        Description of the Method
        Parameters:
        dir - PARAM
        width - PARAM
        height - PARAM
        Throws:
        java.lang.Exception - Throws
      • generateTestFile

        public static void generateTestFile​(java.lang.String test,
                                            java.lang.String diff,
                                            int width,
                                            int height)
                                     throws java.lang.Exception
        Description of the Method
        Parameters:
        test - PARAM
        diff - PARAM
        width - PARAM
        height - PARAM
        Throws:
        java.lang.Exception - Throws
      • xhtmlToDiff

        public static java.lang.String xhtmlToDiff​(java.lang.String xhtml,
                                                   int width,
                                                   int height)
                                            throws java.lang.Exception
        Description of the Method
        Parameters:
        xhtml - PARAM
        width - PARAM
        height - PARAM
        Returns:
        Returns
        Throws:
        java.lang.Exception - Throws
      • compareTestFile

        public boolean compareTestFile​(java.lang.String test,
                                       java.lang.String diff,
                                       int width,
                                       int height)
                                throws java.lang.Exception
        Description of the Method
        Parameters:
        test - PARAM
        diff - PARAM
        width - PARAM
        height - PARAM
        Returns:
        Returns
        Throws:
        java.lang.Exception - Throws
      • getDiff

        public static void getDiff​(java.lang.StringBuffer sb,
                                   Box box,
                                   java.lang.String tab)
        Gets the diff attribute of the DocumentDiffTest object
        Parameters:
        sb - PARAM
        box - PARAM
        tab - PARAM
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        The main program for the DocumentDiffTest class
        Parameters:
        args - The command line arguments
        Throws:
        java.lang.Exception - Throws