com.atlassian.jira
Class JiraTestUtil

java.lang.Object
  extended by com.atlassian.jira.JiraTestUtil

public class JiraTestUtil
extends Object


Field Summary
static String TESTS_BASE
           
 
Constructor Summary
JiraTestUtil()
           
 
Method Summary
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 org.ofbiz.core.entity.GenericValue setupAndAssociateDefaultPermissionScheme(org.ofbiz.core.entity.GenericValue project)
           
static org.ofbiz.core.entity.GenericValue setupAndAssociateDefaultPermissionSchemeWithPermission(org.ofbiz.core.entity.GenericValue project, int permType)
           
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TESTS_BASE

public static final String TESTS_BASE
See Also:
Constant Field Values
Constructor Detail

JiraTestUtil

public JiraTestUtil()
Method Detail

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-2013 Atlassian. All Rights Reserved.