com.atlassian.confluence
Class EditPageAcceptanceTest

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.EditPageAcceptanceTest
All Implemented Interfaces:
junit.framework.Test

public class EditPageAcceptanceTest
extends AbstractConfluenceAcceptanceTest


Field Summary
 
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
DASHBOARD_RECENT_UPDATES_URL, logAdjuster, rpc, 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, webTester, wikiMarkupRpc
 
Constructor Summary
EditPageAcceptanceTest()
           
 
Method Summary
protected  ViewContentBean prepareEditPageTests()
           
 void renamePage()
          Makes sure that renaming and modifying a page brings up only one version in the history
protected  void setUp()
          Default setUp method.
 void testAddChildPage()
           
 void testCancel()
           
 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 testEditPageTitle()
           
 void testEditPageTitleWithBlankTitle()
           
 void testEditPageTitleWithSamePageTitle()
           
 void testEditPageWhileResolvingConflicts()
           
 void testHtmlEntityInLinkBody()
          Test to ensure CONFDEV-998 doesn't re-occur.
 void testI18n()
           
 void testMetadataIsNotChangedIfTitleAndContentDidNotChange()
           
 void testNoMergeConflictWithPageLayout()
           
 void testOnlyContentChanges()
           
 void testOnlyTitleChanges()
           
 void testOverwriteEdit()
           
 void testPunctuationPreserved()
           
 void testRemovePageRedirects()
           
 void testRenamePageWithLinkToItself()
           
 void testReparentToWrongSpace()
           
 void testSavePageFromOtherServer()
           
 void testSavePageWithInvalidImage()
           
 void testSetParentPageAsItself()
           
 void testSuccessfulMerge()
          Test that non-conflicting edits by concurrent editors are successfully merged.
 void testTitleAndContentChanges()
           
 void testVersionHistoryShowsCorrectRevisions()
           
 void TODOXHTML_testResolveMergeConflict()
           
 
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
adminConsole, attachments, baseUrlSelector, createSpaceViaWebUI, createTestSpaceViaWebUI, createTestUser, darkFeatures, directoryConfig, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getPluginHelper, getServerStateManager, goToBlogCollector, logins, logout, pages, plugins, rebuildIndex, setUpTestNG, substituteForNodeBaseUrl, tearDown, tearDownTestNG, users, viewHomepage, viewSpaceAdmin, viewSpacePermissions, viewSpaceSummary, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EditPageAcceptanceTest

public EditPageAcceptanceTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: AbstractConfluenceAcceptanceTest
Default setUp method. Establishes XML-RPC connection and sets the base URL. Also configures LDAP repository.

Overrides:
setUp in class AbstractConfluenceAcceptanceTest
Throws:
java.lang.Exception - from super

testEditPageTitle

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

testEditPageTitleWithBlankTitle

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

testEditPageTitleWithSamePageTitle

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

testChangeTitleCase

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

testAddChildPage

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

testSetParentPageAsItself

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

renamePage

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

Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testReparentToWrongSpace

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

testRenamePageWithLinkToItself

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

testSavePageWithInvalidImage

public void testSavePageWithInvalidImage()

testSavePageFromOtherServer

public void testSavePageFromOtherServer()

testCopyEditorContentPreservesAnchorLinks

public void testCopyEditorContentPreservesAnchorLinks()
                                               throws java.lang.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:
java.lang.Exception

testCommentsAppearInPageHistory

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

testVersionHistoryShowsCorrectRevisions

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

testCommentLinksWhenPageRenamed

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

testRemovePageRedirects

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

TODOXHTML_testResolveMergeConflict

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

testNoMergeConflictWithPageLayout

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

testMetadataIsNotChangedIfTitleAndContentDidNotChange

public void testMetadataIsNotChangedIfTitleAndContentDidNotChange()
                                                           throws java.io.IOException,
                                                                  org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testOnlyTitleChanges

public void testOnlyTitleChanges()
                          throws java.io.IOException,
                                 org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testOnlyContentChanges

public void testOnlyContentChanges()
                            throws java.io.IOException,
                                   org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testTitleAndContentChanges

public void testTitleAndContentChanges()
                                throws java.io.IOException,
                                       org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testEditPageWhileResolvingConflicts

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

testSuccessfulMerge

public void testSuccessfulMerge()
                         throws java.io.IOException,
                                org.apache.xmlrpc.XmlRpcException
Test that non-conflicting edits by concurrent editors are successfully merged.

Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testPunctuationPreserved

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

testCancel

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

testI18n

public void testI18n()

testOverwriteEdit

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

testHtmlEntityInLinkBody

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

Throws:
java.lang.Exception

prepareEditPageTests

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.