public class ViewContentHistoryBean extends Object
Currently not very implemented.
Constructor and Description |
---|
ViewContentHistoryBean(net.sourceforge.jwebunit.junit.WebTester tester) |
Modifier and Type | Method and Description |
---|---|
void |
assertNoChangeComment(int contentVersion)
Asserts that no changeComment exists for a version.
|
String |
getChangeCommentText(int contentVersion)
Retrieves the text of the change comment for a specified version of the content.
|
String |
getChangeCommentTextForLatestVersion() |
ViewContentBean |
restoreAndViewContentVersion(int version) |
void |
viewComparison(int firstVersion,
int secondVersion)
Update the WebTester to show a comparison of the two versions supplied.
|
ViewContentBean |
viewContentVersion(int version) |
public ViewContentHistoryBean(net.sourceforge.jwebunit.junit.WebTester tester)
public String getChangeCommentText(int contentVersion)
contentVersion
- content version, starting at 1.junit.framework.AssertionFailedError
- if the version does not exist, or it has no change commentpublic String getChangeCommentTextForLatestVersion()
public void viewComparison(int firstVersion, int secondVersion)
Update the WebTester to show a comparison of the two versions supplied.
A full implementation of this would return a representation of the diff for applying assertions to but I'm not actually performing diff testing so that is beyond my scope at this point in time.
firstVersion
- secondVersion
- public ViewContentBean viewContentVersion(int version)
public ViewContentBean restoreAndViewContentVersion(int version)
public void assertNoChangeComment(int contentVersion)
contentVersion
- content version, starting at 1.Copyright © 2003–2018 Atlassian. All rights reserved.