public class

TestConfluenceLinkResolver

extends ConfluenceTestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.ConfluenceTestCase
         ↳ com.atlassian.confluence.links.TestConfluenceLinkResolver

Summary

[Expand]
Inherited Fields
From class com.atlassian.confluence.ConfluenceTestCase
Public Constructors
TestConfluenceLinkResolver()
Public Methods
void setUp()
void tearDown()
void testAnchorLink()
void testAnchorWithHyphen()
void testAttachment()
void testAttachmentCurrentPage()
void testAttachmentLinkCreatedOnDraft()
void testAttachmentNoPagePermission()
void testAttachmentNoPerms()
void testAttachmentUnresolved()
void testBadUsernameLink()
void testBlogPostAnchorLink()
void testBlogPostAttachmentLink()
void testBlogPostLink()
void testBlogPostLinkWithSpace()
void testBlogPostLinkWithoutViewPermission()
void testById()
void testByIdBroken()
void testByIdNotFound()
void testByIdNotPermitted()
void testCreateFileLinks()
void testCreateLink()
void testCreateLinkForeignChar()
void testCreateLinkHttps()
void testCreateLinkNoSuchSpace()
void testCreateLinkTcp()
void testCreateLinkToLeFrancaisUrl()
void testCreateLinkWithoutCreatePermission()
void testCreateMailtoLink()
void testEmptyLink()
void testExtractLinkTextList()
void testHighBitUsernameLink()
void testImageInLinkBody()
void testLinkMissingBody()
void testMailtoLinkBody()
void testNonexistentBlogPostLink()
void testPageLink()
void testPageLinkNoSpaceEmptyContext()
void testPageLinkWithExclamationMarks()
void testPageLinkWithSpace()
void testPageLinkWithoutViewPermission()
void testPersonalSpaceLink()
void testServerRelativeUrlLink()
void testShortcut()
void testShortcutWithAtSign()
void testShortcutWithDefaultAlias()
void testShortcutsWithReplacementToken()
void testSingleQuoteIsDecoded()
Currently allow escape filter to escape single quotes inside pages links (too costly to check for dips with inside page links) Just decode them when rendering the body of the page link
void testSiteRelativeUrlLink()
void testSpaceLink()
void testSpaceLinkNoAccess()
void testTimeBlogView()
void testTimeBlogViewNoPermissions()
void testUncFilePath()
void testUrlLink()
void testUrlLinkDoesntPrematurelyEscape()
void testUrlLinkUnknownScheme()
void testUrlLinkWithSillyPipes()
void testUrlPrefixes()
void testUsernameLink()
void testUsernameLinkContainingAt()
[Expand]
Inherited Methods
From class com.atlassian.confluence.ConfluenceTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public TestConfluenceLinkResolver ()

Public Methods

public void setUp ()

Throws
Exception

public void tearDown ()

Throws
Exception

public void testAnchorLink ()

public void testAnchorWithHyphen ()

public void testAttachment ()

public void testAttachmentCurrentPage ()

public void testAttachmentLinkCreatedOnDraft ()

public void testAttachmentNoPagePermission ()

public void testAttachmentNoPerms ()

public void testAttachmentUnresolved ()

public void testBadUsernameLink ()

public void testBlogPostAnchorLink ()

public void testBlogPostAttachmentLink ()

public void testBlogPostLink ()

public void testBlogPostLinkWithSpace ()

public void testBlogPostLinkWithoutViewPermission ()

public void testById ()

public void testByIdBroken ()

public void testByIdNotFound ()

public void testByIdNotPermitted ()

public void testCreateFileLinks ()

Throws
Exception

public void testCreateLink ()

public void testCreateLinkForeignChar ()

public void testCreateLinkHttps ()

Throws
Exception

public void testCreateLinkNoSuchSpace ()

public void testCreateLinkTcp ()

Throws
Exception

public void testCreateLinkToLeFrancaisUrl ()

Throws
Exception

public void testCreateLinkWithoutCreatePermission ()

public void testCreateMailtoLink ()

Throws
Exception

public void testEmptyLink ()

public void testExtractLinkTextList ()

public void testHighBitUsernameLink ()

Throws
Exception

public void testImageInLinkBody ()

public void testLinkMissingBody ()

Throws
Exception

public void testMailtoLinkBody ()

public void testNonexistentBlogPostLink ()

public void testPageLink ()

public void testPageLinkNoSpaceEmptyContext ()

public void testPageLinkWithExclamationMarks ()

public void testPageLinkWithSpace ()

public void testPageLinkWithoutViewPermission ()

public void testPersonalSpaceLink ()

public void testServerRelativeUrlLink ()

public void testShortcut ()

public void testShortcutWithAtSign ()

public void testShortcutWithDefaultAlias ()

public void testShortcutsWithReplacementToken ()

public void testSingleQuoteIsDecoded ()

Currently allow escape filter to escape single quotes inside pages links (too costly to check for dips with inside page links) Just decode them when rendering the body of the page link

public void testSiteRelativeUrlLink ()

public void testSpaceLink ()

public void testSpaceLinkNoAccess ()

public void testTimeBlogView ()

public void testTimeBlogViewNoPermissions ()

public void testUncFilePath ()

public void testUrlLink ()

public void testUrlLinkDoesntPrematurelyEscape ()

public void testUrlLinkUnknownScheme ()

public void testUrlLinkWithSillyPipes ()

public void testUrlPrefixes ()

public void testUsernameLink ()

public void testUsernameLinkContainingAt ()