In a test method you call method cl_abap_unit_assert=>assert_equals( .. ) in the following way:
CLASS Itcl1 DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT.
PRIVATE SECTION.
METHODS m1 FOR TESTING.
ENDCLASS.
CLASS Itcl1 IMPLEMENTATION.
METHOD m1.
DATA: go_test_object TYPE REF TO zcl_to_be_tested.
CONSTANTS: Ico_exp TYPE string VALUE 'test2'.
CREATE OBJECT go_test_object.
cl_abap_unit_assert=>assert_equals(
EXPORTING
act = go_class->mv_attribute
exp = lco_exp
msg = 'assert equals failed ' && go_test_object->mv_attribute && ' ' && lco_exp
ENDMETHOD.
ENDCLASS.
What will happen if method parameters act and exp are not equal?
Sabra
13 days agoBettina
22 hours agoLauna
19 days agoNancey
21 days agoAlpha
22 days agoTresa
23 days agoLindsey
28 days agoFlorinda
16 days agoThaddeus
18 days agoLayla
20 days agoKarl
22 days agoLauna
1 months agoNancey
1 months agoLoren
1 months agoKatina
14 days agoSherell
19 days agoCassi
22 days agoPage
23 days agoGlory
2 months agoRonnie
25 days agoSheldon
27 days agoLoreta
29 days agoDomonique
1 months ago