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 voidassertLinesMatch()Asserts that both files match line for line.voidassertSizesMatch()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 IOExceptionAsserts that both files match line for line. This method also assert the both files have the same length.- Throws:
IOException- if FileReader fails
-
-