com.atlassian.jira
Class JiraTestUtil
java.lang.Object
com.atlassian.jira.JiraTestUtil
public class JiraTestUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TESTS_BASE
public static final String TESTS_BASE
- See Also:
- Constant Field Values
JiraTestUtil
public JiraTestUtil()
loginUser
public static void loginUser(com.atlassian.crowd.embedded.api.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.
logoutUser
public static void logoutUser(com.atlassian.crowd.embedded.api.User user)
- This method will logout a user to the current webwork action context.
- Parameters:
user
- The user to logout
resetRequestAndResponse
public static void resetRequestAndResponse()
setupExpectedRedirect
public static com.mockobjects.servlet.MockHttpServletResponse setupExpectedRedirect(String url)
throws IOException
- Throws:
IOException
setupExpectedInternalRedirect
public static com.mockobjects.servlet.MockHttpServletResponse setupExpectedInternalRedirect(String url)
throws IOException
- Throws:
IOException
setupMockSequenceUtil
public static void setupMockSequenceUtil()
setupAndAssociateDefaultPermissionSchemeWithPermission
public static org.ofbiz.core.entity.GenericValue setupAndAssociateDefaultPermissionSchemeWithPermission(org.ofbiz.core.entity.GenericValue project,
int permType)
throws org.ofbiz.core.entity.GenericEntityException,
CreateException
- Throws:
org.ofbiz.core.entity.GenericEntityException
CreateException
setupAndAssociateDefaultPermissionScheme
public static org.ofbiz.core.entity.GenericValue setupAndAssociateDefaultPermissionScheme(org.ofbiz.core.entity.GenericValue project)
throws org.ofbiz.core.entity.GenericEntityException
- Throws:
org.ofbiz.core.entity.GenericEntityException
setupGetContextPath
public static com.mockobjects.servlet.MockHttpServletRequest setupGetContextPath(String contextPath)
Copyright © 2002-2014 Atlassian. All Rights Reserved.