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

The tests for our subject class. More...

#include <WSubject_test.h>

+ Inheritance diagram for WSubjectTest:
+ Collaboration diagram for WSubjectTest:

Public Member Functions

void testInstantiation (void)
 Test instantiation of objects of WSubject class. More...
 
void testInstantiationWithName (void)
 Test instantiation of objects of WSubject class with name. More...
 
void TestConstructorWithInfo ()
 Test whether we have put the info where it belongs and intialized the rest. More...
 
void testGetName ()
 Test whether we can retrieve the right info with getName function. More...
 
void testAddGetDataSet ()
 Test adding and iterating of data sets. More...
 
void testGetNumberOfDataSet ()
 Test getting number of datasets. More...
 

Detailed Description

The tests for our subject class.

Definition at line 39 of file WSubject_test.h.

Member Function Documentation

◆ testAddGetDataSet()

void WSubjectTest::testAddGetDataSet ( )
inline

Test adding and iterating of data sets.

Definition at line 85 of file WSubject_test.h.

References WSubject::addDataSet(), WSubject::getDatasets(), WSubject::m_datasets, and WSharedSequenceContainer< S >::size().

+ Here is the call graph for this function:

◆ TestConstructorWithInfo()

void WSubjectTest::TestConstructorWithInfo ( )
inline

Test whether we have put the info where it belongs and intialized the rest.

Definition at line 62 of file WSubject_test.h.

References WPersonalInformation::createDummyInformation(), and WSubject::m_personalInfo.

+ Here is the call graph for this function:

◆ testGetName()

void WSubjectTest::testGetName ( )
inline

Test whether we can retrieve the right info with getName function.

Definition at line 73 of file WSubject_test.h.

References WPersonalInformation::createDummyInformation(), WPersonalInformation::getLastName(), WSubject::getName(), WPersonalInformation::setLastName(), and WPersonalInformation::setSubjectID().

+ Here is the call graph for this function:

◆ testGetNumberOfDataSet()

void WSubjectTest::testGetNumberOfDataSet ( )
inline

Test getting number of datasets.

Definition at line 112 of file WSubject_test.h.

References WSubject::addDataSet(), WSubject::m_datasets, and WSharedSequenceContainer< S >::size().

+ Here is the call graph for this function:

◆ testInstantiation()

void WSubjectTest::testInstantiation ( void  )
inline

Test instantiation of objects of WSubject class.

Definition at line 45 of file WSubject_test.h.

◆ testInstantiationWithName()

void WSubjectTest::testInstantiationWithName ( void  )
inline

Test instantiation of objects of WSubject class with name.

Definition at line 53 of file WSubject_test.h.

References WPersonalInformation::createDummyInformation().

+ Here is the call graph for this function:

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