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

Skip to content

Commit 0d87f4f

Browse files
committed
Update to tests
1 parent d7efff6 commit 0d87f4f

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

source/core/types/ut_executable.tps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
create or replace type ut_executable force under ut_event_item(
1+
create or replace type ut_executable under ut_event_item(
22
/*
33
utPLSQL - Version 3
44
Copyright 2016 - 2017 utPLSQL Project

test/api/test_ut_run.pkb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ end;]';
163163
begin
164164
execute immediate q'[select count(1) from all_objects o where o.owner = :object_owner and o.object_type = 'PACKAGE'
165165
and o.status = 'INVALID' and o.object_name= :object_name]' into l_is_invalid
166-
using user,'FAILING_INVALID_SPEC';
166+
using user,'INVALID_PCKAG_THAT_REVALIDATES';
167167

168168
select *
169169
bulk collect into l_results
170-
from table(ut3.ut.run('failing_invalid_spec'));
170+
from table(ut3.ut.run('invalid_pckag_that_revalidates'));
171171

172172
l_actual := ut3.ut_utils.table_to_clob(l_results);
173173
ut.expect(1).to_equal(l_is_invalid);
174-
ut.expect(l_actual).to_be_like('%failing_invalid_spec%invalidspecs [% sec]%
174+
ut.expect(l_actual).to_be_like('%invalid_pckag_that_revalidates%invalidspecs [% sec]%
175175
%Finished in % seconds%
176176
%1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)%');
177177

@@ -187,15 +187,15 @@ end;]';
187187
c_test constant varchar2(1) := 'Y';
188188
end;]';
189189

190-
execute immediate q'[create or replace package failing_invalid_spec as
190+
execute immediate q'[create or replace package invalid_pckag_that_revalidates as
191191
--%suite
192192
g_var varchar2(1) := parent_specs.c_test;
193193

194194
--%test(invalidspecs)
195195
procedure test1;
196196
end;]';
197197

198-
execute immediate q'[create or replace package body failing_invalid_spec as
198+
execute immediate q'[create or replace package body invalid_pckag_that_revalidates as
199199
procedure test1 is begin ut.expect('Y').to_equal(g_var); end;
200200
end;]';
201201

@@ -212,7 +212,7 @@ end;]';
212212
procedure drop_test_package is
213213
pragma autonomous_transaction;
214214
begin
215-
execute immediate 'drop package failing_invalid_spec';
215+
execute immediate 'drop package invalid_pckag_that_revalidates';
216216
execute immediate 'drop package parent_specs';
217217
end;
218218

0 commit comments

Comments
 (0)