javawrapper.TestPlantingBehaviors Class Reference

Tests the PlantingBehavior class. More...

Inherits junit::framework::TestCase.

List of all members.

Public Member Functions

void testAddPlantingData () throws ModelException
 Tests the AddPlantingData method.
void testReadXML ()
 Tests parameter file reading.
void testChangeOfPlotResolution ()
 Tests when there's a change of plot resolution.
void testChangeOfSpecies ()
 Tests change of species.
void testCopySpecies ()
 Tests copying of species.

Protected Member Functions

void setUp () throws Exception
 Does set up by creating the test object.
void tearDown () throws Exception
 Does tear down.
String WriteXMLFile1 () throws ModelException
 This writes an XML file to test value setting.
String WriteXMLFile2 () throws ModelException
 This writes an XML file to test value setting.
String WriteXMLFile3 () throws ModelException
 This writes an XML file to test value setting.

Private Attributes

PlantingBehaviors m_oPlantingBehaviors = null
 Test object.


Detailed Description

Tests the PlantingBehavior class.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)
May 24, 2004: Added testing of XML parsing (LEM)

Member Function Documentation

void javawrapper.TestPlantingBehaviors.setUp (  )  throws Exception [protected]

Does set up by creating the test object.

Exceptions:
Exception Won't.

void javawrapper.TestPlantingBehaviors.tearDown (  )  throws Exception [protected]

Does tear down.

Exceptions:
Exception Won't.

void javawrapper.TestPlantingBehaviors.testAddPlantingData (  )  throws ModelException

Tests the AddPlantingData method.

Exceptions:
ModelException if a test fails.

void javawrapper.TestPlantingBehaviors.testReadXML (  ) 

Tests parameter file reading.

void javawrapper.TestPlantingBehaviors.testChangeOfPlotResolution (  ) 

Tests when there's a change of plot resolution.

void javawrapper.TestPlantingBehaviors.testChangeOfSpecies (  ) 

Tests change of species.

void javawrapper.TestPlantingBehaviors.testCopySpecies (  ) 

Tests copying of species.

String javawrapper.TestPlantingBehaviors.WriteXMLFile1 (  )  throws ModelException [protected]

This writes an XML file to test value setting.

Returns:
Name of file.
Exceptions:
ModelException if there is an IO problem.

Edit history:
------------------
May 24, 2004: Created (LEM)

String javawrapper.TestPlantingBehaviors.WriteXMLFile2 (  )  throws ModelException [protected]

This writes an XML file to test value setting.

Returns:
Name of file.
Exceptions:
ModelException if there is an IO problem.

Edit history:
------------------
May 24, 2004: Created (LEM)

String javawrapper.TestPlantingBehaviors.WriteXMLFile3 (  )  throws ModelException [protected]

This writes an XML file to test value setting.

Returns:
Name of file.
Exceptions:
ModelException if there is an IO problem.


Member Data Documentation

Test object.


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