Class MockXmlLoadableJiraWorkflow

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

@Deprecated public class MockXmlLoadableJiraWorkflow extends AbstractJiraWorkflow
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.
A mock workflow that can be loaded from file. So not really that much mockness in it...
  • Constructor Details

  • Method Details

    • 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