public abstract class

ConfluenceTestCase

extends TestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.ConfluenceTestCase
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

if you need to configure a referrer setting use: getReferrerSetting.setXXX(...)

Remember to first associate the mockSettingsManager with the object that you are testing

Summary

Fields
protected static String BLOGPOST_CONTENT_PREFIX
protected static String BLOGPOST_TITLE_PREFIX
protected static String COMMENT_CONTENT_PREFIX
protected static String MAIL_CONTENT_PREFIX
protected static String MAIL_TITLE_PREFIX
protected static String PAGE_CONTENT_PREFIX
protected static String PAGE_TITLE_PREFIX
protected static String PERSONAL_INFORMATION_CONTENT_PREFIX
protected static String SPACE_DESC_PREFIX
protected static String SPACE_KEY_PREFIX
protected static String SPACE_TITLE_PREFIX
protected ConfigurableListableBeanFactory beanFactory
Public Constructors
ConfluenceTestCase()
ConfluenceTestCase(String name)
Protected Methods
final void checkFieldContainError(ActionSupport action, String errorKeys, String fieldName)
final void checkFieldContainError(ActionSupport action, String[] errorKeys, String fieldName)
final BlogPost createNewBlogPost(int arg)
final BlogPost createNewBlogPostInSpace(int arg, Space space)
final Comment createNewComment(int arg, Page page)
final Mail createNewMail(int arg, Space space)
final Page createNewPage(int arg)
final Page createNewPageInSpace(int arg, Space space)
final Space createNewSpace(int arg)
PersonalInformation createPersonalInformation(int arg)
SpacePermission makeUsePermission(String userName, String groupName)
final void pause(long millis)
void registerAdditionalSingletons(ConfigurableListableBeanFactory beanFactory)
Allows tests to add additional mock dependencies to the test spring context
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

Fields

protected static String BLOGPOST_CONTENT_PREFIX

protected static String BLOGPOST_TITLE_PREFIX

protected static String COMMENT_CONTENT_PREFIX

protected static String MAIL_CONTENT_PREFIX

protected static String MAIL_TITLE_PREFIX

protected static String PAGE_CONTENT_PREFIX

protected static String PAGE_TITLE_PREFIX

protected static String PERSONAL_INFORMATION_CONTENT_PREFIX

protected static String SPACE_DESC_PREFIX

protected static String SPACE_KEY_PREFIX

protected static String SPACE_TITLE_PREFIX

protected ConfigurableListableBeanFactory beanFactory

Public Constructors

public ConfluenceTestCase ()

public ConfluenceTestCase (String name)

Protected Methods

protected final void checkFieldContainError (ActionSupport action, String errorKeys, String fieldName)

protected final void checkFieldContainError (ActionSupport action, String[] errorKeys, String fieldName)

protected final BlogPost createNewBlogPost (int arg)

protected final BlogPost createNewBlogPostInSpace (int arg, Space space)

protected final Comment createNewComment (int arg, Page page)

protected final Mail createNewMail (int arg, Space space)

protected final Page createNewPage (int arg)

protected final Page createNewPageInSpace (int arg, Space space)

protected final Space createNewSpace (int arg)

protected PersonalInformation createPersonalInformation (int arg)

protected SpacePermission makeUsePermission (String userName, String groupName)

protected final void pause (long millis)

protected void registerAdditionalSingletons (ConfigurableListableBeanFactory beanFactory)

Allows tests to add additional mock dependencies to the test spring context

protected void setUp ()

Throws
Exception

protected void tearDown ()

Throws
Exception