com.atlassian.confluence.it.content
Class ViewContentHistoryBean

java.lang.Object
  extended by com.atlassian.confluence.it.content.ViewContentHistoryBean

public class ViewContentHistoryBean
extends Object

Represents a View Previous Versions page for a Page or BlogPost. Currently not very implemented.


Constructor Summary
ViewContentHistoryBean(net.sourceforge.jwebunit.junit.WebTester tester)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewContentHistoryBean

public ViewContentHistoryBean(net.sourceforge.jwebunit.junit.WebTester tester)
Method Detail

getChangeCommentText

public String getChangeCommentText(int contentVersion)
Retrieves the text of the change comment for a specified version of the content.

Parameters:
contentVersion - content version, starting at 1.
Returns:
the text of the element
Throws:
junit.framework.AssertionFailedError - if the version does not exist, or it has no change comment

getChangeCommentTextForLatestVersion

public String getChangeCommentTextForLatestVersion()

viewComparison

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.

Parameters:
firstVersion -
secondVersion -

viewContentVersion

public ViewContentBean viewContentVersion(int version)

restoreAndViewContentVersion

public ViewContentBean restoreAndViewContentVersion(int version)

assertNoChangeComment

public void assertNoChangeComment(int contentVersion)
Asserts that no changeComment exists for a version.

Parameters:
contentVersion - content version, starting at 1.


Copyright © 2003-2012 Atlassian. All Rights Reserved.