Test Methods

Definition

Test methods are parameterless instance methods of Test Classes and are declared using the FOR TESTING addition to the METHODS statement. Each test method corresponds to an ABAP Unit test. In a test method, the test code is generally implemented by calling production sections of the program under specific starting conditions (fixtures) and checking the results or statuses with the methods of the system class CL_AUNIT_ASSERT.

Currently, all instance methods in global test classes are automatically test methods.