mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
environment, add tests and fix dump (#2827)
This commit is contained in:
parent
8d87beea60
commit
cd87c97be7
|
@ -68,7 +68,7 @@ CLASS ZCL_ABAPGIT_ENVIRONMENT IMPLEMENTATION.
|
||||||
CALL METHOD ('CL_APJ_SCP_TOOLS')=>('IS_RESTART_REQUIRED')
|
CALL METHOD ('CL_APJ_SCP_TOOLS')=>('IS_RESTART_REQUIRED')
|
||||||
RECEIVING
|
RECEIVING
|
||||||
restart_required = rv_result.
|
restart_required = rv_result.
|
||||||
CATCH cx_sy_dyn_call_illegal_method.
|
CATCH cx_sy_dyn_call_illegal_method cx_sy_dyn_call_illegal_class.
|
||||||
rv_result = abap_false.
|
rv_result = abap_false.
|
||||||
ENDTRY.
|
ENDTRY.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
|
@ -11,7 +11,12 @@ CLASS ltcl_test DEFINITION FOR TESTING
|
||||||
|
|
||||||
METHODS:
|
METHODS:
|
||||||
setup,
|
setup,
|
||||||
is_cloud FOR TESTING.
|
is_sap_cloud_platform FOR TESTING,
|
||||||
|
is_merged FOR TESTING,
|
||||||
|
is_repo_object_changes_allowed FOR TESTING,
|
||||||
|
compare_with_inactive FOR TESTING,
|
||||||
|
is_restart_required FOR TESTING.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,11 +28,39 @@ CLASS ltcl_test IMPLEMENTATION.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD is_cloud.
|
METHOD is_sap_cloud_platform.
|
||||||
|
|
||||||
mi_cut->is_sap_cloud_platform( ).
|
mi_cut->is_sap_cloud_platform( ).
|
||||||
* no assertions, just make sure the dynamic code runs
|
* no assertions, just make sure the dynamic code runs
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD is_merged.
|
||||||
|
|
||||||
|
mi_cut->is_merged( ).
|
||||||
|
* no assertions, just make sure the dynamic code runs
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD is_repo_object_changes_allowed.
|
||||||
|
|
||||||
|
mi_cut->is_repo_object_changes_allowed( ).
|
||||||
|
* no assertions, just make sure the dynamic code runs
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD compare_with_inactive.
|
||||||
|
|
||||||
|
mi_cut->compare_with_inactive( ).
|
||||||
|
* no assertions, just make sure the dynamic code runs
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD is_restart_required.
|
||||||
|
|
||||||
|
mi_cut->is_restart_required( ).
|
||||||
|
* no assertions, just make sure the dynamic code runs
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user