com.canoo.webtest.extension
Interface VerifyContentDiff
- All Known Implementing Classes:
- VerifyContentBinDiff, VerifyContentRegexPerLineDiff, VerifyContentTextDiff
public interface VerifyContentDiff
A diff algorithm able to compare the content 2 WebResponse.
An instance should allow multiple calls to compare(com.gargoylesoftware.htmlunit.WebResponse, com.gargoylesoftware.htmlunit.WebResponse, java.lang.String, java.lang.String) may occur within test execution.
- 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. |
compare
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.
- 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