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

Skip to content

Commit 52cb9c1

Browse files
Changes made to the pull request, except null anydata must throws a exception
1 parent c52aef2 commit 52cb9c1

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

test/core/expectations/test_expect_not_to_be_null.pkb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
create or replace package body test_expect_not_to_be_null
22
is
3-
gc_object_name CONSTANT VARCHAR2(30) := 't_not_to_be_null_test';
4-
gc_nested_table_name CONSTANT VARCHAR2(30) := 'tt_not_to_be_null_test';
5-
gc_varray_name CONSTANT VARCHAR2(30) := 'tv_not_to_be_null_test';
3+
gc_object_name constant varchar2(30) := 't_not_to_be_null_test';
4+
gc_nested_table_name constant varchar2(30) := 'tt_not_to_be_null_test';
5+
gc_varray_name constant varchar2(30) := 'tv_not_to_be_null_test';
66

77
procedure cleanup_expectations
88
is
@@ -28,15 +28,15 @@ is
2828
execute immediate 'drop type '||gc_varray_name;
2929
end;
3030

31-
function anydata_expectation_block(a_object_name IN VARCHAR2, a_object_value IN VARCHAR,
32-
a_convert_type IN VARCHAR)
31+
function anydata_expectation_block(a_object_name in varchar2, a_object_value in varchar2,
32+
a_object_type in varchar2)
3333
return varchar2
3434
is
3535
begin
3636
return 'DECLARE
3737
l_object '||a_object_name||' := '||a_object_value||';
3838
BEGIN
39-
ut3.ut.expect(anydata.'||a_convert_type||'(l_object)).not_to_be_null();
39+
ut3.ut.expect(anydata.convert'||a_object_type||'(l_object)).not_to_be_null();
4040
END;';
4141
end;
4242

@@ -153,7 +153,7 @@ is
153153
is
154154
begin
155155
--Act
156-
execute immediate anydata_expectation_block(gc_object_name, gc_object_name||'(1)', 'convertObject');
156+
execute immediate anydata_expectation_block(gc_object_name, gc_object_name||'(1)', 'object');
157157
--Assert
158158
ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty();
159159
end;
@@ -162,7 +162,7 @@ is
162162
is
163163
begin
164164
--Act
165-
execute immediate anydata_expectation_block(gc_nested_table_name, gc_nested_table_name||'()', 'convertCollection');
165+
execute immediate anydata_expectation_block(gc_nested_table_name, gc_nested_table_name||'()', 'collection');
166166
--Assert
167167
ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty();
168168
end;
@@ -171,7 +171,7 @@ is
171171
is
172172
begin
173173
--Act
174-
execute immediate anydata_expectation_block(gc_varray_name, gc_varray_name||'()', 'convertCollection');
174+
execute immediate anydata_expectation_block(gc_varray_name, gc_varray_name||'()', 'collection');
175175
--Assert
176176
ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty();
177177
end;
@@ -268,7 +268,7 @@ is
268268
is
269269
begin
270270
--Act
271-
execute immediate anydata_expectation_block(gc_object_name, 'null', 'convertObject');
271+
execute immediate anydata_expectation_block(gc_object_name, 'null', 'object');
272272
--Assert
273273
ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty();
274274
end;
@@ -277,7 +277,7 @@ is
277277
is
278278
begin
279279
--Act
280-
execute immediate anydata_expectation_block(gc_nested_table_name, 'null', 'convertCollection');
280+
execute immediate anydata_expectation_block(gc_nested_table_name, 'null', 'collection');
281281
--Assert
282282
ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty();
283283
end;
@@ -286,7 +286,7 @@ is
286286
is
287287
begin
288288
--Act
289-
execute immediate anydata_expectation_block(gc_varray_name, 'null', 'convertCollection');
289+
execute immediate anydata_expectation_block(gc_varray_name, 'null', 'collection');
290290
--Assert
291291
ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty();
292292
end;

0 commit comments

Comments
 (0)