#include <TestWeibullSnagMort.h>
Public Member Functions | |
void | TestWeibullSnagMort () |
Encapsulates all the testing functions together. | |
void | TestNormalProcessing (clSimManager *p_oSimManager) |
Tests the mortality classes. | |
void | TestExceptionProcessing (clSimManager *p_oSimManager) |
Tests exception processing. | |
void | TestBackwardsCompatibility (clSimManager *p_oSimManager) |
This tests backwards compatibility with version 1.0. | |
Protected Member Functions | |
char * | WriteXMLFile1 () |
Writes a parameter file with the specifications given for TestWeibullSnagMort(), run 1. | |
char * | WriteXMLFile2 () |
Writes a parameter file with the specifications given for TestWeibullSnagMort, run 2. | |
char * | WriteXMLFile3 () |
Writes a parameter file with the specifications given for TestBackwardsCompatibility(). | |
char * | WriteXMLErrorFile1 () |
Writes a file where the size classes overlap. | |
char * | WriteXMLErrorFile2 () |
Writes a file where a tree type other than snag is assigned to the behavior. |
void clTestWeibullSnagMort::TestBackwardsCompatibility | ( | clSimManager * | p_oSimManager | ) |
This tests backwards compatibility with version 1.0.
This will enter a parameter file where the size class definitions are in the old style as single values. This tests to make sure that the single values are assigned to all species. This runs a test like TestNormalProcessing, if all size classes were the same as species 1. WriteXMLFile3 is used for setup.
void clTestWeibullSnagMort::TestExceptionProcessing | ( | clSimManager * | p_oSimManager | ) |
Tests exception processing.
Tests the following error conditions:
p_oSimManager | Object to run the testing. |
void clTestWeibullSnagMort::TestNormalProcessing | ( | clSimManager * | p_oSimManager | ) |
Tests the mortality classes.
First run: WriteXMLFile1() creates the parameter file. The file has the following characteristics:
Second run: WriteXMLFile2() creates the parameter file. The file has the following characteristics:
p_oSimManager | Object to run the testing. |
char* clTestWeibullSnagMort::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes a file where the size classes overlap.
char* clTestWeibullSnagMort::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes a file where a tree type other than snag is assigned to the behavior.
char* clTestWeibullSnagMort::WriteXMLFile1 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestWeibullSnagMort(), run 1.
char* clTestWeibullSnagMort::WriteXMLFile2 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestWeibullSnagMort, run 2.
char* clTestWeibullSnagMort::WriteXMLFile3 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestBackwardsCompatibility().