openETCS
case study for the European Train Control System developed for the authors dissertation
|
test class for ::oETCS::DF::CControFlow and oETCS::DF::CControlFlow::CState More...
#include <UnitTesting.h>
Public Member Functions | |
CControlFlow () throw () | |
default constructor | |
void | setUp () throw (::std::bad_alloc) |
creates all test objects | |
void | tearDown () throw () |
delete all test objects | |
void | TestState () throw (::std::exception) |
test method for testing oETCS::DF::CControlFlow::CState |
Public Attributes | |
oETCS::DF::STRING_INPUT_T | m_StringInput |
string input storage |
Private Member Functions | |
CPPUNIT_TEST (TestState) | |
CPPUNIT_TEST_SUITE (CControlFlow) | |
CPPUNIT_TEST_SUITE_END () |
Private Attributes | |
oETCS::DF::BOOL_INPUT_T | m_bBoolInput |
boolean input storage | |
oETCS::DF::CControlFlow * | m_pControlFlow |
pointer to control flow, used as test object | |
oETCS::DF::CEVCStateMachine * | m_pStateMachine |
pointer to EVC state machine, used as helper object for testing |
test class for ::oETCS::DF::CControFlow and oETCS::DF::CControlFlow::CState
Definition at line 758 of file UnitTesting.h.
oETCS::UT::CControlFlow::CControlFlow | ( | ) | throw () |
default constructor
Definition at line 1786 of file UnitTesting.cpp.
Referenced by setUp().
|
private |
|
private |
|
private |
void oETCS::UT::CControlFlow::setUp | ( | ) | throw (::std::bad_alloc) |
creates all test objects
Definition at line 1801 of file UnitTesting.cpp.
References CControlFlow(), oETCS::DF::CControlFlow::m_ActiveStateName, oETCS::DF::CStorage::m_bBoolInput, m_bBoolInput, oETCS::DF::CCondition::m_bGuard, oETCS::DF::CStorage::m_BoolValue, oETCS::DF::CControlFlow::m_bStart, oETCS::DF::CControlFlow::m_IsRunning, m_pStateMachine, and m_StringInput.
void oETCS::UT::CControlFlow::tearDown | ( | ) | throw () |
delete all test objects
Definition at line 1887 of file UnitTesting.cpp.
References m_pStateMachine.
void oETCS::UT::CControlFlow::TestState | ( | ) | throw (::std::exception) |
test method for testing oETCS::DF::CControlFlow::CState
Definition at line 1899 of file UnitTesting.cpp.
References __DATA_FLOW_SAMPLE_TIME__, oETCS::DF::CEVCStateMachine::GetStates(), m_bBoolInput, m_pStateMachine, m_StringInput, oETCS::DF::CEVCStateMachine::Start(), and oETCS::DF::CEVCStateMachine::Stop().
|
private |
boolean input storage
Definition at line 799 of file UnitTesting.h.
Referenced by setUp(), and TestState().
|
private |
pointer to control flow, used as test object
Definition at line 824 of file UnitTesting.h.
|
private |
pointer to EVC state machine, used as helper object for testing
Definition at line 817 of file UnitTesting.h.
Referenced by setUp(), tearDown(), and TestState().
oETCS::DF::STRING_INPUT_T oETCS::UT::CControlFlow::m_StringInput |
string input storage
Definition at line 808 of file UnitTesting.h.
Referenced by setUp(), and TestState().
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/.