Skip to Content
avatar image
Former Member

Local object dependency

Can any one please help me to break the dependency of local object in writing the unit test?

For example, method A which creates the object of another class using local object reference variable in method A.

METHOD A.

DATA lo_ref TYPE REF TO <another_class>

CREATE OBJECT lo_ref.

lo_ref->meth_b( ).

ENDMETHOD.

For the above example, how to write the unit test for Method A by removing the dependency on LO_REF ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers