|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.canoo.webtest.extension.VerifyContentTextDiff
public class VerifyContentTextDiff
Produces a unified diff like output (should be like unified diff, but not sure).
| Field Summary | |
|---|---|
protected String[] |
tabActual
|
protected String[] |
tabReference
|
| Constructor Summary | |
|---|---|
VerifyContentTextDiff()
|
|
| 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 void |
preProcess()
Called before comparision starts |
protected void |
reset()
Resets the state to allow new computation |
protected boolean |
sameContent(int posA,
int posB)
Indicates if 2 content lines are identical |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String[] tabReference
protected String[] tabActual
| Constructor Detail |
|---|
public VerifyContentTextDiff()
| Method Detail |
|---|
public String compare(com.gargoylesoftware.htmlunit.WebResponse reference,
com.gargoylesoftware.htmlunit.WebResponse actual,
String referenceLabel,
String actualLabel)
WebResponse.
compare in interface VerifyContentDiffreference - 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
null if content is identical, information allowing to
understand the differences otherwiseprotected void reset()
protected void preProcess()
protected boolean sameContent(int posA,
int posB)
posA - the line in the first contentposB - the line in the 2nd content
true if lines are identical
|
Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||