2024 Aug 27 9:29 PM - edited 2024 Aug 27 9:30 PM
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.
Request clarification before answering.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.