Package org.goplanit.test
Class PlanItTestHelper
- java.lang.Object
-
- org.goplanit.test.PlanItTestHelper
-
public class PlanItTestHelper extends Object
Helper class used by unit tests- Author:
- gman6028, markr
-
-
Constructor Summary
Constructors Constructor Description PlanItTestHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
compareFilesExact(String file1, String file2, boolean printFilesOnFalse)
Compares the contents of two text files In this test the text contents of the files must be exactly equal.
-
-
-
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 comparedfile2
- location of the second file to be comparedprintFilesOnFalse
- 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
-
-