|
CoCoME System Tests | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.cocome.tradingsystem.systests.scenarios.TestScenarioBase
public abstract class TestScenarioBase
This is the base class for all test scenarios. It prepares the system for testing and provides helper methods to simplify test setup and testing.
| Nested Class Summary | |
|---|---|
protected class |
TestScenarioBase.StoreWrapper
Class holding a store and some management information. |
| Field Summary | |
|---|---|
protected IBank |
bank
The bank |
protected IEnterprise |
enterprise
The (globally unique) enterprise used. |
protected ProductGenerator |
productGenerator
Generator used for adding new products. |
protected java.util.Random |
seedRng
Random number generator used to generate seeds for other RNGs. |
protected java.util.List<TestScenarioBase.StoreWrapper> |
stores
The list of stores. |
protected ITestDriver |
testDriver
The test driver used for this test. |
| Constructor Summary | |
|---|---|
TestScenarioBase()
|
|
| Method Summary | |
|---|---|
protected void |
copySetup(TestScenarioBase otherBase)
Copy the setup information from another scenario. |
protected TestScenarioBase.StoreWrapper |
createStore(int numCashLines)
Creates a new store with the given number of cash lines and a generated stock. |
protected void |
setUp()
|
protected void |
tearDown()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, 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 |
| Field Detail |
|---|
protected final java.util.Random seedRng
protected ITestDriver testDriver
protected IEnterprise enterprise
protected ProductGenerator productGenerator
protected java.util.List<TestScenarioBase.StoreWrapper> stores
protected IBank bank
| Constructor Detail |
|---|
public TestScenarioBase()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void copySetup(TestScenarioBase otherBase)
protected TestScenarioBase.StoreWrapper createStore(int numCashLines)
throws java.lang.Exception
java.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exception
|
CoCoME System Tests | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||