ABAP Test Double Framework

匿名 (未验证) 提交于 2019-12-02 23:57:01

https://blogs.sap.com/2015/01/05/abap-test-double-framework-an-introduction/

1: 创建接口ZIF_TD_CURRENCY_CONVER

interface ZIF_TD_CURRENCY_CONVER   public .    EVENTS new_currency_code EXPORTING VALUE(currency_code) TYPE string.    METHODS convert     IMPORTING               amount          TYPE i               source_currency TYPE string               target_currency TYPE string     RETURNING VALUE(result)  TYPE i     RAISING  cx_td_currency_exception.    METHODS convert_to_base_currency     IMPORTING       amount          TYPE i       source_currency  TYPE string     EXPORTING       base_currency    TYPE string       base_curr_amount TYPE i.  endinterface.

3:创建一个类

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!