com.atlassian.confluence
Class PageEditAcceptanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.junit3.JUnit3TimingTestCase
              extended by com.atlassian.confluence.AbstractConfluenceAcceptanceTest
                  extended by com.atlassian.confluence.PageEditAcceptanceTest
All Implemented Interfaces:
junit.framework.Test

public class PageEditAcceptanceTest
extends AbstractConfluenceAcceptanceTest


Field Summary
 
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
ANONYMOUS_USER, DASHBOARD_RECENT_UPDATES_URL, DIRECTORY_CONFIG, exceptionTransformer, filesToDelete, log, logAdjuster, RANDOM, rpc, serverStateManager, TEST_ADMIN, TEST_BLOG, TEST_COMMENT, TEST_GROUP1, TEST_GROUP2, TEST_PAGE, TEST_SPACE, TEST_SPACE2, TEST_USER1, TEST_USER2, TESTBLOG_CONTENT, TESTBLOG_TITLE, testData, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_KEY, TESTSPACE2_TITLE, VIEW_PERSONAL_SPACE_LINK, webTester, wikiMarkupRpc
 
Constructor Summary
PageEditAcceptanceTest()
           
 
Method Summary
protected  ViewContentBean prepareEditPageTests()
           
 void renamePage()
          Makes sure that renaming and modifying a page brings up only one version in the history
 void testAddChildPage()
           
 void testCancel()
           
 void testChangePageLocation()
           
 void testChangeTitleCase()
           
 void testCommentLinksWhenPageRenamed()
           
 void testCommentsAppearInPageHistory()
           
 void testCopyEditorContentPreservesAnchorLinks()
          CONF-23370 Ensure that the tech writer work flow of copying the editor content for one page to the editor for another doesn't break the anchor links in the pasted page.
 void testEditPageAttributedToCorrectUser()
           
 void testEditPageTitle()
           
 void testEditPageTitleWithBlankTitle()
           
 void testEditPageTitleWithSamePageTitle()
           
 void testEditPageWhileResolvingConflicts()
           
 void testHtmlEntityInLinkBody()
          Test to ensure CONFDEV-998 doesn't re-occur.
 void testMoveRenameReparentPage()
           
 void testNameConflictsOnMove()
           
 void testNoMergeConflictWithPageLayout()
           
 void testOverwriteEdit()
           
 void testPunctuationPreserved()
           
 void testRemovePageRedirects()
           
 void testRenamePageWithLinkToItself()
           
 void testReparentToWrongSpace()
           
 void testSavePageFromOtherServer()
           
 void testSavePageWithInvalidImage()
           
 void testSetParentPage()
           
 void testSetParentPageAsItself()
           
 void testVersionHistoryShowsCorrectRevisions()
           
 void TODOXHTML_testResolveMergeConflict()
           
 
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
adminConsole, attachments, createAndWatchTestPage, createSpaceViaWebUI, createTestSpaceViaWebUI, disableAnonymousAccess, enableAnonymousAccess, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getFriendlyRelativeDate, getPluginHelper, goToBlogCollector, goToPagesCollector, isClustered, logInAsAdminAtHomepage, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtHomepage, logins, logout, pages, rebuildIndex, setUp, setUp, setUpTestNG, tearDown, tearDownTestNG, users, viewHomepage, viewPeopleDirectory, viewSpaceAdmin, viewSpacePermissions, viewSpaceSummary, viewSpaceTools, viewSpaceTools, viewTrash, watchSpace, webAppContextPath
 
Methods inherited from class com.atlassian.confluence.junit3.JUnit3TimingTestCase
runBare, setExceptionTransformer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageEditAcceptanceTest

public PageEditAcceptanceTest()
Method Detail

testEditPageTitle

public void testEditPageTitle()
                       throws IOException,
                              org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testEditPageTitleWithBlankTitle

public void testEditPageTitleWithBlankTitle()
                                     throws IOException,
                                            org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testEditPageTitleWithSamePageTitle

public void testEditPageTitleWithSamePageTitle()
                                        throws IOException,
                                               org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testChangeTitleCase

public void testChangeTitleCase()
                         throws IOException,
                                org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testAddChildPage

public void testAddChildPage()
                      throws IOException,
                             org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testSetParentPage

public void testSetParentPage()
                       throws IOException,
                              org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testSetParentPageAsItself

public void testSetParentPageAsItself()
                               throws IOException,
                                      org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testMoveRenameReparentPage

public void testMoveRenameReparentPage()
                                throws IOException,
                                       org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testChangePageLocation

public void testChangePageLocation()
                            throws IOException,
                                   org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

renamePage

public void renamePage()
                throws IOException,
                       org.apache.xmlrpc.XmlRpcException
Makes sure that renaming and modifying a page brings up only one version in the history

Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testReparentToWrongSpace

public void testReparentToWrongSpace()
                              throws IOException,
                                     org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testRenamePageWithLinkToItself

public void testRenamePageWithLinkToItself()
                                    throws IOException,
                                           org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testSavePageWithInvalidImage

public void testSavePageWithInvalidImage()

testSavePageFromOtherServer

public void testSavePageFromOtherServer()

testCopyEditorContentPreservesAnchorLinks

public void testCopyEditorContentPreservesAnchorLinks()
                                               throws Exception
CONF-23370 Ensure that the tech writer work flow of copying the editor content for one page to the editor for another doesn't break the anchor links in the pasted page.

Throws:
Exception

testCommentsAppearInPageHistory

public void testCommentsAppearInPageHistory()
                                     throws Exception
Throws:
Exception

testVersionHistoryShowsCorrectRevisions

public void testVersionHistoryShowsCorrectRevisions()
                                             throws Exception
Throws:
Exception

testCommentLinksWhenPageRenamed

public void testCommentLinksWhenPageRenamed()
                                     throws IOException,
                                            org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testNameConflictsOnMove

public void testNameConflictsOnMove()
                             throws IOException,
                                    org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testRemovePageRedirects

public void testRemovePageRedirects()
                             throws IOException,
                                    org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testEditPageAttributedToCorrectUser

public void testEditPageAttributedToCorrectUser()
                                         throws IOException,
                                                org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

TODOXHTML_testResolveMergeConflict

public void TODOXHTML_testResolveMergeConflict()
                                        throws IOException,
                                               org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testNoMergeConflictWithPageLayout

public void testNoMergeConflictWithPageLayout()
                                       throws IOException,
                                              org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testEditPageWhileResolvingConflicts

public void testEditPageWhileResolvingConflicts()
                                         throws IOException,
                                                org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testPunctuationPreserved

public void testPunctuationPreserved()
                              throws Exception
Throws:
Exception

testCancel

public void testCancel()
                throws Exception
Throws:
Exception

testOverwriteEdit

public void testOverwriteEdit()
                       throws IOException,
                              org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException

testHtmlEntityInLinkBody

public void testHtmlEntityInLinkBody()
                              throws Exception
Test to ensure CONFDEV-998 doesn't re-occur.

Throws:
Exception

prepareEditPageTests

protected ViewContentBean prepareEditPageTests()
                                        throws IOException,
                                               org.apache.xmlrpc.XmlRpcException
Throws:
IOException
org.apache.xmlrpc.XmlRpcException


Copyright © 2003-2013 Atlassian. All Rights Reserved.