Real-Time Java AOCS Framework v1.0 API Specification

RtjAocsFramework.GeneralUtilities
Class TestCaseGenericSetUp

java.lang.Object
  |
  +--RtjAocsFramework.GeneralUtilities.TestCase
        |
        +--RtjAocsFramework.GeneralUtilities.TestCaseGenericSetUp
Direct Known Subclasses:
TestCaseAocsData_1, TestCaseAocsData_2, TestCaseAocsData_3, TestCaseAocsData_4, TestCaseAocsData_5, TestCaseAocsData_7, TestCaseAocsData_8, TestCaseControlChannel_1, TestCaseControlChannel_2, TestCaseControlChannel_3, TestCaseControlChannel_4, TestCaseControlChannel_5, TestCaseControlChannel_6, TestCaseControlChannel_7, TestCaseControlChannel_8, TestCaseController_0, TestCaseController_1, TestCaseController_2, TestCaseController_3, TestCaseController_4, TestCaseController_5, TestCaseFailureDetection_1, TestCaseFailureDetection_2, TestCaseFailureDetection_3, TestCaseFailureRecovery_1, TestCaseFailureRecovery_2, TestCaseFailureRecovery_3, TestCaseManoeuvre_1, TestCaseManoeuvre_2, TestCaseManoeuvre_3, TestCaseManoeuvre_4, TestCaseMatlabBlock_1, TestCaseMatlabBlock_2, TestCaseModeManagement_1, TestCaseModeManagement_2, TestCaseModeManagement_3, TestCaseModeManagement_4, TestCaseModeManagement_5, TestCaseModeManagement_6, TestCaseObjectList_1, TestCaseObjectList_2, TestCaseObjectList_3, TestCaseObjectMonitoring_1, TestCaseReconfiguration_1, TestCaseReconfiguration_5, TestCaseSystemManagement_1, TestCaseSystemManagement_2, TestCaseTelecommandManagement_1, TestCaseTelecommandManagement_2, TestCaseTelecommandManagement_3, TestCaseTelecommandManagement_4, TestCaseTelemetryManagement_1, TestCaseTelemetryManagement_2, TestCaseUnit_1, TestCaseUnit_2, TestCaseUnit_3, TestCaseXmathUcbBlock_1, TestCaseXmathUcbBlock_2, TestCaseXmathUcbBlock_3

public abstract class TestCaseGenericSetUp
extends TestCase

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:

This class is not part of the AOCS Framework proper.

Copyright: see the Copyright Notice.

Version:
1.1
Author:
Alessandro Pasetti (University of Konstanz)
See Also:
The framework test approach

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

TestCaseGenericSetUp

protected TestCaseGenericSetUp(int id,
                               String name)
This class is only intended as base class for more specific test case classes.

Method Detail

setUpTestCase

public boolean setUpTestCase()
Description copied from class: TestCase
Perform test set up prior to the test being run.

This method is intended to be called before runTestCase to perform the test set up.

Overrides:
setUpTestCase in class TestCase
Returns:
true if set up was successful, false otherwise

getNumberFailureEvents

public int getNumberFailureEvents()
Return number of failure events in the repository loaded into AocsObject.


getNumberConfigurationEvents

public int getNumberConfigurationEvents()
Return number of failure events in the repository loaded into AocsObject.


getLatestFailureEvent

protected FailureEvent getLatestFailureEvent()
Return the latest failure event in the repository loaded into AocsObject.


getLatestConfigurationEvent

protected ConfigurationEvent getLatestConfigurationEvent()
Return the latest configuration event in the repository loaded into AocsObject.


advanceTime

protected void advanceTime()
Advance the current AOCS time by one AocsClock period


getTime

protected int getTime()

getAocsClock

protected AocsClock getAocsClock()

getReconfigurationEventRepository

protected ReconfigurationEventRepository getReconfigurationEventRepository()

getSystemEventRepository

protected SystemEventRepository getSystemEventRepository()

getFailureEventRepository

protected FailureEventRepository getFailureEventRepository()

getConfigurationEventRepository

protected ConfigurationEventRepository getConfigurationEventRepository()

getTelecommandEventRepository

protected TelecommandEventRepository getTelecommandEventRepository()

getManoeuvreEventRepository

protected ManoeuvreEventRepository getManoeuvreEventRepository()

getModeEventRepository

protected ModeEventRepository getModeEventRepository()

getChangeEventRepository

protected ChangeEventRepository getChangeEventRepository()

getRecoveryEventRepository

protected RecoveryEventRepository getRecoveryEventRepository()

getRepositorySize

protected int getRepositorySize()

Real-Time Java AOCS Framework v1.0 API Specification

Real-Time Java AOCS Framework project home page

Automatic Control Laboratory, ETH Zuerich
Physikstrasse 3
CH-8092 Zuerich, Switzerland