org.infoglue.cms.util
Class WorkflowTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.infoglue.cms.util.InfoGlueTestCase
                    |
                    +--org.infoglue.cms.util.WorkflowTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
NewsWorkflowTestCase

public abstract class WorkflowTestCase
extends InfoGlueTestCase

Base class for workflow tests. Uses the "Create News" sample workflow. We don't do the "Preview news and approve" step because we don't want to deal with saving content that we have to clean up later. Going through the first step should suffice to demonstrate that the right things are happening as far as the workflow is concerned. It is easy enough to hook up "Preview news and approve" if it turns out that testing the step is worth the headache of figuring out which content to remove when the test finishes.

Author:
Jed Prentice

Field Summary
static int FINISH_WORKFLOW
          The ID of the global action "Finish Workflow".
 
Constructor Summary
WorkflowTestCase()
           
 
Methods inherited from class org.infoglue.cms.util.InfoGlueTestCase
getAdminPrincipal, getAnonPrincipal, getCmsUserPrincipal, getLanguageId, getLanguageId, getRepoId, getSiteNodeId, getSiteNodeId, initializeInfoGlue
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FINISH_WORKFLOW

public static final int FINISH_WORKFLOW
The ID of the global action "Finish Workflow". Since this ID is the same for both Create News and Create User, we can get away with hard-coding it for now.

See Also:
Constant Field Values
Constructor Detail

WorkflowTestCase

public WorkflowTestCase()