openETCS
case study for the European Train Control System developed for the authors dissertation
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
oETCS::UT::CControlFlow Class Reference

test class for ::oETCS::DF::CControFlow and oETCS::DF::CControlFlow::CState More...

#include <UnitTesting.h>

Inheritance diagram for oETCS::UT::CControlFlow:
Inheritance graph
Collaboration diagram for oETCS::UT::CControlFlow:
Collaboration graph

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::CControlFlowm_pControlFlow
 pointer to control flow, used as test object
oETCS::DF::CEVCStateMachinem_pStateMachine
 pointer to EVC state machine, used as helper object for testing

Detailed Description

test class for ::oETCS::DF::CControFlow and oETCS::DF::CControlFlow::CState

Definition at line 758 of file UnitTesting.h.

Constructor & Destructor Documentation

oETCS::UT::CControlFlow::CControlFlow ( ) throw ()

default constructor

Definition at line 1786 of file UnitTesting.cpp.

Referenced by setUp().

Here is the caller graph for this function:

Member Function Documentation

oETCS::UT::CControlFlow::CPPUNIT_TEST ( TestState  )
private
oETCS::UT::CControlFlow::CPPUNIT_TEST_SUITE ( CControlFlow  )
private
oETCS::UT::CControlFlow::CPPUNIT_TEST_SUITE_END ( )
private
void oETCS::UT::CControlFlow::setUp ( ) throw (::std::bad_alloc)
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)

Member Data Documentation

oETCS::DF::BOOL_INPUT_T oETCS::UT::CControlFlow::m_bBoolInput
private

boolean input storage

Definition at line 799 of file UnitTesting.h.

Referenced by setUp(), and TestState().

oETCS::DF::CControlFlow* oETCS::UT::CControlFlow::m_pControlFlow
private

pointer to control flow, used as test object

Definition at line 824 of file UnitTesting.h.

oETCS::DF::CEVCStateMachine* oETCS::UT::CControlFlow::m_pStateMachine
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().


The documentation for this class was generated from the following files:

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/.