javawrapper.TestOutputBehaviors Class Reference

Tests the OutputBehaviors class. More...

Inherits junit::framework::TestCase.

List of all members.

Public Member Functions

void testAddDetailedGridSettings ()
 Tests the AddDetailedGridSettings method.
void testAddDetailedTreeSettings ()
 Tests the AddDetailedTreeSettings method.
void testClearDetailedGridSettings ()
 Tests the ClearDetailedGridSettings method.
void testClearDetailedTreeSettings ()
 Tests the ClearDetailedTreeSettings method.
void testReadXMLDetailedOutputSettings ()
 Tests reading of parameter file XML rundata settings.
void testChangeOfPlotResolution ()
 Tests shrinking of subplots when the plot resolution is changed.
void testReadXMLShortSettings1 ()
 Tests reading of parameter file XML rundata settings.
void testReadXMLShortSettings2 ()
 Tests reading of parameter file XML rundata settings.
void testChangeOfSpecies ()
 Tests grid settings when species are changed.
void testCopySpecies ()
 Tests output settings when species are copied.

Protected Member Functions

void setUp () throws Exception
 Does set up by creating testing objects.
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.
String WriteXMLFile4 () throws ModelException
 Writes a real-type file, so we can work with actual grids.
String WriteXMLFile5 () throws ModelException
 Writes a real-type file, so we can work with actual grids.
String WriteXMLFile6 () throws ModelException
 This writes an XML file to test value setting.

Private Member Functions

boolean testEquals (DetailedTreeSettings o1, DetailedTreeSettings o2)
 Test two rundata settings for equality.
boolean testEquals (DetailedGridSettings o1, DetailedGridSettings o2)
 Test two rundata settings for equality.

Private Attributes

OutputBehaviors mp_oOutputBehaviors = null
 Object for testing.


Detailed Description

Tests the OutputBehaviors 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.TestOutputBehaviors.setUp (  )  throws Exception [protected]

Does set up by creating testing objects.

Exceptions:
Exception if there is a problem doing setup.

void javawrapper.TestOutputBehaviors.testAddDetailedGridSettings (  ) 

Tests the AddDetailedGridSettings method.

void javawrapper.TestOutputBehaviors.testAddDetailedTreeSettings (  ) 

Tests the AddDetailedTreeSettings method.

void javawrapper.TestOutputBehaviors.testClearDetailedGridSettings (  ) 

Tests the ClearDetailedGridSettings method.

void javawrapper.TestOutputBehaviors.testClearDetailedTreeSettings (  ) 

Tests the ClearDetailedTreeSettings method.

void javawrapper.TestOutputBehaviors.testReadXMLDetailedOutputSettings (  ) 

Tests reading of parameter file XML rundata settings.

Unfortunately, we can't do the grids this way anymore now that I validate data members against existing grids. But we're doing at least some testing of grid reading with testChangeOfSpecies.

void javawrapper.TestOutputBehaviors.testChangeOfPlotResolution (  ) 

Tests shrinking of subplots when the plot resolution is changed.

void javawrapper.TestOutputBehaviors.testReadXMLShortSettings1 (  ) 

Tests reading of parameter file XML rundata settings.

void javawrapper.TestOutputBehaviors.testReadXMLShortSettings2 (  ) 

Tests reading of parameter file XML rundata settings.

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

This writes an XML file to test value setting.

This file contains detailed output only.

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

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

This writes an XML file to test value setting.

This file contains short output settings only, for all (normal) types with everything set to true. It also contains subplots.

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

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

This writes an XML file to test value setting.

This file contains short output settings only, for all (normal) types with a mix of true, false, and absent.

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

String javawrapper.TestOutputBehaviors.WriteXMLFile4 (  )  throws ModelException [protected]

Writes a real-type file, so we can work with actual grids.

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

String javawrapper.TestOutputBehaviors.WriteXMLFile5 (  )  throws ModelException [protected]

Writes a real-type file, so we can work with actual grids.

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

String javawrapper.TestOutputBehaviors.WriteXMLFile6 (  )  throws ModelException [protected]

This writes an XML file to test value setting.

This file contains detailed output only.

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

boolean javawrapper.TestOutputBehaviors.testEquals ( DetailedTreeSettings  o1,
DetailedTreeSettings  o2 
) [private]

Test two rundata settings for equality.

Parameters:
o1 First settings to test.
o2 Second settings to test.
Returns:
True if all settings are the same, false if not.

boolean javawrapper.TestOutputBehaviors.testEquals ( DetailedGridSettings  o1,
DetailedGridSettings  o2 
) [private]

Test two rundata settings for equality.

Parameters:
o1 First settings to test.
o2 Second settings to test.
Returns:
True if all settings are the same, false if not.

void javawrapper.TestOutputBehaviors.testChangeOfSpecies (  ) 

Tests grid settings when species are changed.

void javawrapper.TestOutputBehaviors.testCopySpecies (  ) 

Tests output settings when species are copied.


Member Data Documentation

Object for testing.


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