|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
gov.nih.nci.cagrid.testing.system.haste.Story
public abstract class Story
A Story executes an ordered sequence of Steps. Story is the system-test-level analogue of JUnit's TestCase.
| Constructor Summary | |
|---|---|
Story()
Construct a new Story by sequencing the executable tests |
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getDescription()
This method is for the user to give a short description of this story. |
java.lang.String |
getStepName()
|
void |
runBare()
Runs the bare test sequence. |
protected void |
runTest()
Override runTest() to use steps instead of reflection-targeted methods. |
void |
setStepName(java.lang.String name)
Sets the name of the current step. |
protected void |
setUp()
|
protected abstract java.util.Vector |
steps()
Subclasses implement this method to compose a List of Steps
to be executed in order when this Story is run. |
protected boolean |
storySetUp()
|
protected void |
storyTearDown()
|
protected void |
tearDown()
|
void |
testDummy()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Story()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic void setStepName(java.lang.String name)
public java.lang.String getStepName()
protected abstract java.util.Vector steps()
Steps
to be executed in order when this Story is run.
Example:
List mySteps = new ArrayList(); mySteps.add(new Step1()); mySteps.add(new Step2()); mySteps.add(new Step3()); return mySteps;
Note that a Story contains only Steps, never
other Stories. To create a composite Story,
use StoryBook.
public abstract java.lang.String getDescription()
public void runBare()
throws java.lang.Throwable
runBare in class junit.framework.TestCasejava.lang.Throwable - if any exception is thrown
protected void runTest()
throws java.lang.Throwable
runTest in class junit.framework.TestCasejava.lang.Throwable
public void testDummy()
throws java.lang.Throwable
java.lang.Throwable
protected boolean storySetUp()
throws java.lang.Throwable
java.lang.Throwable
protected void storyTearDown()
throws java.lang.Throwable
java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||