com.canoo.webtest.extension
Class VerifyContentBinDiff
java.lang.Object
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
|
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 |
VerifyContentBinDiff
public VerifyContentBinDiff()
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 contentactual - the actual contentreferenceLabel - the label to display in diff message for the reference contentactualLabel - 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)