com.atlassian.confluence
Class LinkTypeAcceptanceTest

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

public class LinkTypeAcceptanceTest
extends AbstractConfluenceAcceptanceTest


Field Summary
 
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
 
Constructor Summary
LinkTypeAcceptanceTest()
           
 
Method Summary
 void setUp()
          Default setUp method.
 void testAttachmentLink()
           
 void testAttachmentLinkInBlogPost()
           
 void testAttachmentLinkInBlogPostToPage()
           
 void testAttachmentLinkInBlogPostToPageInDifferentSpace()
           
 void testAttachmentLinkInComment()
           
 void testAttachmentLinkOnCurrentPage()
           
 void testAttachmentLinkToNonexistentAttachment()
           
 void testAttachmentLinkToUnpermittedPage()
           
 void testAttachmentLinkToUnpermittedSpace()
           
 void testBlogPostAttachmentLinks()
           
 void testBlogPostLink()
           
 void testBlogPostLinkToNonexistentPost()
           
 void testBlogPostLinkToUnpermittedSpace()
           
 void testExternalLink()
           
 void testExternalLinkToNonexistentDomain()
           
 void testFileShortcutLink()
           
 void testLinkToPageBecomesRelativeAfterPageMove()
           
 void testLinkToPageInSameSpaceStaysRelativeAfterRename()
           
 void testNewShortcutLink()
           
 void testPageAnchorLink()
           
 void testPageAnchorLinkOnCurrentPage()
           
 void testPageAnchorLinkToNonexistentAnchor()
           
 void testPageLink()
           
 void testPageLinkToNonexistentSpaceAsAdminUser()
           
 void testPageLinkToUnpermittedSpace()
           
 void testPageLinkWithCustomTitle()
           
 void testPageLinkWithUppercaseOmega()
          test for CONF-7815
 void testShortcutLink()
           
 void testShortcutLinksEncoding()
           
 void testShortcutLinkToNonexistentShortcut()
           
 void testSpaceKeyLink()
           
 void testSpaceKeyLinkToNonexistentPageOnSpaceAsAdminUser()
           
 void testSpaceKeyLinkToNonexistentPageOnSpaceAsNormalUser()
           
 void testSpaceKeyLinkToNonexistentSpace()
           
 void testSpaceKeyLinkToPageOnNonexistentSpace()
           
 void testSpaceKeyLinkToUnpermittedSpace()
           
 void testUrlLinkWithNonHardcodedProtocol()
           
 void testUserProfileLink()
           
 void testUserProfileLinkToNonexistentUser()
           
 void testUserProfileLinkWithUTF8Characters()
           
 
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
 

Constructor Detail

LinkTypeAcceptanceTest

public LinkTypeAcceptanceTest()
Method Detail

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.