mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
fix language dependent unit test (#5799)
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
parent
90a55d0c0f
commit
ee4320db6b
|
@ -264,7 +264,7 @@ CLASS ltcl_i18n IMPLEMENTATION.
|
||||||
<ls_result> LIKE LINE OF lt_result,
|
<ls_result> LIKE LINE OF lt_result,
|
||||||
<ls_i18n_langs> LIKE LINE OF lt_i18n_langs.
|
<ls_i18n_langs> LIKE LINE OF lt_i18n_langs.
|
||||||
|
|
||||||
" Assumption: Table T100 has English and German description
|
" Assumption: Table T100 has at least English and German description
|
||||||
APPEND INITIAL LINE TO lt_tadir ASSIGNING <ls_tadir>.
|
APPEND INITIAL LINE TO lt_tadir ASSIGNING <ls_tadir>.
|
||||||
<ls_tadir>-object = 'TABL'.
|
<ls_tadir>-object = 'TABL'.
|
||||||
<ls_tadir>-obj_name = 'T100'.
|
<ls_tadir>-obj_name = 'T100'.
|
||||||
|
@ -296,16 +296,10 @@ CLASS ltcl_i18n IMPLEMENTATION.
|
||||||
lo_input->zif_abapgit_xml_input~read( EXPORTING iv_name = 'I18N_LANGS'
|
lo_input->zif_abapgit_xml_input~read( EXPORTING iv_name = 'I18N_LANGS'
|
||||||
CHANGING cg_data = lt_i18n_langs ).
|
CHANGING cg_data = lt_i18n_langs ).
|
||||||
|
|
||||||
cl_abap_unit_assert=>assert_equals(
|
cl_abap_unit_assert=>assert_not_initial( lt_i18n_langs ).
|
||||||
act = lines( lt_i18n_langs )
|
|
||||||
exp = 1 ).
|
|
||||||
|
|
||||||
READ TABLE lt_i18n_langs ASSIGNING <ls_i18n_langs> INDEX 1.
|
READ TABLE lt_i18n_langs ASSIGNING <ls_i18n_langs> WITH KEY table_line = 'D'.
|
||||||
ASSERT sy-subrc = 0.
|
cl_abap_unit_assert=>assert_subrc( ).
|
||||||
|
|
||||||
cl_abap_unit_assert=>assert_equals(
|
|
||||||
act = <ls_i18n_langs>
|
|
||||||
exp = 'D' ).
|
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user