- java.lang.Object
-
- com.pervasive.datarush.test.DataRushAssert
-
public class DataRushAssert extends Object
A utility class providing convenience methods for asserting that text files are identical. These methods are useful for testing DataRush application output. Note that these methods actually invoke DataRush applications to perform the tests.
-
-
Constructor Summary
Constructors Constructor Description DataRushAssert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertEqualDelimitedFiles(String expectedOutput, String actualOutput)
Verifies that two delimited text files are identical.static void
assertEqualTextFiles(String expectedOutput, String actualOutput)
Verifies that two character sequences are identical.static void
assertLinesEqual(String expectedOutput, String actualOutput, FloatingPointTolerance tolerance, String fieldSeparator)
Compares two files, line-by-line, ignoring floating point mismatches.
-
-
-
Method Detail
-
assertLinesEqual
public static void assertLinesEqual(String expectedOutput, String actualOutput, FloatingPointTolerance tolerance, String fieldSeparator)
Compares two files, line-by-line, ignoring floating point mismatches. The newline style ( windows vs. unix ) is not considered by the comparison. Files must be delimited by the given field separator.- Parameters:
expectedOutput
- The expected output fileactualOutput
- The actual output filetolerance
- floating point tolerance to use when comparingfieldSeparator
- the field separator
-
assertEqualTextFiles
public static void assertEqualTextFiles(String expectedOutput, String actualOutput)
Verifies that two character sequences are identical.- Parameters:
expectedOutput
- the path of the file with expected outputactualOutput
- the path of the file with actual output
-
-