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

test class for DSM::CGOPPRRTransformer More...

#include <UnitTesting.h>

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

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::CConstraintCheckerm_pChecker
 pointer to the constraint checker test object
::DSM::CGOPPRRTransformerm_pSyntaxLexer
 pointer to GOPPRR syntax lexer object for testing

Detailed Description

test class for DSM::CGOPPRRTransformer

Definition at line 836 of file UnitTesting.h.

Member Function Documentation

oETCS::UT::CGOPPRRTransformer::CPPUNIT_TEST ( TestCreateSyntax  )
private
oETCS::UT::CGOPPRRTransformer::CPPUNIT_TEST ( TestStaticSemantics  )
private
oETCS::UT::CGOPPRRTransformer::CPPUNIT_TEST_SUITE ( CGOPPRRTransformer  )
private
oETCS::UT::CGOPPRRTransformer::CPPUNIT_TEST_SUITE_END ( )
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.

Here is the call graph for this function:

void oETCS::UT::CGOPPRRTransformer::TestStaticSemantics ( ) throw (::std::exception)

Member Data Documentation

GOPPRR::CConstraintChecker* oETCS::UT::CGOPPRRTransformer::m_pChecker
private

pointer to the constraint checker test object

Definition at line 885 of file UnitTesting.h.

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

::DSM::CGOPPRRTransformer* oETCS::UT::CGOPPRRTransformer::m_pSyntaxLexer
private

pointer to GOPPRR syntax lexer object for testing

Definition at line 878 of file UnitTesting.h.

Referenced by setUp(), tearDown(), TestCreateSyntax(), and TestStaticSemantics().


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