public class

TestXhtmlLinksUpdater

extends AbstractXmlTestCase
java.lang.Object
   ↳ XMLTestCase
     ↳ com.atlassian.confluence.content.render.xhtml.AbstractXmlTestCase
       ↳ com.atlassian.confluence.content.render.xhtml.links.TestXhtmlLinksUpdater

Summary

Public Constructors
TestXhtmlLinksUpdater()
Public Methods
void testAttachmentLinksAreUpdated()
void testAttachmentLinksWithFilenamesOnlyRemainIntact()
void testBlogPostLinksAreUpdated()
void testConvertAttachmentSameSpaceReferencesToBeRelative()
void testConvertAttachmentSelfReferencesToBeRelativeForBlog()
void testConvertAttachmentSelfReferencesToBeRelativeForDifferentBlogDate()
void testConvertResourceIdentifierAbsoluteSelfReferenceToBeRelative()
CONF-23328 A link's most 'relative' state is now to have no ResourceIdentifier
void testConvertResourceIdentifierAbsoluteSelfReferenceToBeRelativeForLinkWithBody()
CONF-23328 A link's most 'relative' state is now to have no ResourceIdentifier
void testConvertResourceIdentifierAbsoluteSelfReferenceToBeRelativeWithUnexpectedContentInsideRi()
void testConvertResourceIdentifierSelfReferenceWithoutSpaceKeyToBeRelative()
CONF-23328 A link's most 'relative' state is now to have no ResourceIdentifier
void testConvertResourceIdentifierToSameSpaceToBeRelative()
void testConvertSelfReferencesIgnoresNonMatches()
void testExpandAttachmentWhichDoesntNeedExpanded()
void testExpandLeavesAttachmentLinksAlone()
CONF-23809
void testExpandLeavesContentEntityLinksAlone()
CONF-23809
void testExpandLeavesShortcutLinksAlone()
CONF-23809
void testExpandLeavesSpaceLinksAlone()
CONF-23809
void testExpandLeavesUrlLinksAlone()
CONF-23809 This scenario should never actually happen since URL links only exist during migration.
void testExpandLeavesUserLinksAlone()
CONF-23809
void testExpandRelativeAttachmentClosedWithoutResourceIdentifierOnBlogPost()
void testExpandRelativeAttachmentClosedWithoutResourceIdentifierOnPage()
void testExpandRelativeAttachmentWithResourceIdentifier()
void testExpandRelativeAttachmentWithoutResourceIdentifier()
void testExpandRelativeLinkWithIncompleteResourceIdentifier()
void testExpandRelativeSelfLink()
CONF-23328 A relative self link will have no ResourceIdentifier at all.
void testExpandRelativeSelfLinkWithNoBody()
CONF-23328 A relative self link will have no ResourceIdentifier at all.
void testHandleEmptyString()
void testLinkWithEmbeddedAttachment()
void testNonMatchingPageLinksAreLeftIntactAfterUpdate()
void testPageLinksAreUpdated()
void testPageResourceIdentifierWithoutSpaceKeyIsNotContracted()
CONF-23328 A link's most 'relative' state is now to have no ResourceIdentifier.
void testRelativeLinksNotChanged()
void testUpdateAttachmentFromBlogToBlog()
For CONFDEV-1469.
void testUpdateAttachmentFromBlogToPage()
For CONFDEV-1469.
void testUpdateAttachmentFromPageToBlog()
For CONFDEV-1469.
void testUpdateAttachmentReferencesInContentWithMultipleMatches()
void testUpdateAttachmentReferencesInContentWithNewFilename()
void testUpdateAttachmentReferencesInContentWithNewPageTitle()
void testUpdateAttachmentReferencesInContentWithNewSpacekey()
void testUpdateAttachmentReferencesInContentWithNonMatchingFilename()
void testUpdateAttachmentReferencesInContentWithNonMatchingSpaceKey()
void testUpdateAttachmentReferencesInContentWithNonMatchingTitle()
Protected Methods
void setUp()
void tearDown()
[Expand]
Inherited Methods
From class com.atlassian.confluence.content.render.xhtml.AbstractXmlTestCase
From class java.lang.Object

Public Constructors

public TestXhtmlLinksUpdater ()

Public Methods

public void testAttachmentLinksAreUpdated ()

Throws
Exception

public void testAttachmentLinksWithFilenamesOnlyRemainIntact ()

Throws
Exception

public void testBlogPostLinksAreUpdated ()

Throws
Exception

public void testConvertAttachmentSameSpaceReferencesToBeRelative ()

Throws
Exception

public void testConvertAttachmentSelfReferencesToBeRelativeForBlog ()

