From 20c714889fb3b4bbc1dfe08e5e5df478c4efb7bf Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Tue, 24 Nov 2020 08:00:36 +0100 Subject: [PATCH] ZCL_ABAPGIT_GIT_URL, remove repo usage (#4225) * ZCL_ABAPGIT_GIT_URL, remove repo usage https://github.com/abapGit/abapGit/issues/2127#issuecomment-732262897, first part of C * Update zcl_abapgit_git_url.clas.testclasses.abap * Update src/git_platform/zcl_abapgit_git_url.clas.testclasses.abap Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> --- .../zcl_abapgit_git_url.clas.testclasses.abap | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/git_platform/zcl_abapgit_git_url.clas.testclasses.abap b/src/git_platform/zcl_abapgit_git_url.clas.testclasses.abap index 687f1648f..4338a55be 100644 --- a/src/git_platform/zcl_abapgit_git_url.clas.testclasses.abap +++ b/src/git_platform/zcl_abapgit_git_url.clas.testclasses.abap @@ -22,8 +22,6 @@ CLASS ltcl_repo_online IMPLEMENTATION. DATA: ls_provider_urls TYPE ty_show_url_test, lt_test_urls TYPE ty_show_url_tests, lv_testhash TYPE zif_abapgit_definitions=>ty_sha1 VALUE 'my-SHA1-hash', - ls_online_repo TYPE zif_abapgit_persistence=>ty_repo, - lr_test_repo TYPE REF TO zcl_abapgit_repo_online, lo_cut TYPE REF TO zcl_abapgit_git_url, lv_show_url TYPE zif_abapgit_persistence=>ty_repo-url. @@ -45,22 +43,13 @@ CLASS ltcl_repo_online IMPLEMENTATION. APPEND ls_provider_urls TO lt_test_urls. LOOP AT lt_test_urls ASSIGNING . - ls_online_repo-key = 'TEST'. - ls_online_repo-url = -repo_url. - ls_online_repo-branch_name = |master|. - ls_online_repo-offline = abap_false. - - CREATE OBJECT lr_test_repo - EXPORTING - is_data = ls_online_repo. - lv_show_url = lo_cut->get_default_commit_display_url( - iv_repo_url = lr_test_repo->get_url( ) + iv_repo_url = -repo_url iv_hash = lv_testhash ). - cl_aunit_assert=>assert_equals( exp = -show_url - act = lv_show_url - quit = cl_aunit_assert=>no ). + cl_abap_unit_assert=>assert_equals( + exp = -show_url + act = lv_show_url ). ENDLOOP. ENDMETHOD.