javawrapper.TestHarvestBehaviors Class Reference

Tests the Harvest and Natural Disturbance behaviors of the DisturbanceBehaviors class. More...

Inherits junit::framework::TestCase.

List of all members.

Public Member Functions

void testSpeciesChange ()
 This tests that a change of species is correctly handled in the harvest behaviors.
void testSpeciesCopy ()
 This tests that species copying is correctly handled in the harvest behaviors.
void testCompactHarvestList () throws ModelException
 Tests CompactHarvestList method.
void testAddHarvestData ()
 Tests the AddHarvestData method.
void testReadXML ()
 Tests parameter file reading.
void testChangeOfPlotResolution ()
 Tests plot resolution change.

Protected Member Functions

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

Private Attributes

DisturbanceBehaviors m_oHarvestBehaviors = null
 Object on which to perform tests.


Detailed Description

Tests the Harvest and Natural Disturbance behaviors of the DisturbanceBehaviors 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)

Member Function Documentation

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

Does set up by creating the m_oHarvestBehaviors object.

Exceptions:
Exception won't.

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

Does teardown.

Exceptions:
Exception won't.

void javawrapper.TestHarvestBehaviors.testSpeciesChange (  ) 

This tests that a change of species is correctly handled in the harvest behaviors.

void javawrapper.TestHarvestBehaviors.testSpeciesCopy (  ) 

This tests that species copying is correctly handled in the harvest behaviors.

void javawrapper.TestHarvestBehaviors.testCompactHarvestList (  )  throws ModelException

Tests CompactHarvestList method.

Exceptions:
ModelException if a test fails.

void javawrapper.TestHarvestBehaviors.testAddHarvestData (  ) 

Tests the AddHarvestData method.

void javawrapper.TestHarvestBehaviors.testReadXML (  ) 

Tests parameter file reading.

void javawrapper.TestHarvestBehaviors.testChangeOfPlotResolution (  ) 

Tests plot resolution change.

String javawrapper.TestHarvestBehaviors.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:
------------------
April 28, 2004: Submitted in beta version (LEM)


Member Data Documentation

Object on which to perform tests.


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