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::CGenerator Class Reference

test class for oETCS::GEN::CGenerator sub-classes More...

#include <UnitTesting.h>

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

Public Member Functions

void setUp () throw (::std::bad_alloc)
 creates all test objects
void tearDown () throw ()
 delete all test objects
void TestGenerateCpp () throw (::std::exception)
 test method for ::oETCS::GEN::CPPGenerator::Generate()

Private Member Functions

 CPPUNIT_TEST (TestGenerateCpp)
 CPPUNIT_TEST_SUITE (CGenerator)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

oETCS::GEN::CCPPGeneratorm_pCPPGenerator
 pointer to the C++ generator object used for testing

Detailed Description

test class for oETCS::GEN::CGenerator sub-classes

Definition at line 897 of file UnitTesting.h.

Member Function Documentation

oETCS::UT::CGenerator::CPPUNIT_TEST ( TestGenerateCpp  )
private
oETCS::UT::CGenerator::CPPUNIT_TEST_SUITE ( CGenerator  )
private
oETCS::UT::CGenerator::CPPUNIT_TEST_SUITE_END ( )
private
void oETCS::UT::CGenerator::setUp ( ) throw (::std::bad_alloc)

creates all test objects

Definition at line 2030 of file UnitTesting.cpp.

References m_pCPPGenerator.

void oETCS::UT::CGenerator::tearDown ( ) throw ()

delete all test objects

Definition at line 2042 of file UnitTesting.cpp.

References m_pCPPGenerator.

void oETCS::UT::CGenerator::TestGenerateCpp ( ) throw (::std::exception)

test method for ::oETCS::GEN::CPPGenerator::Generate()

Definition at line 2054 of file UnitTesting.cpp.

References DSM::CGOPPRRTransformer::CreateSyntaxFromFile(), oETCS::GEN::CCPPGenerator::Generate(), DSM::CSyntaxTransformer::GetTree(), GOPPRR::CProject::m_ObjectSet, m_pCPPGenerator, and GOPPRR::CProject::m_RelationshipSet.

Here is the call graph for this function:

Member Data Documentation

oETCS::GEN::CCPPGenerator* oETCS::UT::CGenerator::m_pCPPGenerator
private

pointer to the C++ generator object used for testing

Definition at line 931 of file UnitTesting.h.

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


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