com.atlassian.confluence.selenium
Class MoveEditedPageTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.selenium.AbstractSeleniumTest
              extended by com.atlassian.confluence.selenium.AbstractMoveDialogTester
                  extended by com.atlassian.confluence.selenium.MoveEditedPageTest
All Implemented Interfaces:
junit.framework.Test

public class MoveEditedPageTest
extends AbstractMoveDialogTester

Test the move page mechanism when you are editing an existing page.


Field Summary
 
Fields inherited from class com.atlassian.confluence.selenium.AbstractMoveDialogTester
menus, monkeySpace
 
Fields inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest
adminUser, assertThat, client, confluence, confluenceUsersGroup, rpc, screenShotIndex, testBlogPost, testComment, testData, testGroup, testImage, testImage2, testPage, testSpace, testUser, testUserWithApostrophe
 
Constructor Summary
MoveEditedPageTest(java.lang.String s)
           
 
Method Summary
protected  void assertDuplicatePageError(MovePageDialog dialog)
           
protected  void clickDialogSubmitButton(MovePageDialog dialog)
           
protected  java.lang.String getDialogTitle()
           
protected  void navigateToDialogLaunchPoint(Page page)
          Navigate the client to the point in Confluence where the dialog would be launched from but do not actually display the dialog.
protected  MovePageDialog openDialog()
           
protected  void setUp()
           
protected  void submitMove(MovePageDialog dialog)
           
 void testChangePageLocation()
           
 void testChangeThenCancelledChange()
          When you make a move, then open the dialog to change this move but cancel, the original move should be remembered and not the original page location.
 void testMoveToTopLevelOfSpace()
           
 
Methods inherited from class com.atlassian.confluence.selenium.AbstractMoveDialogTester
createPageHierarchy, openDialogFor, testAvailabilityAndDecoration, testCannotChangeSpaceWhenNoRemovePermission, testChangingSpace, testChangingSpaceThenCancel, testClickingPageThenCancel, testMoreSearchResultsMessage, testMoveInsertsPageAlphabeticalForUnOrderedSiblings, testMoveInsertsPageAtEndOfOrderedSiblings, testMovePageToKnownLocation, testMovingToSpaceWithDuplicateTitle, testNoSpacePickerIfNoRemovePermission, testReorderToFirstUnderSpace, testReorderToLastUnderSpace, testReorderWhenNoSiblings, testReorderWithoutMoving, testTreeCanDisplayPageWithAmpersandInTitle, testTreeClicksDoNotNavigate, testTreeContainsDescendantsOfMovedPage, testTreeDoesNotShowSpaceWithNoCreatePermission, testTreeExpandsInOtherLanguages, testTreeMoveToHomePageOfAnotherSpace, testTreeMoveToSibling, testTreeMoveToTopOfNewSpace, testTreeMoveToTopOfSameSpace, testTreeMoveWithinSameSpace, testTreeScrollsToShowCurrentParent, testTreeSpaceChangeDoesNotDiscardSelection, testTreeSpaceNamesAreProperlyEncoded, testValidationErrorIfMovingPageBeneathItself
 
Methods inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest
captureScreenShot, captureScreenShot, createTestData, removeTestData, runTest, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MoveEditedPageTest

public MoveEditedPageTest(java.lang.String s)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class AbstractMoveDialogTester
Throws:
java.lang.Exception

navigateToDialogLaunchPoint

protected void navigateToDialogLaunchPoint(Page page)
Description copied from class: AbstractMoveDialogTester
Navigate the client to the point in Confluence where the dialog would be launched from but do not actually display the dialog.

Overrides:
navigateToDialogLaunchPoint in class AbstractMoveDialogTester
Parameters:
page - the launch point for the dialog or null if there is no page

openDialog

protected MovePageDialog openDialog()
Overrides:
openDialog in class AbstractMoveDialogTester

getDialogTitle

protected java.lang.String getDialogTitle()
Overrides:
getDialogTitle in class AbstractMoveDialogTester

submitMove

protected void submitMove(MovePageDialog dialog)
Overrides:
submitMove in class AbstractMoveDialogTester

clickDialogSubmitButton

protected void clickDialogSubmitButton(MovePageDialog dialog)
Overrides:
clickDialogSubmitButton in class AbstractMoveDialogTester

assertDuplicatePageError

protected void assertDuplicatePageError(MovePageDialog dialog)

testChangePageLocation

public void testChangePageLocation()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testMoveToTopLevelOfSpace

public void testMoveToTopLevelOfSpace()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testChangeThenCancelledChange

public void testChangeThenCancelledChange()
                                   throws java.lang.Exception
When you make a move, then open the dialog to change this move but cancel, the original move should be remembered and not the original page location.

Throws:
java.lang.Exception


Copyright © 2003-2010 Atlassian. All Rights Reserved.