com.atlassian.jira.mock.workflow
Class MockXmlLoadableJiraWorkflow

java.lang.Object
  extended by com.atlassian.jira.workflow.AbstractJiraWorkflow
      extended by com.atlassian.jira.mock.workflow.MockXmlLoadableJiraWorkflow
All Implemented Interfaces:
JiraWorkflow, Comparable<JiraWorkflow>

Deprecated. use 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

A mock workflow that can be loaded from file. So not really that much mockness in it...


Field Summary
 
Fields inherited from class com.atlassian.jira.workflow.AbstractJiraWorkflow
workflowManager
 
Fields inherited from interface com.atlassian.jira.workflow.JiraWorkflow
ACTION_ORIGIN_STEP_ID, 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 Summary
MockXmlLoadableJiraWorkflow(WorkflowManager workflowManager, String filename)
          Deprecated.  
 
Method Summary
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.  
 
Methods inherited from class com.atlassian.jira.workflow.AbstractJiraWorkflow
compareTo, equals, getActionsForScreen, getActionsWithResult, getActionType, getAllActions, getDescription, getDescriptor, getDisplayName, getLinkedStatus, getLinkedStatuses, getLinkedStatusObject, getLinkedStatusObjects, getLinkedStep, getLinkedStep, getMode, getNextActionId, getPostFunctionsForTransition, getStepsForTransition, getStepsWithAction, getUpdateAuthor, getUpdateAuthorName, getUpdatedDate, hasDraftWorkflow, hashCode, isActive, isCommonAction, isDefault, isEditable, isGlobalAction, isInitialAction, isOrdinaryAction, isSystemWorkflow, removeStep
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockXmlLoadableJiraWorkflow

public MockXmlLoadableJiraWorkflow(WorkflowManager workflowManager,
                                   String filename)
                            throws com.opensymphony.workflow.InvalidWorkflowDescriptorException,
                                   IOException,
                                   SAXException
Deprecated. 
Throws:
com.opensymphony.workflow.InvalidWorkflowDescriptorException
IOException
SAXException
Method Detail

getName

public String getName()
Deprecated. 
Specified by:
getName in interface JiraWorkflow
Specified by:
getName in class AbstractJiraWorkflow

setName

public void setName(String name)
Deprecated. 

reset

public void reset()
Deprecated. 
Specified by:
reset in interface JiraWorkflow
Overrides:
reset in class AbstractJiraWorkflow

isDraftWorkflow

public boolean isDraftWorkflow()
Deprecated. 
Description copied from interface: JiraWorkflow
Determines if the workflow is an draft edit of an active workflow.

Returns:
true if an draft workflow, false otherwise.

getJiraWorkflow

public static com.opensymphony.workflow.loader.WorkflowDescriptor getJiraWorkflow(String filename)
                                                                           throws com.opensymphony.workflow.InvalidWorkflowDescriptorException,
                                                                                  IOException,
                                                                                  SAXException
Deprecated. 
Throws:
com.opensymphony.workflow.InvalidWorkflowDescriptorException
IOException
SAXException


Copyright © 2002-2014 Atlassian. All Rights Reserved.