mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
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>
This commit is contained in:
parent
53790c3770
commit
20c714889f
|
@ -22,8 +22,6 @@ CLASS ltcl_repo_online IMPLEMENTATION.
|
||||||
DATA: ls_provider_urls TYPE ty_show_url_test,
|
DATA: ls_provider_urls TYPE ty_show_url_test,
|
||||||
lt_test_urls TYPE ty_show_url_tests,
|
lt_test_urls TYPE ty_show_url_tests,
|
||||||
lv_testhash TYPE zif_abapgit_definitions=>ty_sha1 VALUE 'my-SHA1-hash',
|
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,
|
lo_cut TYPE REF TO zcl_abapgit_git_url,
|
||||||
lv_show_url TYPE zif_abapgit_persistence=>ty_repo-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.
|
APPEND ls_provider_urls TO lt_test_urls.
|
||||||
|
|
||||||
LOOP AT lt_test_urls ASSIGNING <ls_provider_urls>.
|
LOOP AT lt_test_urls ASSIGNING <ls_provider_urls>.
|
||||||
ls_online_repo-key = 'TEST'.
|
|
||||||
ls_online_repo-url = <ls_provider_urls>-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(
|
lv_show_url = lo_cut->get_default_commit_display_url(
|
||||||
iv_repo_url = lr_test_repo->get_url( )
|
iv_repo_url = <ls_provider_urls>-repo_url
|
||||||
iv_hash = lv_testhash ).
|
iv_hash = lv_testhash ).
|
||||||
|
|
||||||
cl_aunit_assert=>assert_equals( exp = <ls_provider_urls>-show_url
|
cl_abap_unit_assert=>assert_equals(
|
||||||
act = lv_show_url
|
exp = <ls_provider_urls>-show_url
|
||||||
quit = cl_aunit_assert=>no ).
|
act = lv_show_url ).
|
||||||
ENDLOOP.
|
ENDLOOP.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user