Inherits junit::framework::TestCase.
Public Member Functions | |
void | testValidateData () |
Tests the ValidateData method. | |
void | testTabDelimTreeMapReading () |
Tests reading a tab delimited tree map. | |
void | testTreeClass () |
Tests reading multiple Tree maps. | |
void | testXMLTreeMapReading () |
Tests reading XML Tree maps. | |
Protected Member Functions | |
void | VerifyXMLTreeMap (TreePopulation oPop, int iStartIndex) |
Verifies the trees added by the XML Tree map. | |
String | WriteTabTreeMap1 () throws java.io.IOException |
Writes a map to create trees. | |
String | WriteTabTreeMap2 () throws java.io.IOException |
Writes a map to create trees. | |
String | WriteTabTreeMap3 () throws java.io.IOException |
Writes a map to create trees. | |
String | WriteTabTreeMap4 () throws java.io.IOException |
Writes a map to create trees. | |
String | WriteTabTreeMap5 () throws java.io.IOException |
Writes a map with an error. | |
String | WriteTabTreeMap6 () throws java.io.IOException |
Writes a map with an error. | |
String | WriteTabTreeMap7 () throws java.io.IOException |
Writes a map with an error. | |
String | WriteTabTreeMap8 () throws java.io.IOException |
Writes a map with an error. | |
String | WriteTabTreeMap9 () throws java.io.IOException |
Writes a map with an error. | |
String | WriteXMLTreeMap1 () throws ModelException |
Writes a Tree map file. | |
String | WriteXMLTreeMap2 () throws ModelException |
Writes a tree map file. | |
String | WriteErrorXMLTreeMap1 () throws ModelException |
Writes a bad Tree map file. | |
String | WriteErrorXMLTreeMap2 () throws ModelException |
Writes a bad tree map file. | |
String | WriteErrorXMLTreeMap3 () throws ModelException |
Writes a bad Tree map file. | |
String | WriteErrorXMLTreeMap4 () throws ModelException |
Writes a bad tree map file. | |
Private Member Functions | |
String | WriteTreeMapParFile () throws java.io.IOException |
Writes a parameter file for validating tree map reading. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
void javawrapper.TestTreePopulation.testValidateData | ( | ) |
Tests the ValidateData method.
void javawrapper.TestTreePopulation.testTabDelimTreeMapReading | ( | ) |
Tests reading a tab delimited tree map.
void javawrapper.TestTreePopulation.testTreeClass | ( | ) |
void javawrapper.TestTreePopulation.testXMLTreeMapReading | ( | ) |
Tests reading XML Tree maps.
void javawrapper.TestTreePopulation.VerifyXMLTreeMap | ( | TreePopulation | oPop, | |
int | iStartIndex | |||
) | [protected] |
Verifies the trees added by the XML Tree map.
oPop | TreePopulation object containing the trees. | |
iStartIndex | The index at which to start verifying the trees. |
String javawrapper.TestTreePopulation.WriteTabTreeMap1 | ( | ) | throws java.io.IOException [protected] |
Writes a map to create trees.
This file has no trees.
IOException | if there is an IO problem. |
String javawrapper.TestTreePopulation.WriteTabTreeMap2 | ( | ) | throws java.io.IOException [protected] |
Writes a map to create trees.
This file has one tree.
IOException | if there is an IO problem. |
String javawrapper.TestTreePopulation.WriteTabTreeMap3 | ( | ) | throws java.io.IOException [protected] |
Writes a map to create trees.
This file has several trees.
IOException | if there is an IO problem. |
String javawrapper.TestTreePopulation.WriteTabTreeMap4 | ( | ) | throws java.io.IOException [protected] |
Writes a map to create trees.
This file has several trees, including some outside the plot.
IOException | if there is an IO problem. |
String javawrapper.TestTreePopulation.WriteTabTreeMap5 | ( | ) | throws java.io.IOException [protected] |
Writes a map with an error.
This file has an unrecognized species.
IOException | if there is an IO problem. |
String javawrapper.TestTreePopulation.WriteTabTreeMap6 | ( | ) | throws java.io.IOException [protected] |
Writes a map with an error.
This file has an unrecognized life history stage.
IOException | if there is an IO problem. |
String javawrapper.TestTreePopulation.WriteTabTreeMap7 | ( | ) | throws java.io.IOException [protected] |
Writes a map with an error.
This file has a negative diameter.
IOException | if there is an IO problem. |
String javawrapper.TestTreePopulation.WriteTabTreeMap8 | ( | ) | throws java.io.IOException [protected] |
Writes a map with an error.
This file has a negative height.
IOException | if there is an IO problem. |
String javawrapper.TestTreePopulation.WriteTabTreeMap9 | ( | ) | throws java.io.IOException [protected] |
Writes a map with an error.
This file has an invalid format.
IOException | if there is an IO problem. |
String javawrapper.TestTreePopulation.WriteXMLTreeMap1 | ( | ) | throws ModelException [protected] |
Writes a Tree map file.
There are all four kinds of data members. This is actually a parameter file with a Tree map in it. It also contains incompletely defined trees (don't have X, Y, and diameter), and those trees should be eliminated.
ModelException |
String javawrapper.TestTreePopulation.WriteXMLTreeMap2 | ( | ) | throws ModelException [protected] |
Writes a tree map file.
There are all four kinds of data members, with different codes from those written in WriteXMLTreeMap1. The species list is also in a different order. This does not write a full parameter file, but a fake timestep file.
ModelException |
String javawrapper.TestTreePopulation.WriteErrorXMLTreeMap1 | ( | ) | throws ModelException [protected] |
Writes a bad Tree map file.
One of the X values is beyond the plot.
ModelException | if there is a problem writing the file. |
String javawrapper.TestTreePopulation.WriteErrorXMLTreeMap2 | ( | ) | throws ModelException [protected] |
Writes a bad tree map file.
One of the X values is negative the plot.
ModelException | if there is a problem writing the file. |
String javawrapper.TestTreePopulation.WriteErrorXMLTreeMap3 | ( | ) | throws ModelException [protected] |
Writes a bad Tree map file.
One of the Y values is beyond the plot.
ModelException | if there is a problem writing the file. |
String javawrapper.TestTreePopulation.WriteErrorXMLTreeMap4 | ( | ) | throws ModelException [protected] |
Writes a bad tree map file.
One of the Y values is beyond the plot.
ModelException | if there is a problem writing the file. |
String javawrapper.TestTreePopulation.WriteTreeMapParFile | ( | ) | throws java.io.IOException [private] |
Writes a parameter file for validating tree map reading.
IOException | if there is a problem writing to the file. |