public class

JiraTestUtil

extends Object
java.lang.Object
   ↳ com.atlassian.jira.JiraTestUtil

Summary

Constants
String TESTS_BASE
Public Constructors
JiraTestUtil()
Public Methods
static void loginUser(User user)
This method will login a user to the current webwork action context.
static void logoutUser(User user)
This method will logout a user to the current webwork action context.
static void resetRequestAndResponse()
static GenericValue setupAndAssociateDefaultPermissionScheme(GenericValue project)
static GenericValue setupAndAssociateDefaultPermissionSchemeWithPermission(GenericValue project, int permType)
static MockHttpServletResponse setupExpectedInternalRedirect(String url)
static MockHttpServletResponse setupExpectedRedirect(String url)
static MockHttpServletRequest setupGetContextPath(String contextPath)
static void setupMockSequenceUtil()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String TESTS_BASE

Constant Value: "com/atlassian/jira"

Public Constructors

public JiraTestUtil ()

Public Methods

public static void loginUser (User user)

This method will login a user to the current webwork action context.

Parameters
user The user to login, or null if you want to behave anonymously.

public static void logoutUser (User user)

This method will logout a user to the current webwork action context.

Parameters
user The user to logout

public static void resetRequestAndResponse ()

public static GenericValue setupAndAssociateDefaultPermissionScheme (GenericValue project)

Throws
GenericEntityException

public static GenericValue setupAndAssociateDefaultPermissionSchemeWithPermission (GenericValue project, int permType)

Throws
CreateException
GenericEntityException

public static MockHttpServletResponse setupExpectedInternalRedirect (String url)

Throws
IOException

public static MockHttpServletResponse setupExpectedRedirect (String url)

Throws
IOException

public static MockHttpServletRequest setupGetContextPath (String contextPath)

public static void setupMockSequenceUtil ()