public abstract class

AbstractXWorkTest

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

Summary

Fields
protected CrowdService crowdService
protected LocaleManager dummyLocaleManager
protected HttpServletRequest mockHttpServletRequest
protected HttpServletResponse mockHttpServletResponse
protected PermissionManager mockPermissionManager
protected ServletConfig mockServletConfig
protected SpacePermissionManager mockSpacePermissionManager
protected UserAccessor userAccessor
[Expand]
Inherited Fields
From class com.atlassian.confluence.ConfluenceTestCase
Public Constructors
AbstractXWorkTest()
AbstractXWorkTest(Class<?> actionClass)
Public Methods
void setUp()
Protected Methods
void checkFieldContainError(String[] error_keys, String field_name)
void checkFieldContainError(String error_keys, String field_name)
CustomConfigurationProvider createConfigurationProvider(Class<?> clazz, String method, String alias)
Action getAction()
ActionProxy getActionProxy()
ConfluenceActionSupport getConfluenceAction()
List<String> getPermissionTypes()
String getRemoteUserName()
Map<StringObject> prepareExtraContext(String alias, String method)
void setUp(Class<?> clazz, String alias, String method)
Use this method if you want to setup this test with a specific action class and method.
void tearDown()
[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 CrowdService crowdService

protected LocaleManager dummyLocaleManager

protected HttpServletRequest mockHttpServletRequest

protected HttpServletResponse mockHttpServletResponse

protected PermissionManager mockPermissionManager

protected ServletConfig mockServletConfig

protected SpacePermissionManager mockSpacePermissionManager

protected UserAccessor userAccessor

Public Constructors

public AbstractXWorkTest ()

public AbstractXWorkTest (Class<?> actionClass)

Public Methods

public void setUp ()

Throws
Exception

Protected Methods

protected void checkFieldContainError (String[] error_keys, String field_name)

protected void checkFieldContainError (String error_keys, String field_name)

protected CustomConfigurationProvider createConfigurationProvider (Class<?> clazz, String method, String alias)

protected Action getAction ()

protected ActionProxy getActionProxy ()

protected ConfluenceActionSupport getConfluenceAction ()

protected List<String> getPermissionTypes ()

protected String getRemoteUserName ()

protected Map<StringObject> prepareExtraContext (String alias, String method)

protected void setUp (Class<?> clazz, String alias, String method)

Use this method if you want to setup this test with a specific action class and method.

This will throw out all previous configuration done by the normal setUp() method.
Throws
Exception

protected void tearDown ()

Throws
Exception