|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.taverna.scuflworkers.LocalWorkerTest
public abstract class LocalWorkerTest
This class is provides a simple set of test to verify that a LocalWorker is functioning properly. To use this class, simply instantiate it can call the tests that you need. Last edited by $Author: sowen70 $
| Constructor Summary | |
|---|---|
LocalWorkerTest(LocalWorker worker,
boolean allOutputsRequired,
boolean allInputsRequired)
Constructor |
|
| Method Summary | |
|---|---|
void |
testInputs()
This test verifies that the number of inputs, and input types are the same. |
void |
testOutputs()
This test verifies that the number of outputs and output types are the same. |
void |
testWithInputMap(java.util.Map inputMap)
This method tests the LocalWorker when it's passed an input map of values. |
void |
testWithInputs(java.lang.String[] inputNames,
java.lang.String[] inputValues)
This method tests a given local worker by setting all of the input names to the values specified in the inputValues array. |
| 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 |
| Constructor Detail |
|---|
public LocalWorkerTest(LocalWorker worker,
boolean allOutputsRequired,
boolean allInputsRequired)
worker - The LocalWorker instance to be tested.allOutputsRequired - Determines if all outputValues are required to be in the output map.allInputsRequired - Determines if all inputValues are required to be in the input map.| Method Detail |
|---|
public void testInputs()
public void testOutputs()
public void testWithInputs(java.lang.String[] inputNames,
java.lang.String[] inputValues)
throws java.lang.Exception
inputNames - inputValues -
java.lang.Exception
public void testWithInputMap(java.util.Map inputMap)
throws java.lang.Exception
inputMap -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||