@@ -90,14 +90,11 @@ create or replace package body ut_suite_manager is
9090
9191 if l_annotation_data.package_annotations.exists('rollback') then
9292 l_suite_rollback_annotation := l_annotation_data.package_annotations('rollback').text;
93- l_suite_rollback := case lower(l_suite_rollback_annotation)
94- when 'manual' then
95- ut_utils.gc_rollback_manual
96- when 'auto' then
97- ut_utils.gc_rollback_auto
98- else
99- ut_utils.gc_rollback_auto
100- end;
93+ if lower(l_suite_rollback_annotation) = 'manual' then
94+ l_suite_rollback := ut_utils.gc_rollback_manual;
95+ else
96+ l_suite_rollback := ut_utils.gc_rollback_auto;
97+ end if;
10198 else
10299 l_suite_rollback := ut_utils.gc_rollback_auto;
103100 end if;
@@ -158,16 +155,13 @@ create or replace package body ut_suite_manager is
158155
159156 if l_proc_annotations.exists('rollback') then
160157 l_rollback_annotation := l_proc_annotations('rollback').text;
161- l_rollback_type := case lower(l_rollback_annotation)
162- when 'manual' then
163- ut_utils.gc_rollback_manual
164- when 'auto' then
165- ut_utils.gc_rollback_auto
166- --when 'on-error' then
167- -- ut_utils.gc_rollback_on_error
168- else
169- l_suite_rollback
170- end;
158+ if lower(l_rollback_annotation) = 'manual' then
159+ l_rollback_type := ut_utils.gc_rollback_manual;
160+ elsif lower(l_rollback_annotation) = 'auto' then
161+ l_rollback_type := ut_utils.gc_rollback_auto;
162+ else
163+ l_rollback_type := l_suite_rollback;
164+ end if;
171165 end if;
172166
173167 l_test := ut_test(a_object_owner => l_owner_name
@@ -333,9 +327,8 @@ create or replace package body ut_suite_manager is
333327 begin
334328 -- Currently cache invalidation on DDL is not implemented so schema is rescaned each time
335329 l_schema_info := get_schema_info(a_schema_name);
336- if not g_schema_suites.exists(a_schema_name) or g_schema_suites(a_schema_name)
337- .changed_at <= l_schema_info.changed_at
338- or g_schema_suites(a_schema_name).obj_cnt != l_schema_info.obj_cnt then
330+ if not g_schema_suites.exists(a_schema_name) or g_schema_suites(a_schema_name).changed_at <= l_schema_info.changed_at or
331+ g_schema_suites(a_schema_name).obj_cnt != l_schema_info.obj_cnt then
339332 ut_utils.debug_log('Rescanning schema ' || a_schema_name);
340333 config_schema(a_schema_name);
341334 end if;
@@ -354,9 +347,6 @@ create or replace package body ut_suite_manager is
354347 procedure populate_suite_ut_packages(a_suite ut_logical_suite, a_packages in out nocopy ut_object_names) is
355348 l_sub_suite ut_logical_suite;
356349 begin
357- if a_packages is null then
358- a_packages := ut_object_names();
359- end if;
360350 if a_suite is of (ut_suite) then
361351 a_packages.extend;
362352 a_packages(a_packages.last) := ut_object_name(a_suite.object_owner, a_suite.object_name);
0 commit comments