openETCS
case study for the European Train Control System developed for the authors dissertation
|
test class for oETCS::DF::CTelegram, oETCS::DF::CPacket and oETCS::DF::CVariable, More...
#include <UnitTesting.h>
Public Member Functions | |
CLanguage () throw () | |
default constructor | |
void | setUp () throw (::std::bad_alloc) |
creates all test objects | |
void | tearDown () throw () |
delete all test objects | |
void | TestTelegram () throw (::std::exception) |
test method for testing oETCS::DF::CTelegram |
Public Attributes | |
::std::map< ::std::string, oETCS::DF::DOUBLE_ARRAY_INPUT_T * > | m_DoubleArrayInput |
map of double array input storages indexed by their literal name | |
::std::map< ::std::string, oETCS::DF::INT_INPUT_T * > | m_IntInput |
map of integer input storages indexed by their literal name | |
::std::map< ::std::string, oETCS::DF::STRING_INPUT_T * > | m_StringInput |
map of string input storages indexed by their literal name |
Private Member Functions | |
CPPUNIT_TEST (TestTelegram) | |
CPPUNIT_TEST_SUITE (CLanguage) | |
CPPUNIT_TEST_SUITE_END () |
Private Attributes | |
::std::map< ::std::string, oETCS::DF::BOOL_INPUT_T * > | m_BoolInput |
map of boolean input storages indexed by their literal name | |
::std::map< ::std::string, oETCS::DF::DOUBLE_INPUT_T * > | m_DoubleInput |
map of double input storages indexed by their literal name | |
oETCS::DF::CTelegram * | m_pTelegram |
pointer to telegram object for testing | |
oETCS::DF::CEVCStateMachine | m_StateMachine |
EVC state machine object needed for instanciation of other objects. |
test class for oETCS::DF::CTelegram, oETCS::DF::CPacket and oETCS::DF::CVariable,
Definition at line 608 of file UnitTesting.h.
|
explicit |
default constructor
Definition at line 1378 of file UnitTesting.cpp.
|
private |
|
private |
|
private |
void oETCS::UT::CLanguage::setUp | ( | ) | throw (::std::bad_alloc) |
creates all test objects
Definition at line 1390 of file UnitTesting.cpp.
References oETCS::DF::CVariable::INTEGER, oETCS::DF::CVariable::KILO_METERS_PER_HOUR, oETCS::DF::CVariable::m_BitValues, m_BoolInput, oETCS::DF::CStorage::m_BoolValue, m_DoubleArrayInput, oETCS::DF::CStorage::m_DoubleArrayValue, m_DoubleInput, oETCS::DF::CStorage::m_DoubleValue, m_IntInput, oETCS::DF::CStorage::m_IntValue, oETCS::DF::CVariable::m_IteratedVariables, m_pTelegram, oETCS::DF::CVariable::m_ScaledVariables, m_StateMachine, m_StringInput, oETCS::DF::CStorage::m_StringValue, and oETCS::DF::CVariable::STRING.
void oETCS::UT::CLanguage::tearDown | ( | ) | throw () |
delete all test objects
Definition at line 1468 of file UnitTesting.cpp.
void oETCS::UT::CLanguage::TestTelegram | ( | ) | throw (::std::exception) |
test method for testing oETCS::DF::CTelegram
Definition at line 1479 of file UnitTesting.cpp.
References m_DoubleArrayInput, m_IntInput, m_StringInput, and oETCS::DF::STRING.
|
private |
map of boolean input storages indexed by their literal name
Definition at line 663 of file UnitTesting.h.
Referenced by setUp().
::std::map< ::std::string, oETCS::DF::DOUBLE_ARRAY_INPUT_T* > oETCS::UT::CLanguage::m_DoubleArrayInput |
map of double array input storages indexed by their literal name
Definition at line 679 of file UnitTesting.h.
Referenced by setUp(), and TestTelegram().
|
private |
map of double input storages indexed by their literal name
Definition at line 670 of file UnitTesting.h.
Referenced by setUp().
::std::map< ::std::string, oETCS::DF::INT_INPUT_T* > oETCS::UT::CLanguage::m_IntInput |
map of integer input storages indexed by their literal name
Definition at line 686 of file UnitTesting.h.
Referenced by setUp(), and TestTelegram().
|
private |
pointer to telegram object for testing
Definition at line 656 of file UnitTesting.h.
Referenced by setUp().
|
private |
EVC state machine object needed for instanciation of other objects.
Definition at line 649 of file UnitTesting.h.
Referenced by setUp().
::std::map< ::std::string, oETCS::DF::STRING_INPUT_T* > oETCS::UT::CLanguage::m_StringInput |
map of string input storages indexed by their literal name
Definition at line 693 of file UnitTesting.h.
Referenced by setUp(), and TestTelegram().
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/.