org.kite9.framework.common
Class FileDiff
java.lang.Object
org.kite9.framework.common.FileDiff
public class FileDiff
- extends Object
Compares two files and returns true if they are identical
- Author:
- robmoffat
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDiff
public FileDiff()
areFilesSame
public static void areFilesSame(File a,
File b)
throws IOException,
DiffException
- Throws:
IOException
DiffException
filesContainSameLines
public static void filesContainSameLines(File a,
File b)
throws IOException,
DiffException
- Throws:
IOException
DiffException
filesContainSameLines
public static void filesContainSameLines(File a,
File b,
Comparator<String> lc)
throws IOException,
DiffException
- Allows testing of file comparing where order of files is undefined
- Throws:
DiffException
IOException
fileContainsLines
public static void fileContainsLines(File f,
String... lines)
throws IOException,
DiffException
- Throws:
IOException
DiffException
Copyright © 2011. All Rights Reserved.