diff --git a/src/ixml/cl_ixml.clas.testclasses.abap b/src/ixml/cl_ixml.clas.testclasses.abap index cce9fe42..295600cd 100644 --- a/src/ixml/cl_ixml.clas.testclasses.abap +++ b/src/ixml/cl_ixml.clas.testclasses.abap @@ -9,6 +9,7 @@ CLASS ltcl_xml DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. METHODS render_element_and_attribute FOR TESTING RAISING cx_static_check. METHODS render_element_and_two_attribu FOR TESTING RAISING cx_static_check. METHODS render_attribute FOR TESTING RAISING cx_static_check. + METHODS render_attribute_multi FOR TESTING RAISING cx_static_check. METHODS render_value FOR TESTING RAISING cx_static_check. METHODS render_escape FOR TESTING RAISING cx_static_check. METHODS render_nested FOR TESTING RAISING cx_static_check. @@ -185,6 +186,30 @@ CLASS ltcl_xml IMPLEMENTATION. exp = '' ). ENDMETHOD. + METHOD render_attribute_multi. + DATA lo_element TYPE REF TO if_ixml_element. + DATA lv_xml TYPE string. + + lo_element = mi_document->create_simple_element_ns( + prefix = 'hello' + name = 'moo' + parent = mi_document ). + lo_element->set_attribute( + name = 't' + value = 'value' ). + lo_element->set_attribute( + name = 'si' + value = 'value' ). + lo_element->set_attribute( + name = 'ref' + value = 'value' ). + lv_xml = render( ). + + cl_abap_unit_assert=>assert_equals( + act = lv_xml + exp = '' ). + ENDMETHOD. + METHOD render_element_and_two_attribu. DATA lo_element TYPE REF TO if_ixml_element. DATA lv_xml TYPE string. diff --git a/src/kernel/call_transformation/kernel_call_transformation.clas.testclasses.abap b/src/kernel/call_transformation/kernel_call_transformation.clas.testclasses.abap index dd89481d..049a6b81 100644 --- a/src/kernel/call_transformation/kernel_call_transformation.clas.testclasses.abap +++ b/src/kernel/call_transformation/kernel_call_transformation.clas.testclasses.abap @@ -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. METHODS byte_order_mark_big FOR TESTING RAISING cx_static_check. METHODS byte_order_mark_little FOR TESTING RAISING cx_static_check. ENDCLASS. @@ -1196,4 +1197,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 = ||. + 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 = '**' ). + + ENDMETHOD. + ENDCLASS. \ No newline at end of file