SAP NetWeaver AS ABAP Release 751, ©Copyright 2017 SAP AG. All rights reserved.
ABAP - Keyword Documentation → ABAP - Release-Specific Changes → Changes in Releases 7.5x → Changes in Release 7.50 →
ABAP Unit in Release 7.50
Test Seams and Injections
Test seams and injections have been introduced for unit tests in ABAP Unit. When tests are executed, code wrapped in TEST-SEAM and END-TEST-SEAM as part of production code can be replaced by code from test classes wrapped by TEST-INJECTION and END-TEST-INJECTION.
Test classes with injections must be created in test includes. With the exception of test includes for class pools and function groups, no test includes can currently be created.