@@ -608,11 +608,11 @@ create or replace package body test_suite_builder is
608608 --Act
609609 l_actual := invoke_builder_for_annotations(l_annotations, 'SOME_PACKAGE');
610610 --Assert
611- ut.expect(l_actual).to_be_like('% <WARNINGS>% Annotation "--\ %beforeall"% line 2% </WARNINGS>% ', '\ ');
612- ut.expect(l_actual).to_be_like('% <WARNINGS>% Annotation "--\ %beforeeach"% line 3% </WARNINGS>% ', '\ ');
613- ut.expect(l_actual).to_be_like('% <WARNINGS>% Annotation "--\ %aftereach"% line 4% </WARNINGS>% ', '\ ');
614- ut.expect(l_actual).to_be_like('% <WARNINGS>% Annotation "--\ %afterall" cannot be used with "--\ %test". Annotation ignored.'
615- ||'% at "UT3_TESTER.SOME_PACKAGE.DO_STUFF", line 5% </WARNINGS>% ', '\ ');
611+ ut.expect(l_actual).to_match('(.*)( <WARNINGS>)(.*)( Annotation "--%beforeall")(.*)( line 2)(.*)( </WARNINGS>)(.*) ', 'n ');
612+ ut.expect(l_actual).to_match('(.*)( <WARNINGS>)(.*)( Annotation "--%beforeeach")(.*)( line 3)(.*)( </WARNINGS>)(.*) ', 'n ');
613+ ut.expect(l_actual).to_match('(.*)( <WARNINGS>)(.*)( Annotation "--%aftereach")(.*)( line 4)(.*)( </WARNINGS>)(.*) ', 'n ');
614+ ut.expect(l_actual).to_match('(.*)( <WARNINGS>)(.*)( Annotation "--%afterall" cannot be used with "--%test". Annotation ignored.) '
615+ ||'(.*)( at "UT3_TESTER.SOME_PACKAGE.DO_STUFF", line 5)(.*)( </WARNINGS>)(.*) ', 'n ');
616616 ut.expect(l_actual).not_to_be_like('%<BEFORE_EACH_LIST>%');
617617 ut.expect(l_actual).not_to_be_like('%<AFTER_EACH_LIST>%');
618618 ut.expect(l_actual).not_to_be_like('%<BEFORE_ALL_LIST>%');
@@ -1095,7 +1095,7 @@ create or replace package body test_suite_builder is
10951095 --Act
10961096 l_actual := invoke_builder_for_annotations(l_annotations, 'SOME_PACKAGE');
10971097 --Assert
1098- ut.expect(l_actual).to_be_like('% <WARNINGS><VARCHAR2>Unsupported annotation "--\ %bad_procedure_annotation". Annotation ignored.% line 2</VARCHAR2></WARNINGS>% ', '\ ');
1098+ ut.expect(l_actual).to_match('(.*)( <WARNINGS><VARCHAR2>Unsupported annotation "--%bad_procedure_annotation"\ . Annotation ignored\.)(.*)( line 2</VARCHAR2></WARNINGS>)(.*) ', 'n ');
10991099 end;
11001100
11011101 procedure test_bad_package_annotation is
@@ -1111,7 +1111,7 @@ create or replace package body test_suite_builder is
11111111 --Act
11121112 l_actual := invoke_builder_for_annotations(l_annotations, 'SOME_PACKAGE');
11131113 --Assert
1114- ut.expect(l_actual).to_be_like('% <WARNINGS><VARCHAR2>Unsupported annotation "--\ %bad_package_annotation". Annotation ignored.% line 17</VARCHAR2></WARNINGS>% ', '\ ');
1114+ ut.expect(l_actual).to_match('(.*)( <WARNINGS><VARCHAR2>Unsupported annotation "--%bad_package_annotation"\ . Annotation ignored\.)(.*)( line 17</VARCHAR2></WARNINGS>)(.*) ', 'n ');
11151115 end;
11161116
11171117end test_suite_builder;
0 commit comments