expectTerminate
expectTerminate(expect: Boolean);
The expectTerminate method of the JadeTestCase class is invoked by a user test method to register that the test is expected to terminate.
A test method that is terminated is considered to have failed, unless this method has first been called with the value of the expect parameter evaluating to true.
In the following example, the terminate instruction is invoked, test execution will stop, and the test will be considered to have passed.
someTest() unitTest;
begin
expectTerminate(true);
terminate;
write "this won't happen!";
epilog
write "execution continues in the epilog";
end;
2022.0.02 and higher