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

test class for ::oETCS::DF::CStateMachine and ::oETCS::DF::CStateMachine::CEVCState More...

#include <UnitTesting.h>

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

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::CEVCStateMachinem_pStateMachine
 pointer to EVC state machine, used as test object

Detailed Description

test class for ::oETCS::DF::CStateMachine and ::oETCS::DF::CStateMachine::CEVCState

Definition at line 705 of file UnitTesting.h.

Constructor & Destructor Documentation

oETCS::UT::CEVCStateMachine::CEVCStateMachine ( ) throw ()

default constructor

Definition at line 1669 of file UnitTesting.cpp.

Referenced by setUp().

Here is the caller graph for this function:

Member Function Documentation

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

Member Data Documentation

oETCS::DF::CEVCStateMachine* oETCS::UT::CEVCStateMachine::m_pStateMachine
private

pointer to EVC state machine, used as test object

Definition at line 746 of file UnitTesting.h.

Referenced by setUp(), tearDown(), and TestEVCState().


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