File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ CLASS ltcl_test DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL.
161
161
METHODS get_attribute_type_oref FOR TESTING RAISING cx_static_check.
162
162
METHODS get_param_type_iref FOR TESTING RAISING cx_static_check.
163
163
METHODS get_attr_type_iref FOR TESTING RAISING cx_static_check.
164
+ METHODS namespaced FOR TESTING RAISING cx_static_check.
164
165
165
166
ENDCLASS .
166
167
@@ -489,4 +490,19 @@ CLASS ltcl_test IMPLEMENTATION.
489
490
490
491
ENDMETHOD .
491
492
493
+ METHOD namespaced .
494
+
495
+ DATA ref TYPE REF TO /ui2/cl_json.
496
+ DATA lo_typedescr TYPE REF TO cl_abap_typedescr.
497
+
498
+ lo_typedescr ?= cl_abap_typedescr=>describe_by_name( '/UI2/CL_JSON' ).
499
+ cl_abap_unit_assert=>assert_equals(
500
+ act = lo_typedescr->absolute_name
501
+ exp = '\CLASS=/UI2/CL_JSON' ).
502
+ cl_abap_unit_assert=>assert_equals(
503
+ act = lo_typedescr->get_relative_name( )
504
+ exp = '/UI2/CL_JSON' ).
505
+
506
+ ENDMETHOD .
507
+
492
508
ENDCLASS .
You can’t perform that action at this time.
0 commit comments