|
openETCS
case study for the European Train Control System developed for the authors dissertation
|
test class for ::oETCS::DF::CStateMachine and ::oETCS::DF::CStateMachine::CEVCState More...
#include <UnitTesting.h>


Public Member Functions | |
| CEVCStateMachine () throw () | |
| default constructor | |
| void | setUp () throw (::std::bad_alloc) |
| creates all test objects | |
| void | tearDown () throw () |
| delete all test objects | |
| void | TestEVCState () throw (::std::exception) |
| test method for testing ::oETCS::DF::CVCStateMachine::CEVCSTate | |
Private Member Functions | |
| CPPUNIT_TEST (TestEVCState) | |
| CPPUNIT_TEST_SUITE (CEVCStateMachine) | |
| CPPUNIT_TEST_SUITE_END () | |
Private Attributes | |
| oETCS::DF::CEVCStateMachine * | m_pStateMachine |
| pointer to EVC state machine, used as test object | |
test class for ::oETCS::DF::CStateMachine and ::oETCS::DF::CStateMachine::CEVCState
Definition at line 705 of file UnitTesting.h.
| oETCS::UT::CEVCStateMachine::CEVCStateMachine | ( | ) | throw () |
default constructor
Definition at line 1669 of file UnitTesting.cpp.
Referenced by setUp().

|
private |
|
private |
|
private |
| void oETCS::UT::CEVCStateMachine::setUp | ( | ) | throw (::std::bad_alloc) |
creates all test objects
Definition at line 1681 of file UnitTesting.cpp.
References CEVCStateMachine(), oETCS::DF::CStorage::m_bBoolInput, oETCS::DF::CEVCCondition::m_bGuard, oETCS::DF::CLevelCondition::m_bLevelSwitch, oETCS::DF::CStorage::m_BoolValue, and m_pStateMachine.

| void oETCS::UT::CEVCStateMachine::tearDown | ( | ) | throw () |
delete all test objects
Definition at line 1748 of file UnitTesting.cpp.
References m_pStateMachine.
| void oETCS::UT::CEVCStateMachine::TestEVCState | ( | ) | throw (::std::exception) |
test method for testing ::oETCS::DF::CVCStateMachine::CEVCSTate
Definition at line 1760 of file UnitTesting.cpp.
References __DATA_FLOW_SAMPLE_TIME__, oETCS::DF::CEVCStateMachine::GetActiveState(), oETCS::DF::CEVCStateMachine::GetStates(), oETCS::DF::CEVCStateMachine::m_CurrentApplicationLevel, m_pStateMachine, oETCS::DF::CEVCStateMachine::Start(), and oETCS::DF::CEVCStateMachine::Stop().

|
private |
pointer to EVC state machine, used as test object
Definition at line 746 of file UnitTesting.h.
Referenced by setUp(), tearDown(), and TestEVCState().
Copyright (C) 2010-2012 Johannes Feuser (feuser@uni-bremen.de)
The openETCS library is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or any later version.
The openETCS library is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with the openETCS library. If not, see
"http://www.gnu.org/licenses/.