|
OpenWalnut
1.2.5
|
Test WPropertyVariable. More...
#include <WPropertyVariable_test.h>
Inheritance diagram for WPropertyVariableTest:Public Member Functions | |
| void | setTemporary1 () |
| Helper function which simply sets the value above to true. | |
| void | setTemporary2 () |
| Helper function which simply sets the value above to true. | |
| void | testInstantiation (void) |
| Test instantiation, also test name and description and type (from WPropertyBase) | |
| void | testNameConvention (void) |
| Tests that only properties with proper names can be created. | |
| void | testClone () |
| Tests the cloning functionality. | |
| void | testMinMaxWithSetAndAccept () |
| Test min/max functionality, including tests for set(), accept() and ensureValidity. | |
| void | testConstraintManagement (void) |
| Tests constraint management. | |
Public Attributes | |
| bool | m_testTemporary1 |
| A temporary holder for some value. | |
| bool | m_testTemporary2 |
| A temporary holder for some value. | |
Test WPropertyVariable.
Definition at line 43 of file WPropertyVariable_test.h.
|
inline |
Helper function which simply sets the value above to true.
It is used to test some conditions here.
Definition at line 60 of file WPropertyVariable_test.h.
References m_testTemporary1.
Referenced by testClone(), and testConstraintManagement().
|
inline |
Helper function which simply sets the value above to true.
It is used to test some conditions here.
Definition at line 68 of file WPropertyVariable_test.h.
References m_testTemporary2.
Referenced by testClone().
|
inline |
Tests the cloning functionality.
Definition at line 104 of file WPropertyVariable_test.h.
References WException::disableBacktrace(), m_testTemporary1, m_testTemporary2, setTemporary1(), and setTemporary2().
|
inline |
Tests constraint management.
Especially add,replace,remove,count,getFirst.
Definition at line 261 of file WPropertyVariable_test.h.
References WException::disableBacktrace(), WPropertyVariable< T >::getFirstConstraint(), m_testTemporary1, and setTemporary1().
|
inline |
Test instantiation, also test name and description and type (from WPropertyBase)
Definition at line 76 of file WPropertyVariable_test.h.
|
inline |
Test min/max functionality, including tests for set(), accept() and ensureValidity.
Definition at line 183 of file WPropertyVariable_test.h.
References WException::disableBacktrace(), WPropertyVariable< T >::getMax(), WPropertyVariable< T >::setMax(), and WPropertyVariable< T >::setMin().
|
inline |
Tests that only properties with proper names can be created.
Definition at line 92 of file WPropertyVariable_test.h.
References WException::disableBacktrace().
| bool WPropertyVariableTest::m_testTemporary1 |
A temporary holder for some value.
Definition at line 50 of file WPropertyVariable_test.h.
Referenced by setTemporary1(), testClone(), and testConstraintManagement().
| bool WPropertyVariableTest::m_testTemporary2 |
A temporary holder for some value.
Definition at line 55 of file WPropertyVariable_test.h.
Referenced by setTemporary2(), and testClone().
1.8.1