climate_module_test Class Reference

Inherits test_helper.

List of all members.


Detailed Description

Id
test.h 1182 2008-12-22 22:08:36Z dchassin
Copyright (C) 2008 Battelle Memorial Institute

Unit test class for the Climate Module. This test class is also being developed as a sample to be used in creating tests for other modules. There are basically 3 steps to creating a CPPUnit test: 1. Write tests - create the methods of the test class that will exercise the module 2. Create test Suite - Call the CPPUnit macros that will create the suite() function which will be called by the test runner 3. Register the test suite with the CPPUnit factory. This is done by using a single macro that takes the name of the test class as a parameter.

Definition at line 29 of file test.h.


Public Member Functions

void setup ()
 Called by CPPUnit to ensure that any special pre-testing steps are completed before the tests are executed.
void test_create ()
 Test the creation of a climate object.

Member Function Documentation

void climate_module_test::test_create (  )  [inline]

Test the creation of a climate object.

Part of this tests includes retrieving the class that this object will represent, creating the object, and testing certain post creation assumptions.

For each feature of the module that we want to test, we should create a separate test function. A function prototype is acceptable here, with the implementation of the method in a .cpp file.

Definition at line 53 of file test.h.

References GETADDR, gl_create_object, and gl_get_property.


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

GridLAB-DTM Version 2.0
An open-source project initiated by the US Department of Energy