org.kite9.framework.common
Class FileDiff

java.lang.Object
  extended by org.kite9.framework.common.FileDiff

public class FileDiff
extends Object

Compares two files and returns true if they are identical

Author:
robmoffat

Constructor Summary
FileDiff()
           
 
Method Summary
static void areFilesSame(File a, File b)
           
static void fileContainsLines(File f, String... lines)
           
static void filesContainSameLines(File a, File b)
           
static void filesContainSameLines(File a, File b, Comparator<String> lc)
          Allows testing of file comparing where order of files is undefined
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDiff

public FileDiff()
Method Detail

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.