openETCS
case study for the European Train Control System developed for the authors dissertation
|
test class for oETCS::GEN::CGenerator sub-classes More...
#include <UnitTesting.h>
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::CCPPGenerator * | m_pCPPGenerator |
pointer to the C++ generator object used for testing |
test class for oETCS::GEN::CGenerator sub-classes
Definition at line 897 of file UnitTesting.h.
|
private |
|
private |
|
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.
|
private |
pointer to the C++ generator object used for testing
Definition at line 931 of file UnitTesting.h.
Referenced by setUp(), tearDown(), and TestGenerateCpp().
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/.