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

Skip to content

Commit a70ea7f

Browse files
fixed the new not_to_be_null test, It doesn't install
1 parent ce8d2da commit a70ea7f

4 files changed

Lines changed: 71 additions & 69 deletions

File tree

test/install_tests.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ whenever oserror exit failure rollback
1313
@@ut_reporters/test_coveralls_reporter.pks
1414
@@ut_reporters/test_xunit_reporter.pks
1515
@ut_expectations/test_expectations_cursor.pks
16+
@ut_expectations/test_expect_not_to_be_null.pks
1617
@@ut_runner/test_ut_runner.pks
1718
@@ut_annotation_manager/test_annotation_manager.pks
1819

@@ -27,6 +28,7 @@ whenever oserror exit failure rollback
2728
@@ut_reporters/test_coveralls_reporter.pkb
2829
@@ut_reporters/test_xunit_reporter.pkb
2930
@ut_expectations/test_expectations_cursor.pkb
31+
@ut_expectations/test_expect_not_to_be_null.pkb
3032
@@ut_runner/test_ut_runner.pkb
3133
@@ut_annotation_manager/test_annotation_manager.pkb
3234

test/ut_expectations/test_expec_not_to_be_null.pks

Lines changed: 0 additions & 65 deletions
This file was deleted.

test/ut_expectations/test_expec_not_to_be_null.pkb renamed to test/ut_expectations/test_expect_not_to_be_null.pkb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
create or replace package body test_expec_not_to_be_null
1+
create or replace package body test_expect_not_to_be_null
22
is
33

44
procedure execute_expectation(a_data_type in varchar2,
@@ -24,7 +24,7 @@ is
2424
execute_expectation(a_data_type, a_data_value);
2525

2626
--assert - check that expectation was executed successfully
27-
ut3_latest_release.ut.expect(ut3.ut_expectation_processor.get_status()).to_equal(ut3.ut_utils.tr_success);
27+
ut.expect(ut3.ut_expectation_processor.get_status()).to_equal(ut3.ut_utils.tr_success);
2828

2929
-- cleanup
3030
ut3.ut_expectation_processor.clear_expectations();
@@ -37,7 +37,7 @@ is
3737
execute_expectation(a_data_type, a_data_value);
3838

3939
--assert - check that expectation was a failure
40-
ut3_latest_release.ut.expect(ut3.ut_expectation_processor.get_status()).to_equal(ut3.ut_utils.tr_failure);
40+
ut.expect(ut3.ut_expectation_processor.get_status()).to_equal(ut3.ut_utils.tr_failure);
4141

4242
-- cleanup
4343
ut3.ut_expectation_processor.clear_expectations();
@@ -172,4 +172,4 @@ is
172172
test_failure_expectacion('varchar2(4000)', 'null');
173173
end;
174174

175-
end test_expec_not_to_be_null;
175+
end test_expect_not_to_be_null;
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
create or replace package test_expect_not_to_be_null
2+
is
3+
--%suite(expectations - not_to_be_null)
4+
--%suitepath(utplsql.core.expectations.not_to_be_null)
5+
6+
--%test(Gives succes for not null blob)
7+
procedure blob_not_null;
8+
9+
--%test(Gives succes for blob with length 0)
10+
procedure blob_0_lengt;
11+
12+
--%test(Gives succes for not null boolean)
13+
procedure boolean_not_null;
14+
15+
--%test(Gives succes for not null clob)
16+
procedure clob_not_null;
17+
18+
--%test(Gives succes for clob with length 0)
19+
procedure clob_0_lengt;
20+
21+
--%test(Gives succes for not null date)
22+
procedure date_not_null;
23+
24+
--%test(Gives succes for not null number)
25+
procedure number_not_null;
26+
27+
--%test(Gives succes for not null timestamp)
28+
procedure timestamp_not_null;
29+
30+
--%test(Gives succes for not null timestamp with local time zone)
31+
procedure timestamp_with_ltz_not_null;
32+
33+
--%test(Gives succes for not null timestamp with time zone)
34+
procedure timestamp_with_tz_not_null;
35+
36+
--%test(Gives succes for not null varchar2)
37+
procedure varchar2_not_null;
38+
39+
--%test(Gives failure with null blob)
40+
procedure null_blob;
41+
42+
--%test(Gives failure with null boolean)
43+
procedure null_boolean;
44+
45+
--%test(Gives failure with null clob)
46+
procedure null_clob;
47+
48+
--%test(Gives failure with null date)
49+
procedure null_date;
50+
51+
--%test(Gives failure with null number)
52+
procedure null_number;
53+
54+
--%test(Gives failure null timestamp)
55+
procedure null_timestamp;
56+
57+
--%test(Gives failure with null timestamp with local time zone)
58+
procedure null_timestamp_with_ltz;
59+
60+
--%test(Gives failure with null timestamp with time zone)
61+
procedure null_timestamp_with_tz;
62+
63+
--%test(Gives failure with null varchar2)
64+
procedure null_varchar2;
65+
end test_expect_not_to_be_null;

0 commit comments

Comments
 (0)