|
28 | 28 | execute immediate 'drop type '||gc_varray_name; |
29 | 29 | end; |
30 | 30 |
|
31 | | - function anydata_expectation_block(a_object_name in varchar2, a_object_value in varchar2, |
32 | | - a_object_type in varchar2) |
33 | | - return varchar2 |
34 | | - is |
35 | | - begin |
36 | | - return 'DECLARE |
37 | | - l_object '||a_object_name||' := '||a_object_value||'; |
38 | | - BEGIN |
39 | | - ut3.ut.expect(anydata.convert'||a_object_type||'(l_object)).not_to_be_null(); |
40 | | - END;'; |
41 | | - end; |
42 | | - |
43 | 31 | procedure blob_not_null |
44 | 32 | is |
45 | 33 | begin |
|
49 | 37 | ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); |
50 | 38 | end; |
51 | 39 |
|
52 | | - procedure blob_0_lengt |
| 40 | + procedure blob_0_length |
53 | 41 | is |
54 | 42 | begin |
55 | 43 | --Act |
|
77 | 65 | end; |
78 | 66 |
|
79 | 67 |
|
80 | | - procedure clob_0_lengt |
| 68 | + procedure clob_0_length |
81 | 69 | is |
82 | 70 | begin |
83 | 71 | --Act |
|
140 | 128 | ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); |
141 | 129 | end; |
142 | 130 |
|
143 | | - procedure null_blob |
| 131 | + procedure initialized_object |
144 | 132 | is |
145 | 133 | begin |
146 | 134 | --Act |
147 | | - execute immediate expectations_helpers.unary_expectation_block('not_to_be_null', 'blob', 'null'); |
| 135 | + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_object_name, |
| 136 | + gc_object_name||'(1)', 'object'); |
148 | 137 | --Assert |
149 | | - ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); |
| 138 | + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); |
150 | 139 | end; |
151 | 140 |
|
152 | | - procedure initialized_object |
| 141 | + procedure initialized_nested_table |
153 | 142 | is |
154 | 143 | begin |
155 | 144 | --Act |
156 | | - execute immediate anydata_expectation_block(gc_object_name, gc_object_name||'(1)', 'object'); |
| 145 | + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_nested_table_name, |
| 146 | + gc_nested_table_name||'()', 'collection'); |
157 | 147 | --Assert |
158 | 148 | ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); |
159 | 149 | end; |
160 | 150 |
|
161 | | - procedure initialized_nested_table |
| 151 | + procedure initialized_varray |
162 | 152 | is |
163 | 153 | begin |
164 | 154 | --Act |
165 | | - execute immediate anydata_expectation_block(gc_nested_table_name, gc_nested_table_name||'()', 'collection'); |
| 155 | + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_varray_name, |
| 156 | + gc_varray_name||'()', 'collection'); |
166 | 157 | --Assert |
167 | 158 | ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); |
168 | 159 | end; |
169 | 160 |
|
170 | | - procedure initialized_varray |
| 161 | + procedure null_blob |
171 | 162 | is |
172 | 163 | begin |
173 | 164 | --Act |
174 | | - execute immediate anydata_expectation_block(gc_varray_name, gc_varray_name||'()', 'collection'); |
| 165 | + execute immediate expectations_helpers.unary_expectation_block('not_to_be_null', 'blob', 'null'); |
175 | 166 | --Assert |
176 | | - ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); |
| 167 | + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); |
177 | 168 | end; |
178 | 169 |
|
179 | 170 | procedure null_boolean |
|
268 | 259 | is |
269 | 260 | begin |
270 | 261 | --Act |
271 | | - execute immediate anydata_expectation_block(gc_object_name, 'null', 'object'); |
| 262 | + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_object_name, |
| 263 | + 'null', 'object'); |
272 | 264 | --Assert |
273 | 265 | ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); |
274 | 266 | end; |
|
277 | 269 | is |
278 | 270 | begin |
279 | 271 | --Act |
280 | | - execute immediate anydata_expectation_block(gc_nested_table_name, 'null', 'collection'); |
| 272 | + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_nested_table_name, |
| 273 | + 'null', 'collection'); |
281 | 274 | --Assert |
282 | 275 | ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); |
283 | 276 | end; |
|
286 | 279 | is |
287 | 280 | begin |
288 | 281 | --Act |
289 | | - execute immediate anydata_expectation_block(gc_varray_name, 'null', 'collection'); |
| 282 | + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_varray_name, |
| 283 | + 'null', 'collection'); |
290 | 284 | --Assert |
291 | 285 | ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); |
292 | 286 | end; |
|
0 commit comments