public class

TestStorageLinkUnmarshaller

extends TestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.content.render.xhtml.storage.link.TestStorageLinkUnmarshaller

Summary

Public Constructors
TestStorageLinkUnmarshaller()
Public Methods
void testBasicLink()
void testHandles()
void testInsignificantWhiteSpaceIgnoredInLink()
void testLinkWithBody()
Assert that the body unmarshaller is called.
void testLinkWithNoResourceIdentifier()
CONF-23328 - ensure a link stored without a ResourceIdentifier can be unmarshalled
void testLinkWithResourceIdentifierInSameSpaceAsContext()
CONF-23328 - a link with an RI in the same space as the context should not have the space key included
void testLinkWithResourceIdentifierMatchingContext()
CONF-23328 - a link with an RI matching the context CEO should be created as relative (with no RI)
void testLinkWithResourceIdentifierWithNoSpaceKeyMatchingContext()
CONF-23328 - a link with an RI missing a space key but otherwise matching the context should be created as relative (with no RI)
void testNoAnchorOrTooltipOrBody()
void testOnlyFirstResourceIdentifierUsed()
CONF-23809 multiple RI's is an error but handle it by only using the first found
void testSpaceLinkWithImageBody()
Protected Methods
void setUp()
void tearDown()
[Expand]
Inherited Methods
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public TestStorageLinkUnmarshaller ()

Public Methods

public void testBasicLink ()

Throws
Exception

public void testHandles ()

Throws
Exception

public void testInsignificantWhiteSpaceIgnoredInLink ()

Throws
Exception

public void testLinkWithBody ()

Assert that the body unmarshaller is called.

Throws
Exception

public void testLinkWithNoResourceIdentifier ()

CONF-23328 - ensure a link stored without a ResourceIdentifier can be unmarshalled

Throws
Exception

public void testLinkWithResourceIdentifierInSameSpaceAsContext ()

CONF-23328 - a link with an RI in the same space as the context should not have the space key included

Throws
Exception

public void testLinkWithResourceIdentifierMatchingContext ()

CONF-23328 - a link with an RI matching the context CEO should be created as relative (with no RI)

Throws
Exception

public void testLinkWithResourceIdentifierWithNoSpaceKeyMatchingContext ()

CONF-23328 - a link with an RI missing a space key but otherwise matching the context should be created as relative (with no RI)

Throws
Exception

public void testNoAnchorOrTooltipOrBody ()

Throws
Exception

public void testOnlyFirstResourceIdentifierUsed ()

CONF-23809 multiple RI's is an error but handle it by only using the first found

Throws
Exception

public void testSpaceLinkWithImageBody ()

Throws
Exception

Protected Methods

protected void setUp ()

Throws
Exception

protected void tearDown ()

Throws
Exception