MockJiraWorkflow
, or Mockito mocks in your tests. Unless
you really really think you need to load your workflow from XML file. In which case still use the above alternatives.@Deprecated public class MockXmlLoadableJiraWorkflow extends AbstractJiraWorkflow
workflowManager
ACTION_ORIGIN_STEP_ID, ACTION_SCREEN_ATTRIBUTE, ACTION_TYPE_ALL, ACTION_TYPE_COMMON, ACTION_TYPE_GLOBAL, ACTION_TYPE_INITIAL, ACTION_TYPE_ORDINARY, DEFAULT_WORKFLOW_NAME, DRAFT, JIRA_META_ATTRIBUTE_ALLOWED_LIST, JIRA_META_ATTRIBUTE_EDIT_ALLOWED, JIRA_META_ATTRIBUTE_EXCLUDE_RESOLUTION, JIRA_META_ATTRIBUTE_I18N, JIRA_META_ATTRIBUTE_I18N_SUBMIT, JIRA_META_ATTRIBUTE_INCLUDE_RESOLUTION, JIRA_META_ATTRIBUTE_KEY_PREFIX, JIRA_META_ATTRIBUTE_PERMISSION, JIRA_META_UPDATE_AUTHOR_KEY, JIRA_META_UPDATE_AUTHOR_NAME, JIRA_META_UPDATED_DATE, LIVE, STEP_STATUS_KEY, WORKFLOW_DESCRIPTION_ATTRIBUTE, WORKFLOW_VIEW_FIELDLAYOUT_KEY_ATTRIBUTE
Constructor and Description |
---|
MockXmlLoadableJiraWorkflow(WorkflowManager workflowManager,
String filename)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static com.opensymphony.workflow.loader.WorkflowDescriptor |
getJiraWorkflow(String filename)
Deprecated.
|
String |
getName()
Deprecated.
|
boolean |
isDraftWorkflow()
Deprecated.
Determines if the workflow is an draft edit of an active workflow.
|
void |
reset()
Deprecated.
|
void |
setName(String name)
Deprecated.
|
compareTo, equals, getActionsByName, getActionsForScreen, getActionsWithResult, getActionType, getAllActions, getDescription, getDescriptor, getDisplayName, getLinkedStatus, getLinkedStatuses, getLinkedStatusId, getLinkedStatusIds, getLinkedStatusObject, getLinkedStatusObjects, getLinkedStep, getLinkedStep, getMode, getNextActionId, getPostFunctionsForTransition, getStepsForTransition, getStepsWithAction, getUpdateAuthor, getUpdateAuthorName, getUpdatedDate, hasDraftWorkflow, hashCode, isActive, isCommonAction, isDefault, isEditable, isGlobalAction, isInitialAction, isOrdinaryAction, isSystemWorkflow, removeStep
public MockXmlLoadableJiraWorkflow(WorkflowManager workflowManager, String filename) throws com.opensymphony.workflow.InvalidWorkflowDescriptorException, IOException, SAXException
com.opensymphony.workflow.InvalidWorkflowDescriptorException
IOException
SAXException
public String getName()
getName
in interface JiraWorkflow
getName
in class AbstractJiraWorkflow
public void setName(String name)
public void reset()
reset
in interface JiraWorkflow
reset
in class AbstractJiraWorkflow
public boolean isDraftWorkflow()
JiraWorkflow
true
if an draft workflow, false otherwise.public static com.opensymphony.workflow.loader.WorkflowDescriptor getJiraWorkflow(String filename) throws com.opensymphony.workflow.InvalidWorkflowDescriptorException, IOException, SAXException
com.opensymphony.workflow.InvalidWorkflowDescriptorException
IOException
SAXException
Copyright © 2002-2023 Atlassian. All Rights Reserved.