openETCS
case study for the European Train Control System developed for the authors dissertation
|
test class for DSM::CGOPPRRTransformer 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 | TestCreateSyntax () throw (::std::exception) |
test method for ::GOPPRR::CGOPPRRSyntaxLexer::CreateSyntax() | |
void | TestStaticSemantics () throw (::std::exception) |
test method for testing the static semantics by GOPPRR::CConstraintChecker::Check() |
Private Member Functions | |
CPPUNIT_TEST (TestCreateSyntax) | |
CPPUNIT_TEST (TestStaticSemantics) | |
CPPUNIT_TEST_SUITE (CGOPPRRTransformer) | |
CPPUNIT_TEST_SUITE_END () |
Private Attributes | |
GOPPRR::CConstraintChecker * | m_pChecker |
pointer to the constraint checker test object | |
::DSM::CGOPPRRTransformer * | m_pSyntaxLexer |
pointer to GOPPRR syntax lexer object for testing |
test class for DSM::CGOPPRRTransformer
Definition at line 836 of file UnitTesting.h.
|
private |
|
private |
|
private |
|
private |
void oETCS::UT::CGOPPRRTransformer::setUp | ( | ) | throw (::std::bad_alloc) |
creates all test objects
Definition at line 1931 of file UnitTesting.cpp.
References m_pChecker, and m_pSyntaxLexer.
void oETCS::UT::CGOPPRRTransformer::tearDown | ( | ) | throw () |
delete all test objects
Definition at line 1944 of file UnitTesting.cpp.
References m_pChecker, and m_pSyntaxLexer.
void oETCS::UT::CGOPPRRTransformer::TestCreateSyntax | ( | ) | throw (::std::exception) |
test method for ::GOPPRR::CGOPPRRSyntaxLexer::CreateSyntax()
Definition at line 1957 of file UnitTesting.cpp.
References DSM::CGOPPRRTransformer::CreateSyntaxFromFile(), DSM::CGOPPRRTransformer::GetGOPRRTree(), DSM::CGOPPRRSyntaxTree::GetProject(), GOPPRR::CProject::m_GraphSet, GOPPRR::CConcept::m_OID, and m_pSyntaxLexer.
void oETCS::UT::CGOPPRRTransformer::TestStaticSemantics | ( | ) | throw (::std::exception) |
test method for testing the static semantics by GOPPRR::CConstraintChecker::Check()
Definition at line 1995 of file UnitTesting.cpp.
References GOPPRR::CConstraintChecker::Check(), DSM::CGOPPRRTransformer::CreateSyntaxFromFile(), DSM::CGOPPRRTransformer::GetGOPRRTree(), DSM::CGOPPRRSyntaxTree::GetProject(), m_pChecker, and m_pSyntaxLexer.
|
private |
pointer to the constraint checker test object
Definition at line 885 of file UnitTesting.h.
Referenced by setUp(), tearDown(), and TestStaticSemantics().
|
private |
pointer to GOPPRR syntax lexer object for testing
Definition at line 878 of file UnitTesting.h.
Referenced by setUp(), tearDown(), TestCreateSyntax(), and TestStaticSemantics().
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/.