Throws
Exception

public void testConvertAttachmentSelfReferencesToBeRelativeForDifferentBlogDate ()

Throws
Exception

public void testConvertResourceIdentifierAbsoluteSelfReferenceToBeRelative ()

CONF-23328 A link's most 'relative' state is now to have no ResourceIdentifier

Throws
Exception

public void testConvertResourceIdentifierAbsoluteSelfReferenceToBeRelativeForLinkWithBody ()

CONF-23328 A link's most 'relative' state is now to have no ResourceIdentifier

Throws
Exception

public void testConvertResourceIdentifierAbsoluteSelfReferenceToBeRelativeWithUnexpectedContentInsideRi ()

Throws
Exception

public void testConvertResourceIdentifierSelfReferenceWithoutSpaceKeyToBeRelative ()

CONF-23328 A link's most 'relative' state is now to have no ResourceIdentifier

Throws
Exception

public void testConvertResourceIdentifierToSameSpaceToBeRelative ()

Throws
Exception

public void testConvertSelfReferencesIgnoresNonMatches ()

Throws
Exception

public void testExpandAttachmentWhichDoesntNeedExpanded ()

Throws
Exception

public void testExpandLeavesAttachmentLinksAlone ()

CONF-23809

Throws
Exception

public void testExpandLeavesContentEntityLinksAlone ()

CONF-23809

Throws
Exception

public void testExpandLeavesShortcutLinksAlone ()

CONF-23809

Throws
Exception

public void testExpandLeavesSpaceLinksAlone ()

CONF-23809

Throws
Exception

public void testExpandLeavesUrlLinksAlone ()

CONF-23809 This scenario should never actually happen since URL links only exist during migration.

Throws
Exception

public void testExpandLeavesUserLinksAlone ()

CONF-23809

Throws
Exception

public void testExpandRelativeAttachmentClosedWithoutResourceIdentifierOnBlogPost ()

Throws
Exception

public void testExpandRelativeAttachmentClosedWithoutResourceIdentifierOnPage ()

Throws
Exception

public void testExpandRelativeAttachmentWithResourceIdentifier ()

Throws
Exception

public void testExpandRelativeAttachmentWithoutResourceIdentifier ()

Throws
Exception

public void testExpandRelativeLinkWithIncompleteResourceIdentifier ()

Throws
Exception

public void testExpandRelativeSelfLink ()

CONF-23328 A relative self link will have no ResourceIdentifier at all. Ensure that one is created when expanded.

Throws
Exception

public void testExpandRelativeSelfLinkWithNoBody ()

CONF-23328 A relative self link will have no ResourceIdentifier at all. Ensure that one is created when expanded.

Throws
Exception

public void testHandleEmptyString ()

Throws
Exception

public void testLinkWithEmbeddedAttachment ()

Throws
Exception

public void testNonMatchingPageLinksAreLeftIntactAfterUpdate ()

Throws
Exception

public void testPageLinksAreUpdated ()

Throws
Exception

public void testPageResourceIdentifierWithoutSpaceKeyIsNotContracted ()

CONF-23328 A link's most 'relative' state is now to have no ResourceIdentifier. Ensure that a link without a space key but to different content in same space is not wrongly contracted.

Throws
Exception

public void testRelativeLinksNotChanged ()

Throws
Exception

public void testUpdateAttachmentFromBlogToBlog ()

For CONFDEV-1469. Test when an attachment reference is to be updated because an attachment moved from a blog to a different blog.

Throws
Exception

public void testUpdateAttachmentFromBlogToPage ()

For CONFDEV-1469. Test when an attachment reference is to be updated because an attachment moved from a blog to a page.

Throws
Exception

public void testUpdateAttachmentFromPageToBlog ()

For CONFDEV-1469. Test when an attachment reference is to be updated because an attachment moved from a page to a blog.

Throws
Exception

public void testUpdateAttachmentReferencesInContentWithMultipleMatches ()

Throws
Exception

public void testUpdateAttachmentReferencesInContentWithNewFilename ()

Throws
Exception

public void testUpdateAttachmentReferencesInContentWithNewPageTitle ()

Throws
Exception

public void testUpdateAttachmentReferencesInContentWithNewSpacekey ()

Throws
Exception

public void testUpdateAttachmentReferencesInContentWithNonMatchingFilename ()

Throws
Exception

public void testUpdateAttachmentReferencesInContentWithNonMatchingSpaceKey ()

Throws
Exception

public void testUpdateAttachmentReferencesInContentWithNonMatchingTitle ()

Throws
Exception

Protected Methods

protected void setUp ()

Throws
Exception

protected void tearDown ()

Throws
Exception