Skip to content

Test against interfaces, not implementations

A practical consequence of the Test publics, not private internals, type your code under test with an interface

DATA code_under_test TYPE REF TO some_interface.

rather than a class

" anti-pattern
DATA code_under_test TYPE REF TO some_class.
From SAP/styleguides under CC BY 3.0 — more details
Last updated on