mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 13:03:01 +08:00

* Data deserialize Continuing on #3441 - Fixes issue with namespaced tables - Adds deserialize of table content during pull but does NOT persist changes to database `zcl_abapgit_repo->deserialize` now contains the following call to deserialize "data": ```abap zcl_abapgit_data_factory=>get_deserializer( )->deserialize( ii_config = get_data_config( ) it_files = get_files_remote( ) iv_persist = abap_false ). "<<no persisting, just test for now ``` Closes #4650 * Fixes and max record check * Get result preview * Split deser/actualize Co-authored-by: Lars Hvam <larshp@hotmail.com>
35 lines
730 B
ABAP
35 lines
730 B
ABAP
CLASS ltcl_data_utils_test DEFINITION FINAL
|
|
FOR TESTING
|
|
RISK LEVEL HARMLESS
|
|
DURATION SHORT.
|
|
|
|
PRIVATE SECTION.
|
|
|
|
METHODS build_filename FOR TESTING.
|
|
|
|
ENDCLASS.
|
|
|
|
CLASS ltcl_data_utils_test IMPLEMENTATION.
|
|
|
|
METHOD build_filename.
|
|
|
|
DATA ls_config TYPE zif_abapgit_data_config=>ty_config.
|
|
|
|
ls_config-name = 'T100'.
|
|
ls_config-type = 'TABU'.
|
|
|
|
cl_abap_unit_assert=>assert_equals(
|
|
act = zcl_abapgit_data_utils=>build_filename( ls_config )
|
|
exp = 't100.tabu.json' ).
|
|
|
|
ls_config-name = '/NSPC/T200'.
|
|
ls_config-type = 'TABU'.
|
|
|
|
cl_abap_unit_assert=>assert_equals(
|
|
act = zcl_abapgit_data_utils=>build_filename( ls_config )
|
|
exp = '#nspc#t200.tabu.json' ).
|
|
|
|
ENDMETHOD.
|
|
|
|
ENDCLASS.
|