Skip to Content
0

Local object dependency

Nov 18, 2016 at 06:26 PM

14

avatar image

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 ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers