Start of Content Area
Test Double (BC-ABA)

ABAP Runtime Environment (BC-ABA)

Simulates a component required for the execution of a module test (also called "DOC", or depended-on component), but which cannot be used by the test for technical or organizational reasons. For example, the component may cause unwanted changes to be made in the system, the component may need to be configured, or it may require persistent data.

A test double simulates the interface and the behavior of the "depended-on component" in the scope required for the module test to run.

In an ABAP module test, methods are used to construct ([class_]setup) a test double as a part of the fixture of the module test, and deconstruct it ([class_]teardown).

End of Content Area