OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
WPropertyVariableTest Class Reference

Test WPropertyVariable. More...

#include <WPropertyVariable_test.h>

+ Inheritance diagram for WPropertyVariableTest:
+ Collaboration diagram for WPropertyVariableTest:

Public Member Functions

void setTemporary1 ()
 Helper function which simply sets the value above to true. More...
 
void setTemporary2 ()
 Helper function which simply sets the value above to true. More...
 
void testInstantiation (void)
 Test instantiation, also test name and description and type (from WPropertyBase) More...
 
void testNameConvention (void)
 Tests that only properties with proper names can be created. More...
 
void testClone ()
 Tests the cloning functionality. More...
 
void testMinMaxWithSetAndAccept ()
 Test min/max functionality, including tests for set(), accept() and ensureValidity. More...
 
void testConstraintManagement (void)
 Tests constraint management. More...
 

Public Attributes

bool m_testTemporary1
 A temporary holder for some value. More...
 
bool m_testTemporary2
 A temporary holder for some value. More...
 

Detailed Description

Test WPropertyVariable.

Definition at line 43 of file WPropertyVariable_test.h.

Member Function Documentation

◆ setTemporary1()

void WPropertyVariableTest::setTemporary1 ( )
inline

Helper function which simply sets the value above to true.

It is used to test some conditions here.

Definition at line 59 of file WPropertyVariable_test.h.

References m_testTemporary1.

Referenced by testClone(), and testConstraintManagement().

+ Here is the caller graph for this function:

◆ setTemporary2()

void WPropertyVariableTest::setTemporary2 ( )
inline

Helper function which simply sets the value above to true.

It is used to test some conditions here.

Definition at line 67 of file WPropertyVariable_test.h.

References m_testTemporary2.

Referenced by testClone().

+ Here is the caller graph for this function:

◆ testClone()

void WPropertyVariableTest::testClone ( )
inline

Tests the cloning functionality.

Definition at line 103 of file WPropertyVariable_test.h.

References WException::disableBacktrace(), m_testTemporary1, m_testTemporary2, setTemporary1(), and setTemporary2().

+ Here is the call graph for this function:

◆ testConstraintManagement()

void WPropertyVariableTest::testConstraintManagement ( void  )
inline

Tests constraint management.

Especially add,replace,remove,count,getFirst.

Definition at line 260 of file WPropertyVariable_test.h.

References WException::disableBacktrace(), WPropertyVariable< T >::getFirstConstraint(), m_testTemporary1, and setTemporary1().

+ Here is the call graph for this function:

◆ testInstantiation()

void WPropertyVariableTest::testInstantiation ( void  )
inline

Test instantiation, also test name and description and type (from WPropertyBase)

Definition at line 75 of file WPropertyVariable_test.h.

◆ testMinMaxWithSetAndAccept()

void WPropertyVariableTest::testMinMaxWithSetAndAccept ( )
inline

Test min/max functionality, including tests for set(), accept() and ensureValidity.

Definition at line 182 of file WPropertyVariable_test.h.

References WException::disableBacktrace(), WPropertyVariable< T >::getMax(), and WPropertyVariable< T >::setMax().

+ Here is the call graph for this function:

◆ testNameConvention()

void WPropertyVariableTest::testNameConvention ( void  )
inline

Tests that only properties with proper names can be created.

Definition at line 91 of file WPropertyVariable_test.h.

References WException::disableBacktrace().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_testTemporary1

bool WPropertyVariableTest::m_testTemporary1

A temporary holder for some value.

Definition at line 49 of file WPropertyVariable_test.h.

Referenced by setTemporary1(), testClone(), and testConstraintManagement().

◆ m_testTemporary2

bool WPropertyVariableTest::m_testTemporary2

A temporary holder for some value.

Definition at line 54 of file WPropertyVariable_test.h.

Referenced by setTemporary2(), and testClone().


The documentation for this class was generated from the following file: