#include <TestCaseMatlabPointerPID_1.h>
Inheritance diagram for TestCaseMatlabPointerPID_1:
DC_MatlabPointerPID
class.
One instance of this class is 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 51 of file TestCaseMatlabPointerPID_1.h.
Public Member Functions | |
TestCaseMatlabPointerPID_1 (void) | |
Set the identifier and the name of the test case to, respectively, ID_MATLABPOINTERPID*10+1 and "TestCaseMatlabPointerPID_1". | |
virtual void | runTestCase (void) |
Execute the test case. |
|
Execute the test case. See class comment for details. Reimplemented from TestCaseGenericSetUp. Definition at line 22 of file TestCaseMatlabPointerPID_1.cpp. |