javawrapper.TestSubstrateBehaviors Class Reference

Tests the SubstrateBehaviors class. More...

Inheritance diagram for javawrapper.TestSubstrateBehaviors:

javawrapper.ModelTestCase

List of all members.

Public Member Functions

void testBackwardsCompatibility ()
 Tests to make sure old substrate files are properly read.
void testFormatDataForDisplay ()
 Tests to make sure the appropriate parameters are displayed for each behavior.
void testParFileRead ()
 Tests to make sure parameter files are properly read.
void testValidateData () throws ModelException
 Tests ValidateData().
void testChangeOfSpecies ()
 Tests species changes.

Protected Member Functions

String WriteXMLOldFile1 () throws java.io.IOException
 Writes an old-school substrate file to test backwards compatibility.
String WriteXMLOldFile2 () throws java.io.IOException
 Writes a 6.05 substrate file.
String WriteXMLValidFile1 () throws java.io.IOException
 Writes a 6.05 substrate file.
String WriteNeutralFile () throws java.io.IOException
 Writes a file with no analysis behaviors.
String WriteXMLValidFile2 () throws IOException
 Writes a detailed substrate file.

Private Member Functions

void WritePlotAndTrees (FileWriter oOut) throws java.io.IOException
 This writes plot and tree information.


Detailed Description

Tests the SubstrateBehaviors class.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0

Edit history:
------------------
June 3, 2005: Created (LEM)

Member Function Documentation

void javawrapper.TestSubstrateBehaviors.testBackwardsCompatibility (  ) 

Tests to make sure old substrate files are properly read.

void javawrapper.TestSubstrateBehaviors.testFormatDataForDisplay (  ) 

Tests to make sure the appropriate parameters are displayed for each behavior.

void javawrapper.TestSubstrateBehaviors.testParFileRead (  ) 

Tests to make sure parameter files are properly read.

void javawrapper.TestSubstrateBehaviors.testValidateData (  )  throws ModelException

Tests ValidateData().

Exceptions:
ModelException if there's an uncaught validation problem.

void javawrapper.TestSubstrateBehaviors.testChangeOfSpecies (  ) 

Tests species changes.

Even though SubstrateBehaviors doesn't explicitly have code for changing species, this makes sure that it is treated correctly.

String javawrapper.TestSubstrateBehaviors.WriteXMLOldFile1 (  )  throws java.io.IOException [protected]

Writes an old-school substrate file to test backwards compatibility.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
June 3, 2005: Created (LEM)

String javawrapper.TestSubstrateBehaviors.WriteXMLOldFile2 (  )  throws java.io.IOException [protected]

Writes a 6.05 substrate file.

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

String javawrapper.TestSubstrateBehaviors.WriteXMLValidFile1 (  )  throws java.io.IOException [protected]

Writes a 6.05 substrate file.

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

void javawrapper.TestSubstrateBehaviors.WritePlotAndTrees ( FileWriter  oOut  )  throws java.io.IOException [private]

This writes plot and tree information.

Parameters:
oOut FileWriter
Exceptions:
IOException 

String javawrapper.TestSubstrateBehaviors.WriteNeutralFile (  )  throws java.io.IOException [protected]

Writes a file with no analysis behaviors.

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

String javawrapper.TestSubstrateBehaviors.WriteXMLValidFile2 (  )  throws IOException [protected]

Writes a detailed substrate file.

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


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

Generated on Wed Oct 28 14:01:25 2009 for SORTIE Java Interface by  doxygen 1.5.6