Inheritance diagram for overhead_line_tests:
This class contains unit tests for different configurations of overhead lines.
Definition at line 10 of file overheadline_test.h.
Public Member Functions | |
overhead_line_tests () | |
void | setUp () |
Called by CPPUnit to ensure that any special pre-testing steps are completed before the tests are executed. | |
void | tearDown () |
void | test_node_create () |
Test the creation of an object. | |
void | test_overhead_line_a () |
This function performs a unit test for overhead lines. | |
void | test_overhead_line_ab () |
void | test_overhead_line_abc_delta () |
void | test_overhead_line_abcn () |
void | test_overhead_line_ac () |
void | test_overhead_line_b () |
void | test_overhead_line_bc () |
void | test_overhead_line_c () |
void overhead_line_tests::test_node_create | ( | ) | [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.
Definition at line 44 of file overheadline_test.h.
References test_helper::get_class_by_name(), and gl_create_object.
void overhead_line_tests::test_overhead_line_a | ( | ) | [inline] |
This function performs a unit test for overhead lines.
Overhead 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 overhead 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 59 of file overheadline_test.h.
References FAILED, test_helper::get_class_by_name(), gl_create_object, s_test_callbacks::init_objects, line_configuration::line_spacing, OBJECTDATA, PC_BOTTOMUP, PC_POSTTOPDOWN, PC_PRETOPDOWN, PHASE_A, PHASE_N, line_configuration::phaseA_conductor, line_configuration::phaseB_conductor, line_configuration::phaseC_conductor, line_configuration::phaseN_conductor, s_test_callbacks::setup_test_ranks, and s_test_callbacks::sync_all.