com.atlassian.confluence
Class LinkTypeAcceptanceTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.confluence.junit3.JUnit3TimingTestCase
com.atlassian.confluence.AbstractConfluenceAcceptanceTest
com.atlassian.confluence.LinkTypeAcceptanceTest
- All Implemented Interfaces:
- junit.framework.Test
public class LinkTypeAcceptanceTest
- extends AbstractConfluenceAcceptanceTest
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest |
DASHBOARD_RECENT_UPDATES_URL, log, logAdjuster, RANDOM, 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 |
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest |
adminConsole, attachments, createSpaceViaWebUI, createTestSpaceViaWebUI, directoryConfig, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getPluginHelper, getServerStateManager, goToBlogCollector, logInAsAdminAtHomepage, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtHomepage, logins, logout, pages, rebuildIndex, setUpTestNG, 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 |
LinkTypeAcceptanceTest
public LinkTypeAcceptanceTest()
setUp
public 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
testAttachmentLink
public void testAttachmentLink()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAttachmentLinkOnCurrentPage
public void testAttachmentLinkOnCurrentPage()
testAttachmentLinkInComment
public void testAttachmentLinkInComment()
testAttachmentLinkToUnpermittedPage
public void testAttachmentLinkToUnpermittedPage()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAttachmentLinkToUnpermittedSpace
public void testAttachmentLinkToUnpermittedSpace()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAttachmentLinkToNonexistentAttachment
public void testAttachmentLinkToNonexistentAttachment()
testBlogPostLink
public void testBlogPostLink()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBlogPostLinkToUnpermittedSpace
public void testBlogPostLinkToUnpermittedSpace()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBlogPostLinkToNonexistentPost
public void testBlogPostLinkToNonexistentPost()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAttachmentLinkInBlogPost
public void testAttachmentLinkInBlogPost()
throws java.lang.Exception
- Throws:
java.lang.Exception
testExternalLink
public void testExternalLink()
testExternalLinkToNonexistentDomain
public void testExternalLinkToNonexistentDomain()
testPageLink
public void testPageLink()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPageLinkWithCustomTitle
public void testPageLinkWithCustomTitle()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPageLinkWithUppercaseOmega
public void testPageLinkWithUppercaseOmega()
throws java.lang.Exception
- test for CONF-7815
- Throws:
java.lang.Exception
testPageLinkToUnpermittedSpace
public void testPageLinkToUnpermittedSpace()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPageLinkToNonexistentSpaceAsAdminUser
public void testPageLinkToNonexistentSpaceAsAdminUser()
testPageAnchorLink
public void testPageAnchorLink()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPageAnchorLinkOnCurrentPage
public void testPageAnchorLinkOnCurrentPage()
testPageAnchorLinkToNonexistentAnchor
public void testPageAnchorLinkToNonexistentAnchor()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLinkToPageInSameSpaceStaysRelativeAfterRename
public void testLinkToPageInSameSpaceStaysRelativeAfterRename()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLinkToPageBecomesRelativeAfterPageMove
public void testLinkToPageBecomesRelativeAfterPageMove()
throws java.lang.Exception
- Throws:
java.lang.Exception
testShortcutLink
public void testShortcutLink()
testShortcutLinkToNonexistentShortcut
public void testShortcutLinkToNonexistentShortcut()
testNewShortcutLink
public void testNewShortcutLink()
testFileShortcutLink
public void testFileShortcutLink()
testShortcutLinksEncoding
public void testShortcutLinksEncoding()
testSpaceKeyLink
public void testSpaceKeyLink()
testSpaceKeyLinkToPageOnNonexistentSpace
public void testSpaceKeyLinkToPageOnNonexistentSpace()
testSpaceKeyLinkToNonexistentSpace
public void testSpaceKeyLinkToNonexistentSpace()
testSpaceKeyLinkToUnpermittedSpace
public void testSpaceKeyLinkToUnpermittedSpace()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSpaceKeyLinkToNonexistentPageOnSpaceAsAdminUser
public void testSpaceKeyLinkToNonexistentPageOnSpaceAsAdminUser()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSpaceKeyLinkToNonexistentPageOnSpaceAsNormalUser
public void testSpaceKeyLinkToNonexistentPageOnSpaceAsNormalUser()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUserProfileLink
public void testUserProfileLink()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUserProfileLinkToNonexistentUser
public void testUserProfileLinkToNonexistentUser()
testUserProfileLinkWithUTF8Characters
public void testUserProfileLinkWithUTF8Characters()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBlogPostAttachmentLinks
public void testBlogPostAttachmentLinks()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUrlLinkWithNonHardcodedProtocol
public void testUrlLinkWithNonHardcodedProtocol()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAttachmentLinkInBlogPostToPage
public void testAttachmentLinkInBlogPostToPage()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAttachmentLinkInBlogPostToPageInDifferentSpace
public void testAttachmentLinkInBlogPostToPageInDifferentSpace()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLinksAfterMoveParentPage
public void testLinksAfterMoveParentPage()
throws java.lang.Exception
- Test links after move page
Scenario
Space 1: "Page in test space 1", "Parent", "Child" ("Child" page is child of "Parent" page)
Space 2: "Page in test space 2"
Each page has links to other pages
Move "Parent" page to "Space 2"
=> Check if "Parent" and "Child" are moved to "Space 2"
=> Check if 2 other pages are not moved
=> Check if all links in all pages are update correctly and convert to be relative links correctly
- Throws:
java.lang.Exception
testLinksInCommentAfterMoveParentPage
public void testLinksInCommentAfterMoveParentPage()
- Test links in comments after move page
Scenario
Space 1: "Page in test space 1", "Parent", "Child" ("Child" page is child of "Parent" page)
Space 2: "Page in test space 2"
Each page has a comment which has links to other pages
Move "Parent" page to "Space 2"
=> Check all links in all comments are update correctly and convert to be relative links correctly
- Throws:
java.lang.Exception
Copyright © 2003-2014 Atlassian. All Rights Reserved.