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.
 

Method Detail

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 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

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