public class

TestDefaultReferralManager

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

Summary

Fields
protected ReferrerSettings referrerSettings
[Expand]
Inherited Fields
From class com.atlassian.confluence.ConfluenceTestCase
Public Constructors
TestDefaultReferralManager()
Public Methods
void setUp()
void tearDown()
void testExcludedReferrersAreNotAdded()
void testGetHotReferrers()
void testReferFromConfluence()
void testReferToContentWithNullParams()
After reordering null checks in referToContent, confirm that no null pointer exceptions are thrown for various combinations of null params.
void testReferToPage()
void testSaveTrackbackWithNonExistentEntity()
void testSaveTrackbackWithNullTrackback()
void testTrackbacksNotSavedWhenTrackbacksDisabled()
Protected Methods
ReferrerSettings getReferrerSettings()
[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

Fields

protected ReferrerSettings referrerSettings

Public Constructors

public TestDefaultReferralManager ()

Public Methods

public void setUp ()

Throws
Exception

public void tearDown ()

Throws
Exception

public void testExcludedReferrersAreNotAdded ()

public void testGetHotReferrers ()

public void testReferFromConfluence ()

public void testReferToContentWithNullParams ()

After reordering null checks in referToContent, confirm that no null pointer exceptions are thrown for various combinations of null params.

public void testReferToPage ()

Throws
Exception

public void testSaveTrackbackWithNonExistentEntity ()

public void testSaveTrackbackWithNullTrackback ()

public void testTrackbacksNotSavedWhenTrackbacksDisabled ()

Protected Methods

protected ReferrerSettings getReferrerSettings ()