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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | 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 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | CLASS ltcl_apack_manifest_reader DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS: setup RAISING cx_static_check, manifest_descriptor FOR TESTING RAISING cx_static_check, verify_own_descriptor IMPORTING is_manifest_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor. DATA: mo_manifest_reader TYPE REF TO zcl_abapgit_apack_reader. ENDCLASS. CLASS ltcl_apack_manifest_reader IMPLEMENTATION. METHOD manifest_descriptor. verify_own_descriptor( mo_manifest_reader->get_manifest_descriptor( ) ). ENDMETHOD. METHOD setup. DATA: ls_apack_manifest_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor. ls_apack_manifest_descriptor-group_id = 'github.com/abapGit'. ls_apack_manifest_descriptor-artifact_id = 'abapGit'. ls_apack_manifest_descriptor-version = '1.42'. ls_apack_manifest_descriptor-git_url = 'https://github.com/abapGit/abapGit.git'. mo_manifest_reader = zcl_abapgit_apack_reader=>create_instance( '$TMP' ). mo_manifest_reader->set_manifest_descriptor( ls_apack_manifest_descriptor ). ENDMETHOD. METHOD verify_own_descriptor. cl_abap_unit_assert=>assert_not_initial( is_manifest_descriptor ). cl_abap_unit_assert=>assert_equals( exp = 'github.com/abapGit' act = is_manifest_descriptor-group_id ). cl_abap_unit_assert=>assert_equals( exp = 'abapGit' act = is_manifest_descriptor-artifact_id ). cl_abap_unit_assert=>assert_equals( exp = '1.42' act = is_manifest_descriptor-version ). " Repository type is added automatically by serializer later cl_abap_unit_assert=>assert_initial( is_manifest_descriptor-repository_type ). cl_abap_unit_assert=>assert_equals( exp = 'https://github.com/abapGit/abapGit.git' act = is_manifest_descriptor-git_url ). cl_abap_unit_assert=>assert_initial( is_manifest_descriptor-dependencies ). ENDMETHOD. ENDCLASS. |