The three elements of a complete test fixture are coded as entry points in a COBOL program. The entry points shown here are using call prototypes found in the mfunit.cpy copybook, available from the cpylib folder of your product installation directory. If you are unable to use the copybook due to its level-78 items, which are not supported with mainframe dialects, you must specify the following entry point names:
The three elements are:
... entry MFU-TC-SETUP-PREFIX & "MyTestCase" //initial setup code goes here// goback ...
... entry MFU-TC-PREFIX & "MyTestCase" //test case code goes here// goback ...
... entry MFU-TC-TEARDOWN-PREFIX & "MyTestCase" //clean-up code goes here// goback ...
If you have multiple test cases, each must have their own setup and teardown. COBOL programs that contain more than one test fixture are commonly referred to as test suites.
These sections can appear in your code in any order, but are run in the order shown here.