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(ApplicationUser user)
This method will login a user to the current webwork action context.
|
static void |
logoutUser(ApplicationUser user)
This method will logout a user to the current webwork action context.
|
static javax.servlet.http.HttpServletResponse |
mockExpectedRedirect(String url) |
static void |
resetRequestAndResponse() |
static com.mockobjects.servlet.MockHttpServletResponse |
setupExpectedInternalRedirect(String url) |
static com.mockobjects.servlet.MockHttpServletResponse |
setupExpectedRedirect(String url)
Deprecated.
use #mockExpectedRedirect(String)
|
static com.mockobjects.servlet.MockHttpServletRequest |
setupGetContextPath(String contextPath) |
static void |
setupMockSequenceUtil() |
public static final String TESTS_BASE
public static void loginUser(ApplicationUser user)
user
- The user to login, or null if you want to behave anonymously.public static void logoutUser(ApplicationUser user)
user
- The user to logoutpublic static void resetRequestAndResponse()
@Deprecated public static com.mockobjects.servlet.MockHttpServletResponse setupExpectedRedirect(String url) throws IOException
url
- expected urlIOException
- when error occurspublic static javax.servlet.http.HttpServletResponse mockExpectedRedirect(String url)
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-2017 Atlassian. All Rights Reserved.