com.canoo.webtest.extension
Class VerifyContentBinDiff

java.lang.Object
  extended by com.canoo.webtest.extension.VerifyContentBinDiff
All Implemented Interfaces:
VerifyContentDiff

public class VerifyContentBinDiff
extends Object
implements VerifyContentDiff

Performs a binary comparison of the content.

Author:
Marc Guillemot

Constructor Summary
VerifyContentBinDiff()
           
 
Method Summary
 String compare(com.gargoylesoftware.htmlunit.WebResponse reference, com.gargoylesoftware.htmlunit.WebResponse actual, String referenceLabel, String actualLabel)
          Produce the diff of the content of 2 WebResponse.
protected  String produceBinDiffMessage(byte[] actualBytes, byte[] referenceBytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifyContentBinDiff

public VerifyContentBinDiff()
Method Detail

compare

public String compare(com.gargoylesoftware.htmlunit.WebResponse reference,
                      com.gargoylesoftware.htmlunit.WebResponse actual,
                      String referenceLabel,
                      String actualLabel)
Produce the diff of the content of 2 WebResponse.

Specified by:
compare in interface VerifyContentDiff
Parameters:
reference - the reference content
actual - the actual content
referenceLabel - the label to display in diff message for the reference content
actualLabel - the label to display in diff message for the actual content
Returns:
null if content is identical, information allowing to understand the differences otherwise

produceBinDiffMessage

protected String produceBinDiffMessage(byte[] actualBytes,
                                       byte[] referenceBytes)

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.