Package net.ggtools.grand.utils
Class FileComparator
- java.lang.Object
-
- net.ggtools.grand.utils.FileComparator
-
public class FileComparator extends Object
Utility class to compare two files.- Author:
- Christophe Labouisse
-
-
Constructor Summary
Constructors Constructor Description FileComparator(File source, File dest)
Creates a new file comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertLinesMatch()
Asserts that both files match line for line.void
assertSizesMatch()
Asserts that both files have the same length.
-
-
-
Method Detail
-
assertSizesMatch
public final void assertSizesMatch()
Asserts that both files have the same length.
-
assertLinesMatch
public final void assertLinesMatch() throws IOException
Asserts that both files match line for line. This method also assert the both files have the same length.- Throws:
IOException
- if FileReader fails
-
-