org.baselinetest.comparator
Class TextComparator

java.lang.Object
  extended by org.baselinetest.comparator.TextComparator
All Implemented Interfaces:
TestComparator

public class TextComparator
extends java.lang.Object
implements TestComparator

A class for doing textual comparisons that ignore EOL differences.

Author:
jwan

Constructor Summary
TextComparator()
           
 
Method Summary
 boolean compare(java.io.File expectedOutput, java.io.File actualOutput)
          Perform a text comparison of the two files, ignoring EOL differences.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextComparator

public TextComparator()
Method Detail

compare

public boolean compare(java.io.File expectedOutput,
                       java.io.File actualOutput)
Perform a text comparison of the two files, ignoring EOL differences.

Specified by:
compare in interface TestComparator
Parameters:
expectedOutput - the expected test output.
actualOutput - the test output.
Returns:
true if the files are a textual match.


Copyright © 2005-2009 Baseline Test. All Rights Reserved.