Skip to content

Empty catch should be removed! But not in test class #332

@licheng5625

Description

@licheng5625

In our test classes, we are using test double framework .
Here is the syntax how to config the call.
cl_abap_testdouble=>configure_call( double = item )->ignore_all_parameters( )->returning( ref_item ).
TRY.
item->get_referenced_item( logger = logger ).
CATCH cx_apoc_object.
ENDTRY. " exception for apoc object class

We need the dummy try and catch to avoid ATC check, which trigger the empty catch error all the time.

Please review if this check makes sence in test class.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions