Test class for triplex lines. More...
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_triplex_line () |
Test the creation of an object. |
Test class for triplex lines.
This class contains unit tests for different configurations of triplex lines.
Definition at line 15 of file triplexline_test.h.
void triplex_line_tests::test_triplex_line | ( | ) | [inline] |
Test the creation of an object.
Part of this test 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. This function performs a unit test for triplex lines. Triplex lines can't be tested independantly, but require a node at either end. In this test, we will create 2 nodes, anchor them at either end of a single triplex line, and then perform a series of sync's to perform the sweeps that will perform the calculations to find the current in the line at a given timestamp.
Definition at line 57 of file triplexline_test.h.