Class PlanItTestHelper


  • public class PlanItTestHelper
    extends Object
    Helper class used by unit tests
    Author:
    gman6028, markr
    • Constructor Detail

      • PlanItTestHelper

        public PlanItTestHelper()
    • Method Detail

      • compareFilesExact

        public static boolean compareFilesExact​(String file1,
                                                String file2,
                                                boolean printFilesOnFalse)
                                         throws IOException
        Compares the contents of two text files In this test the text contents of the files must be exactly equal. This test can be applied to CSV, XML file types
        Parameters:
        file1 - location of the first file to be compared
        file2 - location of the second file to be compared
        printFilesOnFalse - when comparison returns false we can print the files when set to true, otherwise not
        Returns:
        true if the contents of the two files are exactly equal, false otherwise
        Throws:
        IOException - thrown if there is an error opening one of the files