Package com.atlassian.jira
Class JiraTestUtil
java.lang.Object
com.atlassian.jira.JiraTestUtil
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidloginUser(ApplicationUser user) This method will login a user to the current webwork action context.static voidlogoutUser(ApplicationUser user) This method will logout a user to the current webwork action context.static JiraTestUtil.DeferredVerification<jakarta.servlet.http.HttpServletResponse> static voidstatic JiraTestUtil.DeferredVerification<jakarta.servlet.http.HttpServletResponse> static jakarta.servlet.http.HttpServletRequestsetupGetContextPath(String contextPath) static void
-
Field Details
-
TESTS_BASE
- See Also:
-
-
Constructor Details
-
JiraTestUtil
public JiraTestUtil()
-
-
Method Details
-
loginUser
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.
-
logoutUser
This method will logout a user to the current webwork action context.- Parameters:
user- The user to logout
-
resetRequestAndResponse
public static void resetRequestAndResponse() -
mockExpectedRedirect
public static JiraTestUtil.DeferredVerification<jakarta.servlet.http.HttpServletResponse> mockExpectedRedirect(String url) -
setupExpectedInternalRedirect
public static JiraTestUtil.DeferredVerification<jakarta.servlet.http.HttpServletResponse> setupExpectedInternalRedirect(String url) throws IOException - Throws:
IOException
-
setupMockSequenceUtil
public static void setupMockSequenceUtil() -
setupGetContextPath
-