javawrapper::TestAnalysisBehaviors Class Reference

Tests the AnalysisBehaviors class. More...

Inheritance diagram for javawrapper::TestAnalysisBehaviors:

javawrapper::ModelTestCase List of all members.

Public Member Functions

void testReadXMLVolumeSettings ()
 Tests reading of parameter file XML volume calculator settings.
void testReadXMLBiomassSettings ()
 Tests reading of parameter file XML biomass calculator settings.
void testFormatDataForDisplay ()
 Tests to make sure the appropriate parameters are displayed for each behavior.
void testValidateData () throws ModelException
 Tests ValidateData() for data analysis behaviors.

Protected Member Functions

String WriteVolumeXMLFile1 () throws java.io.IOException
 Writes a valid file for testing parameter file reading of volume calculator behavior parameters.
String WriteBoleVolumeXMLFile1 () throws java.io.IOException
 Writes a valid file for testing parameter file reading of bole volume calculator behavior parameters.
String WriteBiomassXMLFile1 () throws java.io.IOException
 Writes a valid file for testing parameter file reading of biomass calculator behavior parameters.
String WriteVolumeXMLErrorFile1 () throws java.io.IOException
 Writes a file where the stump height is a negative number.
String WriteVolumeXMLErrorFile2 () throws java.io.IOException
 Writes a file where the minimum usable diameter is a negative number.
String WriteVolumeXMLErrorFile3 () throws java.io.IOException
 Writes a file where the segment length is a negative number.
String WriteBoleVolumeErrorXMLFile1 () throws java.io.IOException
 Writes an error file for testing parameter file reading of bole volume calculator behavior parameters.
String WriteBoleVolumeErrorXMLFile2 () throws java.io.IOException
 Writes an error file for testing parameter file reading of bole volume calculator behavior parameters.
String WriteNeutralFile () throws java.io.IOException
 Writes a file with no analysis behaviors.

Private Member Functions

void WriteVolumeCommonStuff (FileWriter oOut) throws java.io. IOException
 Writes common stuff for parameter files validating the volume calculator behavior.
void WriteBoleVolumeCommonStuff (FileWriter oOut) throws java.io. IOException
 Writes common stuff for parameter files validating the bole volume calculator behavior.
void WriteBiomassCommonStuff (FileWriter oOut) throws java.io. IOException
 Writes common stuff for parameter files validating the biomass calculator behavior.

Detailed Description

Tests the AnalysisBehaviors class.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0


Member Function Documentation

void javawrapper::TestAnalysisBehaviors::testValidateData (  )  throws ModelException [inline]

Tests ValidateData() for data analysis behaviors.

Exceptions:
ModelException if the validation happens incorrectly.

void javawrapper::TestAnalysisBehaviors::WriteBiomassCommonStuff ( FileWriter  oOut  )  throws java.io. IOException [inline, private]

Writes common stuff for parameter files validating the biomass calculator behavior.

Parameters:
oOut FileWriter File to write to.
Exceptions:
IOException if there is a problem writing to the file.

String javawrapper::TestAnalysisBehaviors::WriteBiomassXMLFile1 (  )  throws java.io.IOException [inline, protected]

Writes a valid file for testing parameter file reading of biomass calculator behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

void javawrapper::TestAnalysisBehaviors::WriteBoleVolumeCommonStuff ( FileWriter  oOut  )  throws java.io. IOException [inline, private]

Writes common stuff for parameter files validating the bole volume calculator behavior.

Parameters:
oOut FileWriter File to write to.
Exceptions:
IOException if there is a problem writing to the file.

String javawrapper::TestAnalysisBehaviors::WriteBoleVolumeErrorXMLFile1 (  )  throws java.io.IOException [inline, protected]

Writes an error file for testing parameter file reading of bole volume calculator behavior parameters.

This has a form class of less than 60.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper::TestAnalysisBehaviors::WriteBoleVolumeErrorXMLFile2 (  )  throws java.io.IOException [inline, protected]

Writes an error file for testing parameter file reading of bole volume calculator behavior parameters.

This has a form class of more than 100.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper::TestAnalysisBehaviors::WriteBoleVolumeXMLFile1 (  )  throws java.io.IOException [inline, protected]

Writes a valid file for testing parameter file reading of bole volume calculator behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper::TestAnalysisBehaviors::WriteNeutralFile (  )  throws java.io.IOException [inline, protected]

Writes a file with no analysis behaviors.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

void javawrapper::TestAnalysisBehaviors::WriteVolumeCommonStuff ( FileWriter  oOut  )  throws java.io. IOException [inline, private]

Writes common stuff for parameter files validating the volume calculator behavior.

Parameters:
oOut FileWriter File to write to.
Exceptions:
IOException if there is a problem writing to the file.

String javawrapper::TestAnalysisBehaviors::WriteVolumeXMLErrorFile1 (  )  throws java.io.IOException [inline, protected]

Writes a file where the stump height is a negative number.

Tests volume calculator behavior validation.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper::TestAnalysisBehaviors::WriteVolumeXMLErrorFile2 (  )  throws java.io.IOException [inline, protected]

Writes a file where the minimum usable diameter is a negative number.

Tests volume calculator behavior validation.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper::TestAnalysisBehaviors::WriteVolumeXMLErrorFile3 (  )  throws java.io.IOException [inline, protected]

Writes a file where the segment length is a negative number.

Tests volume calculator behavior validation.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper::TestAnalysisBehaviors::WriteVolumeXMLFile1 (  )  throws java.io.IOException [inline, protected]

Writes a valid file for testing parameter file reading of volume calculator behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.


The documentation for this class was generated from the following file:
Generated on Fri Jan 5 14:00:39 2007 for SORTIE Java Interface by  doxygen 1.4.7