org.baselinetest.comparator
Class ByteComparator

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

public class ByteComparator
extends java.lang.Object
implements TestComparator

A class for doing byte-by-byte comparisons for two files.

Author:
jwan

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

Constructor Detail

ByteComparator

public ByteComparator()
Method Detail

compare

public boolean compare(java.io.File expectedOutput,
                       java.io.File actualOutput)
Perform a byte by byte comparison of the two files.

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


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