public class JiraTestUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TESTS_BASE |
Constructor and Description |
---|
JiraTestUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
loginUser(com.atlassian.crowd.embedded.api.User user)
This method will login a user to the current webwork action context.
|
static void |
logoutUser(com.atlassian.crowd.embedded.api.User user)
This method will logout a user to the current webwork action context.
|
static void |
resetRequestAndResponse() |
static com.mockobjects.servlet.MockHttpServletResponse |
setupExpectedInternalRedirect(String url) |
static com.mockobjects.servlet.MockHttpServletResponse |
setupExpectedRedirect(String url) |
static com.mockobjects.servlet.MockHttpServletRequest |
setupGetContextPath(String contextPath) |
static void |
setupMockSequenceUtil() |
public static final String TESTS_BASE
public static void loginUser(com.atlassian.crowd.embedded.api.User user)
user
- The user to login, or null if you want to behave anonymously.public static void logoutUser(com.atlassian.crowd.embedded.api.User user)
user
- The user to logoutpublic static void resetRequestAndResponse()
public static com.mockobjects.servlet.MockHttpServletResponse setupExpectedRedirect(String url) throws IOException
IOException
public static com.mockobjects.servlet.MockHttpServletResponse setupExpectedInternalRedirect(String url) throws IOException
IOException
public static void setupMockSequenceUtil()
public static com.mockobjects.servlet.MockHttpServletRequest setupGetContextPath(String contextPath)
Copyright © 2002-2015 Atlassian. All Rights Reserved.