cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

do I need a test double for 'me' method call in method under test?

sh4il3sh
Participant
0 Likes
361

Hi,
I have a method for which I am writing ABAP Unit test:

 

METHOD do_sth.
"Below method call sets a global attribute value
me->get_facet( ).

"Below method call returns internal table
lt_catlog = me->build_catalog( ).

**other code in method**

ENDMETHOD.

 

do I need to mock the above two method calls as well? how can I achieve this?
I think get_facet( ) and build_catalog( ) calls need mocking. Moreover I have already written test for these two methods individually.

Accepted Solutions (0)

Answers (0)