Skip to content

Commit 2ea3275

Browse files
Alexander Geppartgepparta
authored andcommitted
Fix for larshp#133
abapGit v.1.92.0 Adjustments: - Replaced obsolete Method get_time() through get_unix() of class zcl_abapgit_time - Renamed some unit test methods
1 parent 741903a commit 2ea3275

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/backend/zcl_ags_util.clas.abap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ CLASS ZCL_AGS_UTIL IMPLEMENTATION.
4646
METHOD get_time.
4747

4848
TRY.
49-
rv_time = zcl_abapgit_time=>get( ).
49+
rv_time = zcl_abapgit_time=>get_unix( ).
5050
CATCH zcx_abapgit_exception.
5151
ASSERT 0 = 1.
5252
ENDTRY.

src/backend/zcl_ags_util.clas.testclasses.abap

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@ CLASS ltcl_get_time DEFINITION FOR TESTING
66
FINAL.
77

88
PRIVATE SECTION.
9-
METHODS: test FOR TESTING.
9+
METHODS: get_Time FOR TESTING.
1010
ENDCLASS.
1111

1212
CLASS ltcl_get_time IMPLEMENTATION.
1313

14-
METHOD test.
14+
METHOD get_Time.
1515

1616
DATA: lv_time TYPE string.
1717

18-
1918
lv_time = zcl_ags_util=>get_time( ).
2019

2120
cl_abap_unit_assert=>assert_not_initial( lv_time ).
@@ -32,12 +31,12 @@ CLASS ltcl_sha1 DEFINITION FOR TESTING
3231

3332
PRIVATE SECTION.
3433
METHODS:
35-
test01 FOR TESTING.
34+
get_sha1_for_hello FOR TESTING.
3635
ENDCLASS.
3736

3837
CLASS ltcl_sha1 IMPLEMENTATION.
3938

40-
METHOD test01.
39+
METHOD get_sha1_for_hello.
4140

4241
DATA: lv_sha1 TYPE zags_sha1.
4342

0 commit comments

Comments
 (0)