Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jprocessunit
Class ProcessTestCase

    java.lang.Object
      junit.framework.Assert
          junit.framework.TestCase
              org.jprocessunit.ProcessTestCase

All Implemented Interfaces:
  junit.framework.Test

    public class ProcessTestCase

extends junit.framework.TestCase

All JProcess unit test cases should extend this class.

Author:
  Reza Shafii

Constructor Summary
`ProcessTestCase()`

Method Summary
`void` | `addUndoEvent(ProcessEvent event)`
`void` | `runUndoEvents()` Execute all undo events in reverse order
`protected void` | `waitForProcess(int milSec)` Convinence method to wait during testing so that the process has time to run to a certain point.

Methods inherited from class junit.framework.TestCase
`countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

### ProcessTestCase

    public ProcessTestCase()

Method Detail

### addUndoEvent

    public void addUndoEvent(ProcessEvent event)

  Parameters:
    `event` - Event to be added for test execution.

### runUndoEvents

    public void runUndoEvents()

  Execute all undo events in reverse order

### waitForProcess

    protected void waitForProcess(int milSec)

  Convinence method to wait during testing so that the process has time to run to a certain point.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

JProcessUnit API