mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 22:07:30 +08:00
CREATE OBJECT instead of NEW #( )
Must get used to keeping it backwards compatible...
This commit is contained in:
parent
375334a0ed
commit
c304d8f211
|
@ -1717,7 +1717,7 @@ ENDCLASS.
|
|||
CLASS ltc_xlsx_date_time IMPLEMENTATION.
|
||||
|
||||
METHOD setup.
|
||||
cut = NEW #( ).
|
||||
CREATE OBJECT cut.
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD teardown.
|
||||
|
|
|
@ -1710,8 +1710,10 @@ CLASS ltc_is_date_format IMPLEMENTATION.
|
|||
|
||||
METHOD setup.
|
||||
TRY.
|
||||
xlsx = NEW #( ).
|
||||
cut = NEW #( xlsx ).
|
||||
CREATE OBJECT xlsx.
|
||||
CREATE OBJECT cut
|
||||
EXPORTING
|
||||
ip_excel = xlsx.
|
||||
CATCH zcx_excel INTO excel_error.
|
||||
cl_abap_unit_assert=>fail(
|
||||
msg = 'Could not create instance: ' && excel_error->get_text( )
|
||||
|
@ -1738,8 +1740,10 @@ CLASS ltc_is_time_format IMPLEMENTATION.
|
|||
|
||||
METHOD setup.
|
||||
TRY.
|
||||
xlsx = NEW #( ).
|
||||
cut = NEW #( xlsx ).
|
||||
CREATE OBJECT xlsx.
|
||||
CREATE OBJECT cut
|
||||
EXPORTING
|
||||
ip_excel = xlsx.
|
||||
CATCH zcx_excel INTO excel_error.
|
||||
cl_abap_unit_assert=>fail(
|
||||
msg = 'Could not create instance: ' && excel_error->get_text( )
|
||||
|
|
Loading…
Reference in New Issue
Block a user