|
240 | 240 |
|
241 | 241 | procedure throws_same_annotated_except is |
242 | 242 | begin |
243 | | - ut.expect(g_tests_results).to_match('^\s*Throws same annotated exception \[[\.0-9]+ sec\]\s*$','m'); |
| 243 | + ut.expect(g_tests_results).to_match('^\s*Throws same annotated exception \[[,\.0-9]+ sec\]\s*$','m'); |
244 | 244 | ut.expect(g_tests_results).not_to_match('raised_same_exception'); |
245 | 245 | end; |
246 | 246 |
|
247 | 247 | procedure throws_one_of_annotated_excpt is |
248 | 248 | begin |
249 | | - ut.expect(g_tests_results).to_match('^\s*Throws one of the listed exceptions \[[\.0-9]+ sec\]\s*$','m'); |
| 249 | + ut.expect(g_tests_results).to_match('^\s*Throws one of the listed exceptions \[[,\.0-9]+ sec\]\s*$','m'); |
250 | 250 | ut.expect(g_tests_results).not_to_match('raised_one_listed_exception'); |
251 | 251 | end; |
252 | 252 |
|
253 | 253 | procedure throws_with_leading_zero is |
254 | 254 | begin |
255 | | - ut.expect(g_tests_results).to_match('^\s*Leading zero is ignored in exception list \[[\.0-9]+ sec\]\s*$','m'); |
| 255 | + ut.expect(g_tests_results).to_match('^\s*Leading zero is ignored in exception list \[[,\.0-9]+ sec\]\s*$','m'); |
256 | 256 | ut.expect(g_tests_results).not_to_match('leading_0_exception_no'); |
257 | 257 | end; |
258 | 258 |
|
259 | 259 | procedure throws_diff_annotated_except is |
260 | 260 | begin |
261 | | - ut.expect(g_tests_results).to_match('^\s*Throws diff exception \[[\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
| 261 | + ut.expect(g_tests_results).to_match('^\s*Throws diff exception \[[,\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
262 | 262 | ut.expect(g_tests_results).to_match('raised_diff_exception\s+Actual: -20143 was expected to equal: -20144\s+ORA-20143: Test error\s+ORA-06512: at "UT3_TESTER.ANNOTATED_PACKAGE_WITH_THROWS"'); |
263 | 263 | end; |
264 | 264 |
|
265 | 265 | procedure throws_empty is |
266 | 266 | begin |
267 | | - ut.expect(g_tests_results).to_match('^\s*Throws empty \[[\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
| 267 | + ut.expect(g_tests_results).to_match('^\s*Throws empty \[[,\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
268 | 268 | ut.expect(g_tests_results).to_match('empty_throws\s*ORA-20143: Test error\s*ORA-06512: at "UT3_TESTER.ANNOTATED_PACKAGE_WITH_THROWS"'); |
269 | 269 | end; |
270 | 270 |
|
271 | 271 | procedure bad_paramters_with_except is |
272 | 272 | begin |
273 | | - ut.expect(g_tests_results).to_match('^\s*Ignores annotation and fails when exception was thrown \[[\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
| 273 | + ut.expect(g_tests_results).to_match('^\s*Ignores annotation and fails when exception was thrown \[[,\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
274 | 274 | ut.expect(g_tests_results).to_match('bad_paramters_with_except\s*ORA-20143: Test error\s*ORA-06512: at "UT3_TESTER.ANNOTATED_PACKAGE_WITH_THROWS"'); |
275 | 275 | end; |
276 | 276 |
|
277 | 277 | procedure bad_paramters_without_except is |
278 | 278 | begin |
279 | | - ut.expect(g_tests_results).to_match('^\s*Ignores annotation and succeeds when no exception thrown \[[\.0-9]+ sec\]\s*$','m'); |
| 279 | + ut.expect(g_tests_results).to_match('^\s*Ignores annotation and succeeds when no exception thrown \[[,\.0-9]+ sec\]\s*$','m'); |
280 | 280 | ut.expect(g_tests_results).not_to_match('bad_paramters_without_except'); |
281 | 281 | end; |
282 | 282 |
|
|
288 | 288 |
|
289 | 289 | procedure nothing_thrown is |
290 | 290 | begin |
291 | | - ut.expect(g_tests_results).to_match('^\s*Gives failure when a exception is expected and nothing is thrown \[[\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
| 291 | + ut.expect(g_tests_results).to_match('^\s*Gives failure when a exception is expected and nothing is thrown \[[,\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
292 | 292 | ut.expect(g_tests_results).to_match('nothing_thrown\s*Expected one of exceptions \(-20459, -20136, -20145\) but nothing was raised.'); |
293 | 293 | end; |
294 | 294 |
|
295 | 295 | procedure single_exc_const_pkg is |
296 | 296 | begin |
297 | | - ut.expect(g_tests_results).to_match('^\s*Single exception defined as a constant number in package \[[\.0-9]+ sec\]\s*$','m'); |
| 297 | + ut.expect(g_tests_results).to_match('^\s*Single exception defined as a constant number in package \[[,\.0-9]+ sec\]\s*$','m'); |
298 | 298 | ut.expect(g_tests_results).not_to_match('single_exc_const_pkg'); |
299 | 299 | end; |
300 | 300 |
|
301 | 301 | procedure list_of_exc_constant is |
302 | 302 | begin |
303 | | - ut.expect(g_tests_results).to_match('^\s*Gives success when one of annotated exception using constant is thrown \[[\.0-9]+ sec\]\s*$','m'); |
| 303 | + ut.expect(g_tests_results).to_match('^\s*Gives success when one of annotated exception using constant is thrown \[[,\.0-9]+ sec\]\s*$','m'); |
304 | 304 | ut.expect(g_tests_results).not_to_match('list_of_exc_constant'); |
305 | 305 | end; |
306 | 306 |
|
307 | 307 | procedure fail_not_match_exc is |
308 | 308 | begin |
309 | | - ut.expect(g_tests_results).to_match('^\s*Gives failure when the raised exception is different that the annotated one using variable \[[\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
| 309 | + ut.expect(g_tests_results).to_match('^\s*Gives failure when the raised exception is different that the annotated one using variable \[[,\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
310 | 310 | ut.expect(g_tests_results).to_match('fail_not_match_exc\s+Actual: -1403 was expected to equal: -20204\s+ORA-01403: no data found\s+ORA-06512: at "UT3_TESTER.ANNOTATED_PACKAGE_WITH_THROWS"'); |
311 | 311 | end; |
312 | 312 |
|
313 | 313 | procedure mixed_exc_list is |
314 | 314 | begin |
315 | | - ut.expect(g_tests_results).to_match('^\s*Success when one of exception from mixed list of number and constant is thrown \[[\.0-9]+ sec\]\s*$','m'); |
| 315 | + ut.expect(g_tests_results).to_match('^\s*Success when one of exception from mixed list of number and constant is thrown \[[,\.0-9]+ sec\]\s*$','m'); |
316 | 316 | ut.expect(g_tests_results).not_to_match('mixed_exc_list'); |
317 | 317 | end; |
318 | 318 |
|
319 | 319 | procedure mixed_list_notexi is |
320 | 320 | begin |
321 | | - ut.expect(g_tests_results).to_match('^\s*Success when match exception even if other variable on list dont exists \[[\.0-9]+ sec\]\s*$','m'); |
| 321 | + ut.expect(g_tests_results).to_match('^\s*Success when match exception even if other variable on list dont exists \[[,\.0-9]+ sec\]\s*$','m'); |
322 | 322 | ut.expect(g_tests_results).not_to_match('mixed_list_notexi'); |
323 | 323 | end; |
324 | 324 |
|
325 | 325 | procedure named_exc_pragma is |
326 | 326 | begin |
327 | | - ut.expect(g_tests_results).to_match('^\s*Success resolve and match named exception defined in pragma exception init \[[\.0-9]+ sec\]\s*$','m'); |
| 327 | + ut.expect(g_tests_results).to_match('^\s*Success resolve and match named exception defined in pragma exception init \[[,\.0-9]+ sec\]\s*$','m'); |
328 | 328 | ut.expect(g_tests_results).not_to_match('mixed_list_notexi'); |
329 | 329 | end; |
330 | 330 |
|
331 | 331 | procedure named_exc_ora is |
332 | 332 | begin |
333 | | - ut.expect(g_tests_results).to_match('^\s*Success resolve and match oracle named exception \[[\.0-9]+ sec\]\s*$','m'); |
| 333 | + ut.expect(g_tests_results).to_match('^\s*Success resolve and match oracle named exception \[[,\.0-9]+ sec\]\s*$','m'); |
334 | 334 | ut.expect(g_tests_results).not_to_match('named_exc_ora'); |
335 | 335 | end; |
336 | 336 |
|
337 | 337 | procedure named_exc_ora_dup_ind is |
338 | 338 | begin |
339 | | - ut.expect(g_tests_results).to_match('^\s*Success resolve and match oracle named exception dup val index \[[\.0-9]+ sec\]\s*$','m'); |
| 339 | + ut.expect(g_tests_results).to_match('^\s*Success resolve and match oracle named exception dup val index \[[,\.0-9]+ sec\]\s*$','m'); |
340 | 340 | ut.expect(g_tests_results).not_to_match('named_exc_ora_dup_ind'); |
341 | 341 | end; |
342 | 342 |
|
343 | 343 | procedure nodata_exc_ora is |
344 | 344 | begin |
345 | | - ut.expect(g_tests_results).to_match('^\s*Success map no data 100 to -1403 \[[\.0-9]+ sec\]\s*$','m'); |
| 345 | + ut.expect(g_tests_results).to_match('^\s*Success map no data 100 to -1403 \[[,\.0-9]+ sec\]\s*$','m'); |
346 | 346 | ut.expect(g_tests_results).not_to_match('nodata_exc_ora'); |
347 | 347 | end; |
348 | 348 |
|
349 | 349 | procedure defined_varchar_exc is |
350 | 350 | begin |
351 | | - ut.expect(g_tests_results).to_match('^\s*Success for exception defined as varchar \[[\.0-9]+ sec\]\s*$','m'); |
| 351 | + ut.expect(g_tests_results).to_match('^\s*Success for exception defined as varchar \[[,\.0-9]+ sec\]\s*$','m'); |
352 | 352 | ut.expect(g_tests_results).not_to_match('defined_varchar_exc'); |
353 | 353 | end; |
354 | 354 |
|
355 | 355 | procedure non_existing_const is |
356 | 356 | begin |
357 | | - ut.expect(g_tests_results).to_match('^\s*Non existing constant exception \[[\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
| 357 | + ut.expect(g_tests_results).to_match('^\s*Non existing constant exception \[[,\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
358 | 358 | ut.expect(g_tests_results).to_match('non_existing_const\s*ORA-20143: Test error\s*ORA-06512: at "UT3_TESTER.ANNOTATED_PACKAGE_WITH_THROWS"'); |
359 | 359 | end; |
360 | 360 |
|
361 | 361 | procedure bad_exc_const is |
362 | 362 | begin |
363 | | - ut.expect(g_tests_results).to_match('^\s*Bad exception constant \[[\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
| 363 | + ut.expect(g_tests_results).to_match('^\s*Bad exception constant \[[,\.0-9]+ sec\] \(FAILED - [0-9]+\)\s*$','m'); |
364 | 364 | ut.expect(g_tests_results).to_match('bad_exc_const\s*ORA-20143: Test error\s*ORA-06512: at "UT3_TESTER.ANNOTATED_PACKAGE_WITH_THROWS"'); |
365 | 365 | end; |
366 | 366 |
|
|
0 commit comments