Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6dadcc

Browse files
committed
fix in test to overcome 11g XML missing attributes in 3.0.4
1 parent 75b96c3 commit a6dadcc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

test/core/test_suite_builder.pkb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -363,17 +363,17 @@ create or replace package body test_suite_builder is
363363
--Act
364364
l_actual := invoke_builder_for_annotations(l_annotations, 'SOME_PACKAGE');
365365
--Assert
366-
ut.expect(l_actual).to_be_like(
367-
'%<UT_LOGICAL_SUITE><SELF_TYPE>UT_SUITE</SELF_TYPE><OBJECT_OWNER>UT3_TESTER</OBJECT_OWNER>' ||
366+
ut.expect(l_actual).match(
367+
'<UT_LOGICAL_SUITE><SELF_TYPE>UT_SUITE</SELF_TYPE><OBJECT_OWNER>UT3_TESTER</OBJECT_OWNER>' ||
368368
'<OBJECT_NAME>some_package</OBJECT_NAME><NAME>some_package</NAME><DESCRIPTION>Cool</DESCRIPTION>' ||
369-
'%<WARNINGS><VARCHAR2>Annotations: &quot;--\%afterall&quot;, &quot;--\%aftereach&quot;, &quot;--\%beforeall&quot;, &quot;--\%beforeeach&quot;' ||
369+
'.*<WARNINGS><VARCHAR2>Annotations: &quot;--%afterall&quot;, &quot;--%aftereach&quot;, &quot;--%beforeall&quot;, &quot;--%beforeeach&quot;' ||
370370
' were ignored for procedure &quot;DO_STUFF&quot;.' ||
371-
' Those annotations cannot be used with annotation: &quot;--%test&quot;</VARCHAR2></WARNINGS>%'||
372-
'%<UT_SUITE_ITEM>%<OBJECT_NAME>some_package</OBJECT_NAME>%<NAME>do_stuff</NAME>' ||
373-
'%<BEFORE_EACH_LIST/>' ||
374-
'%<AFTER_EACH_LIST/>' ||
375-
'%<BEFORE_ALL_LIST/>' ||
376-
'%<AFTER_ALL_LIST/>%'
371+
' Those annotations cannot be used with annotation: &quot;--%test&quot;</VARCHAR2></WARNINGS>'||
372+
'.*<UT_SUITE_ITEM>.*<OBJECT_NAME>some_package</OBJECT_NAME>.*<NAME>do_stuff</NAME>' ||
373+
'(.*<BEFORE_EACH_LIST/>)?' ||
374+
'(.*<AFTER_EACH_LIST/>)?' ||
375+
'(.*<BEFORE_ALL_LIST/>)?' ||
376+
'(.*<AFTER_ALL_LIST/>)?'
377377
,'\'
378378
);
379379
end;

0 commit comments

Comments
 (0)