#include <TestCaseMatlabDataItemPID_1.h>
Inheritance diagram for TestCaseMatlabDataItemPID_1:

DC_MatlabDataItemPID class.
One instance of this class and two DC_DataItem objects are created and the following tests are performed:
getNumberOfParameters is correct. HAVE_SIMULINK is defined: propagate() is invoked twice. After each call it is verified that the output is properly updated. reset() method is invoked and it is verified that the state is reverted to the default value. The state of the Simulink model can not be accessed, therefore this check is performed by examining the output value after calling propagate(). reset() is called, the Kp parameter is set to 0.0 and propagate is invoked twice. It is verified that the output reflects the change in the parameter value. HAVE_SIMULINK violates project-specific coding rule PR9.2. This is necessary to allow construction of the regression test for users who do not have access to the Matlab/simulink suite. <p/> Simulink is a trademark of The Mathworks, Inc.
Definition at line 52 of file TestCaseMatlabDataItemPID_1.h.
Public Member Functions | |
| TestCaseMatlabDataItemPID_1 (void) | |
| Set the identifier and the name of the test case to, respectively, ID_MATLABDATAITEMPID*10+1 and "TestCaseMatlabDataItemPID_1". | |
| virtual void | runTestCase (void) |
| Execute the test case. | |
|
|
Execute the test case. See class comment for details. Reimplemented from TestCaseGenericSetUp. Definition at line 23 of file TestCaseMatlabDataItemPID_1.cpp. |