All files / src/objects/texts zcl_abapgit_properties_file.clas.testclasses.abap

100% Statements 28/28
100% Branches 1/1
100% Functions 1/1
100% Lines 28/28

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 291x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
CLASS ltcl_test DEFINITION FINAL FOR TESTING
  DURATION SHORT
  RISK LEVEL HARMLESS.
 
  PUBLIC SECTION.
  PROTECTED SECTION.
  PRIVATE SECTION.
    METHODS assert_lang FOR TESTING RAISING cx_static_check.
 
ENDCLASS.
 
CLASS ltcl_test IMPLEMENTATION.
 
  METHOD assert_lang.
 
    DATA: lo_cut TYPE REF TO zcl_abapgit_properties_file.
    DATA: lv_act TYPE laiso.
    CREATE OBJECT lo_cut
      EXPORTING
        iv_lang = 'DE'.
    lv_act = lo_cut->zif_abapgit_i18n_file~lang( ).
 
    cl_abap_unit_assert=>assert_equals(
      exp = 'DE'
      act = lv_act ).
  ENDMETHOD.
 
ENDCLASS.