environment, add tests and fix dump (#2827)

This commit is contained in:
Lars Hvam 2019-08-02 01:21:03 -07:00 committed by GitHub
parent 8d87beea60
commit cd87c97be7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 3 deletions

View File

@ -68,7 +68,7 @@ CLASS ZCL_ABAPGIT_ENVIRONMENT IMPLEMENTATION.
CALL METHOD ('CL_APJ_SCP_TOOLS')=>('IS_RESTART_REQUIRED')
RECEIVING
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.
ENDTRY.
ENDMETHOD.

View File

@ -11,7 +11,12 @@ CLASS ltcl_test DEFINITION FOR TESTING
METHODS:
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.
@ -23,11 +28,39 @@ CLASS ltcl_test IMPLEMENTATION.
ENDMETHOD.
METHOD is_cloud.
METHOD is_sap_cloud_platform.
mi_cut->is_sap_cloud_platform( ).
* no assertions, just make sure the dynamic code runs
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.