org.infoglue.cms.workflow
Class NewsWorkflowTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.infoglue.cms.util.InfoGlueTestCase
              extended by org.infoglue.cms.util.WorkflowTestCase
                  extended by org.infoglue.cms.workflow.NewsWorkflowTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CreateNewsTest, WorkflowControllerTest

public class NewsWorkflowTestCase
extends WorkflowTestCase

Version:
$Revision: 1.6 $ $Date: 2006/03/06 16:55:11 $
Author:
Jed Prentice

Field Summary
 
Fields inherited from class org.infoglue.cms.util.WorkflowTestCase
FINISH_WORKFLOW
 
Constructor Summary
NewsWorkflowTestCase()
           
 
Method Summary
protected  java.util.Map getCreateNewsParams()
           
protected  int getNumberOfGlobalActions()
          Returns the number of global actions
protected  java.lang.String getWorkflowName()
          Subclasses must supply the workflow name
protected  void invokeCreateNews()
          Invokes the "Create News" workflow action
protected  void invokePreviewNewsAndApprove()
          Invokes the "Preview News and Approve" workflow action
protected  void setUp()
           
 
Methods inherited from class org.infoglue.cms.util.WorkflowTestCase
assertWorkflowFinished, checkActions, checkWorkflow, findCurrentWorkflow, findWorkflow, findWorkflowByName, finishWorkflow, getNumberOfInitialActions, getPropertySet, getUserPrincipal, getWorkflow, getWorkflowId, invokeAction, printActions, printAvailableActions, printSteps, printWorkflows, setUserPrincipal, setWorkflow, startWorkflow
 
Methods inherited from class org.infoglue.cms.util.InfoGlueTestCase
changeDate, changeDate, createRole, getAdminPrincipal, getAnonPrincipal, getCmsUserPrincipal, getLanguageId, getLanguageId, getRepoId, getSiteNodeId, getSiteNodeId, initializeInfoGlue
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewsWorkflowTestCase

public NewsWorkflowTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class InfoGlueTestCase
Throws:
java.lang.Exception

getWorkflowName

protected java.lang.String getWorkflowName()
Description copied from class: WorkflowTestCase
Subclasses must supply the workflow name

Specified by:
getWorkflowName in class WorkflowTestCase
Returns:
the name of the workflow under test

getNumberOfGlobalActions

protected int getNumberOfGlobalActions()
Returns the number of global actions

Overrides:
getNumberOfGlobalActions in class WorkflowTestCase
Returns:
the number of global actions

invokeCreateNews

protected void invokeCreateNews()
                         throws java.lang.Exception
Invokes the "Create News" workflow action

Throws:
java.lang.Exception - if an error occurs

invokePreviewNewsAndApprove

protected void invokePreviewNewsAndApprove()
                                    throws java.lang.Exception
Invokes the "Preview News and Approve" workflow action

Throws:
java.lang.Exception - if an error occurs

getCreateNewsParams

protected java.util.Map getCreateNewsParams()


Copyright © 2005 InfoGlue.org All Rights Reserved.