File Comparators
Plain File Comparator
Create an instance of the comparator by providing the file paths of the two files that are going to be compared, for example:
Additionally the comparator can generate a verbose output that will help you to identify differences found within the files. Example:
If the files have differences, the comparator will generate a file with the prefix plaindiff and extension .html with the results.
XML File Comparator
This comparator works similar to the Plain File Comparator because both are based in the same class. Here is an example:
Last updated
Was this helpful?