it.amattioli.workstate.wfunit
Class WorkflowTestCase

Show UML class diagram
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by it.amattioli.workstate.wfunit.WorkflowTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
WfXmlTestCase

public abstract class WorkflowTestCase
extends junit.framework.TestCase


Field Summary
protected  Machine machine
           
 
Constructor Summary
WorkflowTestCase(String name)
           
 
Method Summary
 void assertAttribute(String stateName, String attrName, Object expected)
           
 void assertState(String stateName)
           
 boolean hasMoreSteps()
           
abstract  List loadEvents()
           
abstract  Machine loadMachine()
           
protected  void setUp()
           
 void step()
           
 void step(int stepNumber)
           
 void stepAll()
           
 
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
 

Field Detail

machine

protected Machine machine
Constructor Detail

WorkflowTestCase

public WorkflowTestCase(String name)
Method Detail

loadMachine

public abstract Machine loadMachine()
                             throws Exception
Throws:
Exception

loadEvents

public abstract List loadEvents()
                         throws Exception
Throws:
Exception

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

hasMoreSteps

public boolean hasMoreSteps()

step

public void step()
          throws WorkflowException
Throws:
WorkflowException

step

public void step(int stepNumber)
          throws WorkflowException
Throws:
WorkflowException

stepAll

public void stepAll()
             throws WorkflowException
Throws:
WorkflowException

assertAttribute

public void assertAttribute(String stateName,
                            String attrName,
                            Object expected)

assertState

public void assertState(String stateName)


Copyright © 2011. All Rights Reserved.