|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--RtjAocsFramework.GeneralUtilities.TestCase
|
+--RtjAocsFramework.GeneralUtilities.TestCaseGenericSetUp
Test case to set up the test environment for a generic test. The setUpTestCase method of this class performs the following actions: 1) It configures all event repositories; 2) It configures the system manager; 3) It configures AocsObject; 4) It advances the AocsClock by two periods. This class additionally provides methods to retrieve the event repositories and the number of configuration and failure events in the respective repositories and the latest event stored in each. This class should be used as a base class form which to derive more specific test case classes. Change Record:
getFailureListenerList and
getConfigurationListenerList to avoid "null pointer exceptions".
Done by A. Pasetti on 10.03.03This class is not part of the AOCS Framework proper.
Copyright: see the Copyright Notice.
| Field Summary |
| Fields inherited from class RtjAocsFramework.GeneralUtilities.TestCase |
TEST_FAILURE, TEST_SUCCESS |
| Constructor Summary | |
protected |
TestCaseGenericSetUp(int id,
String name)
This class is only intended as base class for more specific test case classes. |
| Method Summary | |
protected void |
advanceTime()
Advance the current AOCS time by one AocsClock period |
protected AocsClock |
getAocsClock()
|
protected ChangeEventRepository |
getChangeEventRepository()
|
protected ConfigurationEventRepository |
getConfigurationEventRepository()
|
protected FailureEventRepository |
getFailureEventRepository()
|
protected ConfigurationEvent |
getLatestConfigurationEvent()
Return the latest configuration event in the repository loaded into AocsObject. |
protected FailureEvent |
getLatestFailureEvent()
Return the latest failure event in the repository loaded into AocsObject. |
protected ManoeuvreEventRepository |
getManoeuvreEventRepository()
|
protected ModeEventRepository |
getModeEventRepository()
|
int |
getNumberConfigurationEvents()
Return number of failure events in the repository loaded into AocsObject. |
int |
getNumberFailureEvents()
Return number of failure events in the repository loaded into AocsObject. |
protected ReconfigurationEventRepository |
getReconfigurationEventRepository()
|
protected RecoveryEventRepository |
getRecoveryEventRepository()
|
protected int |
getRepositorySize()
|
protected SystemEventRepository |
getSystemEventRepository()
|
protected TelecommandEventRepository |
getTelecommandEventRepository()
|
protected int |
getTime()
|
boolean |
setUpTestCase()
Perform test set up prior to the test being run. |
| Methods inherited from class RtjAocsFramework.GeneralUtilities.TestCase |
getFailureMessage, getTestName, getTestOutcome, runTestCase, setTestResult, shutDownTestCase |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected TestCaseGenericSetUp(int id,
String name)
| Method Detail |
public boolean setUpTestCase()
TestCaseThis method is intended to be called before runTestCase to perform the test set up.
setUpTestCase in class TestCasepublic int getNumberFailureEvents()
public int getNumberConfigurationEvents()
protected FailureEvent getLatestFailureEvent()
protected ConfigurationEvent getLatestConfigurationEvent()
protected void advanceTime()
protected int getTime()
protected AocsClock getAocsClock()
protected ReconfigurationEventRepository getReconfigurationEventRepository()
protected SystemEventRepository getSystemEventRepository()
protected FailureEventRepository getFailureEventRepository()
protected ConfigurationEventRepository getConfigurationEventRepository()
protected TelecommandEventRepository getTelecommandEventRepository()
protected ManoeuvreEventRepository getManoeuvreEventRepository()
protected ModeEventRepository getModeEventRepository()
protected ChangeEventRepository getChangeEventRepository()
protected RecoveryEventRepository getRecoveryEventRepository()
protected int getRepositorySize()
|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||