| org.andromda.cartridges.testsuite.FileComparator
FileComparator | public class FileComparator extends TestCase (Code) | | Compares two files. It checks if both file do exist and if the contents of
both files are equal.
author: Chad Brandon |
Constructor Summary | |
public | FileComparator(String testName, File expectedFile, File actualFile, boolean binary) Constructs a new instance of the FileComparator. |
FileComparator | public FileComparator(String testName, File expectedFile, File actualFile, boolean binary)(Code) | | Constructs a new instance of the FileComparator.
Parameters: testName - the name of the test to run Parameters: expectedFile - the location of the expected file Parameters: actualFile - the location of the actual file. Parameters: binary - whether or not the file is binary, if it is binary contentsof the binary are not compared as Strings but as binary files. |
getActualFile | public File getActualFile()(Code) | | Gets the actual file being compared.
the file being compared. |
getExpectedFile | public File getExpectedFile()(Code) | | Gets the file expected file (i.e. the file that
the actual file is compared against).
the expected file. |
testContentsEqual | protected void testContentsEqual()(Code) | | Loads both the actual and expected files
and tests the contents for equality.
|
testEquals | public void testEquals()(Code) | | |
|
|