Skip to Content
May 01 at 09:31 AM

Is there a test framework to mock ABAP OData Client Proxy for Unit Testing?

113 Views Last edit May 01 at 12:15 PM 4 rev

So I created a Model Class that provides data from a remote OData service.

Here's the source code: zcl_product_model_es

This class is making use of the OData Client Proxy for OData V2 (class interface `/iwbep/if_cp_client_proxy`).

Is there a test framework that intercepts this client proxy and allows the capability for mocking its response for use in unit testing? I tried to check the official documentation, but can't find any.

I'm looking for something similar to RAP test doubles interfaces like if_cds_test_environment and if_osql_test_environment. See Basic Test Class Structure.

Thanks and regards,