TestSimManager Class Reference

Tests the class clSimManager. More...

#include <TestSimManager.h>

List of all members.

Public Member Functions

void TestDoSetup1 ()
 Tests DoSetup().
void TestDoSetup2 ()
 Tests DoSetup().
void TestDoSetup3 ()
 Tests DoSetup().

Static Public Member Functions

static CppUnit::Test * suite ()
 Creates a test suite of all the test cases in this object.

Private Member Functions

char * WriteXMLFile1 ()
 Writes the text of an XML file.
char * WriteXMLFile2 ()
 Writes the text of an XML file.
char * WriteXMLFile3 ()
 Writes the text of an XML file.
char * WriteXMLErrorFile1 ()
 Writes an XML file which contains a data error, to test if the test object will throw an exception.
char * WriteXMLErrorFile2 ()
 Writes an XML file which contains a data error, to test if the test object will throw an exception.
char * WriteXMLErrorFile3 ()
 Writes an XML file which contains a data error, to test if the test object will throw an exception.


Detailed Description

Tests the class clSimManager.


Member Function Documentation

static CppUnit::Test* TestSimManager::suite (  )  [inline, static]

Creates a test suite of all the test cases in this object.

I'm putting it here so it will be easier to see and add new cases to.

Returns:
The test suite.

void TestSimManager::TestDoSetup1 (  ) 

Tests DoSetup().

Creates and parses an XML file, then feeds it to mp_oSimManager(). This parses the file from WriteXMLFile1().

void TestSimManager::TestDoSetup2 (  ) 

Tests DoSetup().

Creates and parses an XML file, then feeds it to mp_oSimManager(). This parses the file from WriteXMLFile2().

void TestSimManager::TestDoSetup3 (  ) 

Tests DoSetup().

Creates and parses an XML file, then feeds it to mp_oSimManager(). This parses the file from WriteXMLFile3().

char* TestSimManager::WriteXMLErrorFile1 (  )  [private]

Writes an XML file which contains a data error, to test if the test object will throw an exception.

Number of timesteps is negative.

Returns:
The filename of the XML file to parse.

char* TestSimManager::WriteXMLErrorFile2 (  )  [private]

Writes an XML file which contains a data error, to test if the test object will throw an exception.

Current timestep is too big.

Returns:
The filename of the XML file to parse.

char* TestSimManager::WriteXMLErrorFile3 (  )  [private]

Writes an XML file which contains a data error, to test if the test object will throw an exception.

Years per timestep is 0.

Returns:
The filename of the XML file to parse.

char* TestSimManager::WriteXMLFile1 (  )  [private]

Writes the text of an XML file.

This file is abbreviated, and will be parsed within the test code itself rather than being passed to the test object for parsing.

This contains a positive random seed, which should become negative.

Returns:
The filename of the XML file to parse.

char* TestSimManager::WriteXMLFile2 (  )  [private]

Writes the text of an XML file.

This file is abbreviated, and will be parsed within the test code itself rather than being passed to the test object for parsing.

This contains a random seed of 0, which should become negative.

Returns:
The filename of the XML file to parse.

char* TestSimManager::WriteXMLFile3 (  )  [private]

Writes the text of an XML file.

This file is abbreviated, and will be parsed within the test code itself rather than being passed to the test object for parsing.

This contains a negative random seed, which should be left alone.

Returns:
The filename of the XML file to parse.


The documentation for this class was generated from the following file:
Generated on Wed Nov 15 11:27:27 2006 for SORTIE C++ Test Documentation by  doxygen 1.4.7