public class

TestDefaultSettingsManager

extends ConfluenceTestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.ConfluenceTestCase
         ↳ com.atlassian.confluence.setup.settings.TestDefaultSettingsManager

Class Overview

Most of these tests are for the edge-cases described in CONF-9959 and CONF-15646. If Confluence is being upgraded and Bandana is not available (You're upgrading from a pre-database-bandana installation) then we get special "non-writeable" settings objects to prevent upgrade tasks accidentally clobbering other settings. This isn't a perfect solution - whatever change the upgrade task was making will be lost - but it's better than failing the upgrade entirely.

Summary

[Expand]
Inherited Fields
From class com.atlassian.confluence.ConfluenceTestCase
Public Constructors
TestDefaultSettingsManager()
Public Methods
void testGetGlobalSettings()
void testGetGlobalSettingsWithBandanaBroken()
void testGetSpaceSettings()
void testGetSpaceSettingsWithBandanaBroken()
void testSaveGlobalSettings()
void testSaveSpaceSettings()
Protected Methods
void setUp()
[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 TestDefaultSettingsManager ()

Public Methods

public void testGetGlobalSettings ()

public void testGetGlobalSettingsWithBandanaBroken ()

public void testGetSpaceSettings ()

public void testGetSpaceSettingsWithBandanaBroken ()

public void testSaveGlobalSettings ()

public void testSaveSpaceSettings ()

Protected Methods

protected void setUp ()

Throws
Exception