Skip to content

Commit

Permalink
add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp committed Aug 7, 2024
1 parent b54d07b commit 185035a
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ CLASS ltcl_call_transformation DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATI
METHODS xml_to_xml FOR TESTING RAISING cx_static_check.
METHODS xml_to_xml_rm_header FOR TESTING RAISING cx_static_check.
METHODS xml_to_xml_rm_header_bom FOR TESTING RAISING cx_static_check.
METHODS xml_to_xml_sort_attributes FOR TESTING RAISING cx_static_check.
ENDCLASS.

CLASS ltcl_call_transformation IMPLEMENTATION.
Expand Down Expand Up @@ -1142,4 +1143,19 @@ CLASS ltcl_call_transformation IMPLEMENTATION.

ENDMETHOD.

METHOD xml_to_xml_sort_attributes.

DATA lv_xml TYPE string.
DATA lv_str_bom TYPE string.
DATA lv_hex_bom TYPE xstring.

lv_xml = |<hello:moo t="value" si="value" ref="value"/>|.
CALL TRANSFORMATION id SOURCE XML lv_xml RESULT XML lv_xml OPTIONS xml_header = 'no'.

cl_abap_unit_assert=>assert_char_cp(
act = lv_xml
exp = '*<hello:moo ref="value" si="value" t="value"/>*' ).

ENDMETHOD.

ENDCLASS.

0 comments on commit 185035a

Please sign in to comment.