You want to check the behavior of an ordinary class ZCL_ORDINARY with class LTCL_TEST. How do you specify LTCL_TEST as a test class?
ABAP Unit test classes are declared with the addition FOR TESTING in the class definition. RAP test guides also show the same ABAP Unit pattern for local test classes:
CLASS ltcl_sc_r_agency DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
This is the canonical way to mark an ABAP class as a test class.
Currently there are no comments in this discussion, be the first to comment!