From 796a3d56f0dcd8cc6be691ea4b200e58524bf8fd Mon Sep 17 00:00:00 2001 From: Walter Alexis Castro Date: Thu, 11 Jan 2018 19:37:51 -0600 Subject: [PATCH 1/2] Test to_be_not_null refactored --- old_tests/RunAll.sql | 2 - ..._not_null.GivesFailureWhenActualIsNull.sql | 9 - ...t_null.GivesSuccessWhenActualIsNotNull.sql | 9 - .../test_expect_not_to_be_null.pkb | 44 ++- .../test_expect_to_be_not_null.pkb | 288 ++++++++++++++++++ .../test_expect_to_be_not_null.pks | 97 ++++++ test/helpers/expectations_helpers.pkb | 14 + test/helpers/expectations_helpers.pks | 6 + test/install_tests.sql | 2 + 9 files changed, 426 insertions(+), 45 deletions(-) delete mode 100644 old_tests/ut_expectations/ut.expect.to_be_not_null.GivesFailureWhenActualIsNull.sql delete mode 100644 old_tests/ut_expectations/ut.expect.to_be_not_null.GivesSuccessWhenActualIsNotNull.sql create mode 100644 test/core/expectations/test_expect_to_be_not_null.pkb create mode 100644 test/core/expectations/test_expect_to_be_not_null.pks diff --git a/old_tests/RunAll.sql b/old_tests/RunAll.sql index dbc3920ce..a7b2da3a1 100644 --- a/old_tests/RunAll.sql +++ b/old_tests/RunAll.sql @@ -43,8 +43,6 @@ exec ut_coverage.coverage_start_develop(); @@lib/RunTest.sql ut_expectations/ut.expect.to_be_false.GivesFailureWhenExpessionIsTrue.sql @@lib/RunTest.sql ut_expectations/ut.expect.to_be_false.GivesSuccessWhenExpessionIsFalse.sql @@lib/RunTest.sql ut_expectations/ut.expect.to_be_like.FailsForUnsupportedDatatype.sql -@@ut_expectations/ut.expect.to_be_not_null.GivesFailureWhenActualIsNull.sql -@@ut_expectations/ut.expect.to_be_not_null.GivesSuccessWhenActualIsNotNull.sql @@lib/RunTest.sql ut_expectations/ut.expect.to_be_null.anydata.GivesSuccessWhenAnydataIsNull.sql @@lib/RunTest.sql ut_expectations/ut.expect.to_be_null.anydata.GivesSuccessWhenCollectionPassedIsNull.sql @@lib/RunTest.sql ut_expectations/ut.expect.to_be_null.anydata.GivesSuccessWhenObjectPassedIsNull.sql diff --git a/old_tests/ut_expectations/ut.expect.to_be_not_null.GivesFailureWhenActualIsNull.sql b/old_tests/ut_expectations/ut.expect.to_be_not_null.GivesFailureWhenActualIsNull.sql deleted file mode 100644 index c63cab10f..000000000 --- a/old_tests/ut_expectations/ut.expect.to_be_not_null.GivesFailureWhenActualIsNull.sql +++ /dev/null @@ -1,9 +0,0 @@ -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'blob' 'NULL' 'to_be_not_null' 'ut_utils.tr_failure'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'boolean' 'NULL' 'to_be_not_null' 'ut_utils.tr_failure'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'clob' 'NULL' 'to_be_not_null' 'ut_utils.tr_failure'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'date' 'NULL' 'to_be_not_null' 'ut_utils.tr_failure'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'number' 'NULL' 'to_be_not_null' 'ut_utils.tr_failure'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'timestamp' 'NULL' 'to_be_not_null' 'ut_utils.tr_failure'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'timestamp with local time zone' 'NULL' 'to_be_not_null' 'ut_utils.tr_failure'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'timestamp with time zone' 'NULL' 'to_be_not_null' 'ut_utils.tr_failure'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'varchar2(4000)' 'NULL' 'to_be_not_null' 'ut_utils.tr_failure'" diff --git a/old_tests/ut_expectations/ut.expect.to_be_not_null.GivesSuccessWhenActualIsNotNull.sql b/old_tests/ut_expectations/ut.expect.to_be_not_null.GivesSuccessWhenActualIsNotNull.sql deleted file mode 100644 index 9fb971dd0..000000000 --- a/old_tests/ut_expectations/ut.expect.to_be_not_null.GivesSuccessWhenActualIsNotNull.sql +++ /dev/null @@ -1,9 +0,0 @@ -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'blob' 'to_blob(''abc'')' 'to_be_not_null' 'ut_utils.tr_success'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'boolean' 'true' 'to_be_not_null' 'ut_utils.tr_success'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'clob' '''abc''' 'to_be_not_null' 'ut_utils.tr_success'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'date' 'sysdate' 'to_be_not_null' 'ut_utils.tr_success'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'number' '1234' 'to_be_not_null' 'ut_utils.tr_success'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'timestamp' 'systimestamp' 'to_be_not_null' 'ut_utils.tr_success'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'timestamp with local time zone' 'systimestamp' 'to_be_not_null' 'ut_utils.tr_success'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'timestamp with time zone' 'systimestamp' 'to_be_not_null' 'ut_utils.tr_success'" -@@lib/RunTest.sql "ut_expectations/common/ut.expect.unuary_comparator.scalar.common.sql 'varchar2(4000)' '''abc''' 'to_be_not_null' 'ut_utils.tr_success'" diff --git a/test/core/expectations/test_expect_not_to_be_null.pkb b/test/core/expectations/test_expect_not_to_be_null.pkb index a1f4867e8..c89091395 100644 --- a/test/core/expectations/test_expect_not_to_be_null.pkb +++ b/test/core/expectations/test_expect_not_to_be_null.pkb @@ -28,18 +28,6 @@ is execute immediate 'drop type '||gc_varray_name; end; - function anydata_expectation_block(a_object_name in varchar2, a_object_value in varchar2, - a_object_type in varchar2) - return varchar2 - is - begin - return 'DECLARE - l_object '||a_object_name||' := '||a_object_value||'; - BEGIN - ut3.ut.expect(anydata.convert'||a_object_type||'(l_object)).not_to_be_null(); - END;'; - end; - procedure blob_not_null is begin @@ -140,40 +128,43 @@ is ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); end; - procedure null_blob + procedure initialized_object is begin --Act - execute immediate expectations_helpers.unary_expectation_block('not_to_be_null', 'blob', 'null'); + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_object_name, + gc_object_name||'(1)', 'object'); --Assert - ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); end; - procedure initialized_object + procedure initialized_nested_table is begin --Act - execute immediate anydata_expectation_block(gc_object_name, gc_object_name||'(1)', 'object'); + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_nested_table_name, + gc_nested_table_name||'()', 'collection'); --Assert ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); end; - procedure initialized_nested_table + procedure initialized_varray is begin --Act - execute immediate anydata_expectation_block(gc_nested_table_name, gc_nested_table_name||'()', 'collection'); + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_varray_name, + gc_varray_name||'()', 'collection'); --Assert ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); end; - procedure initialized_varray + procedure null_blob is begin --Act - execute immediate anydata_expectation_block(gc_varray_name, gc_varray_name||'()', 'collection'); + execute immediate expectations_helpers.unary_expectation_block('not_to_be_null', 'blob', 'null'); --Assert - ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); end; procedure null_boolean @@ -268,7 +259,8 @@ is is begin --Act - execute immediate anydata_expectation_block(gc_object_name, 'null', 'object'); + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_object_name, + 'null', 'object'); --Assert ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); end; @@ -277,7 +269,8 @@ is is begin --Act - execute immediate anydata_expectation_block(gc_nested_table_name, 'null', 'collection'); + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_nested_table_name, + 'null', 'collection'); --Assert ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); end; @@ -286,7 +279,8 @@ is is begin --Act - execute immediate anydata_expectation_block(gc_varray_name, 'null', 'collection'); + execute immediate expectations_helpers.unary_expectation_object_block('not_to_be_null', gc_varray_name, + 'null', 'collection'); --Assert ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); end; diff --git a/test/core/expectations/test_expect_to_be_not_null.pkb b/test/core/expectations/test_expect_to_be_not_null.pkb new file mode 100644 index 000000000..521e0f21f --- /dev/null +++ b/test/core/expectations/test_expect_to_be_not_null.pkb @@ -0,0 +1,288 @@ +create or replace package body test_expect_to_be_not_null +is + gc_object_name constant varchar2(30) := 't_to_be_not_null_test'; + gc_nested_table_name constant varchar2(30) := 'tt_to_be_not_null_test'; + gc_varray_name constant varchar2(30) := 'tv_to_be_not_null_test'; + + procedure cleanup_expectations + is + begin + ut3.ut_expectation_processor.clear_expectations(); + end; + + procedure create_types + is + pragma autonomous_transaction; + begin + execute immediate 'create type '||gc_object_name||' is object (dummy number)'; + execute immediate 'create type '||gc_nested_table_name||' is table of number'; + execute immediate 'create type '||gc_varray_name||' is varray(1) of number'; + end; + + procedure drop_types + is + pragma autonomous_transaction; + begin + execute immediate 'drop type '||gc_object_name; + execute immediate 'drop type '||gc_nested_table_name; + execute immediate 'drop type '||gc_varray_name; + end; + + procedure blob_not_null + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'blob', 'to_blob(''abc'')'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure blob_0_lengt + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'blob', 'empty_blob()'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure boolean_not_null + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'boolean', 'true'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure clob_not_null + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'clob', 'to_clob(''abc'')'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + + procedure clob_0_lengt + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'clob', 'empty_clob()'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure date_not_null + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'date', 'sysdate'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure number_not_null + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'number', '1234'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure timestamp_not_null + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'timestamp', 'systimestamp'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure timestamp_with_ltz_not_null + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'timestamp with local time zone', 'systimestamp'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure timestamp_with_tz_not_null + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'timestamp with time zone', 'systimestamp'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure varchar2_not_null + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'varchar2(4000)', '''abc'''); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure initialized_object + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_object_block('to_be_not_null', gc_object_name, + gc_object_name||'(1)', 'object'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure initialized_nested_table + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_object_block('to_be_not_null', gc_nested_table_name, + gc_nested_table_name||'()', 'collection'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure initialized_varray + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_object_block('to_be_not_null', gc_varray_name, + gc_varray_name||'()', 'collection'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); + end; + + procedure null_blob + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'blob', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + procedure null_boolean + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'boolean', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + + procedure null_clob + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'clob', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + + procedure null_date + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'date', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + + procedure null_number + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'number', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + + procedure null_timestamp + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'timestamp', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + + procedure null_timestamp_with_ltz + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'timestamp with local time zone', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + + procedure null_timestamp_with_tz + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'timestamp with time zone', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + + procedure null_varchar2 + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'varchar2(4000)', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + procedure null_anydata + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_block('to_be_not_null', 'anydata', 'null'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + procedure uninit_object_in_anydata + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_object_block('to_be_not_null', gc_object_name, + 'null', 'object'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + procedure uninit_nested_table_in_anydata + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_object_block('to_be_not_null', gc_nested_table_name, + 'null', 'collection'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; + + procedure uninit_varray_in_anydata + is + begin + --Act + execute immediate expectations_helpers.unary_expectation_object_block('to_be_not_null', gc_varray_name, + 'null', 'collection'); + --Assert + ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).not_to_be_empty(); + end; +end test_expect_to_be_not_null; +/ diff --git a/test/core/expectations/test_expect_to_be_not_null.pks b/test/core/expectations/test_expect_to_be_not_null.pks new file mode 100644 index 000000000..30c2c640e --- /dev/null +++ b/test/core/expectations/test_expect_to_be_not_null.pks @@ -0,0 +1,97 @@ +create or replace package test_expect_to_be_not_null +is + --%suite(expectations - to_be_not_null) + --%suitepath(utplsql.core.expectations.unary) + + --%aftereach + procedure cleanup_expectations; + + --%beforeall + procedure create_types; + + --%afterall + procedure drop_types; + + --%test(Gives success for not null blob) + procedure blob_not_null; + + --%test(Gives success for blob with length 0) + procedure blob_0_lengt; + + --%test(Gives success for not null boolean) + procedure boolean_not_null; + + --%test(Gives success for not null clob) + procedure clob_not_null; + + --%test(Gives success for clob with length 0) + procedure clob_0_lengt; + + --%test(Gives success for not null date) + procedure date_not_null; + + --%test(Gives success for not null number) + procedure number_not_null; + + --%test(Gives success for not null timestamp) + procedure timestamp_not_null; + + --%test(Gives success for not null timestamp with local time zone) + procedure timestamp_with_ltz_not_null; + + --%test(Gives success for not null timestamp with time zone) + procedure timestamp_with_tz_not_null; + + --%test(Gives success for not null varchar2) + procedure varchar2_not_null; + + --%test(Gives success for initialized object within anydata) + procedure initialized_object; + + --%test(Gives success for initialized nested table within anydata) + procedure initialized_nested_table; + + --%test(Gives success for initialized varray within anydata) + procedure initialized_varray; + + --%test(Gives failure with null blob) + procedure null_blob; + + --%test(Gives failure with null boolean) + procedure null_boolean; + + --%test(Gives failure with null clob) + procedure null_clob; + + --%test(Gives failure with null date) + procedure null_date; + + --%test(Gives failure with null number) + procedure null_number; + + --%test(Gives failure null timestamp) + procedure null_timestamp; + + --%test(Gives failure with null timestamp with local time zone) + procedure null_timestamp_with_ltz; + + --%test(Gives failure with null timestamp with time zone) + procedure null_timestamp_with_tz; + + --%test(Gives failure with null varchar2) + procedure null_varchar2; + + --%test(Gives failure with null anydata) + procedure null_anydata; + + --%test(Gives failure with uninitialized object within anydata) + procedure uninit_object_in_anydata; + + --%test(Gives failure with uninitialized nested table within anydata) + procedure uninit_nested_table_in_anydata; + + --%test(Gives failure with uninitialized varray within anydata) + procedure uninit_varray_in_anydata; + +end test_expect_to_be_not_null; +/ diff --git a/test/helpers/expectations_helpers.pkb b/test/helpers/expectations_helpers.pkb index d2c3e81b1..31a18048a 100644 --- a/test/helpers/expectations_helpers.pkb +++ b/test/helpers/expectations_helpers.pkb @@ -17,6 +17,20 @@ is return l_execute; end; + function unary_expectation_object_block(a_matcher_name in varchar2, + a_object_name in varchar2, + a_object_value in varchar2, + a_object_type in varchar2) + return varchar2 + is + begin + return 'DECLARE + l_object '||a_object_name||' := '||a_object_value||'; + BEGIN + ut3.ut.expect(anydata.convert'||a_object_type||'(l_object)).'||a_matcher_name||'(); + END;'; + end; + function binary_expectation_block(a_matcher_name in varchar2, a_data_type_1 in varchar2, a_data_value_1 in varchar2, diff --git a/test/helpers/expectations_helpers.pks b/test/helpers/expectations_helpers.pks index e468b77e9..a8cc412b5 100644 --- a/test/helpers/expectations_helpers.pks +++ b/test/helpers/expectations_helpers.pks @@ -5,6 +5,12 @@ is a_data_value in varchar2) return varchar2; + function unary_expectation_object_block(a_matcher_name in varchar2, + a_object_name in varchar2, + a_object_value in varchar2, + a_object_type in varchar2) + return varchar2; + function binary_expectation_block(a_matcher_name in varchar2, a_data_type_1 in varchar2, a_data_value_1 in varchar2, diff --git a/test/install_tests.sql b/test/install_tests.sql index 3e0edf085..422d20ad2 100644 --- a/test/install_tests.sql +++ b/test/install_tests.sql @@ -25,6 +25,7 @@ whenever oserror exit failure rollback @@core/reporters/test_xunit_reporter.pks @@core/expectations/test_expectations_cursor.pks @@core/expectations/test_expect_not_to_be_null.pks +@@core/expectations/test_expect_to_be_not_null.pks @@test_ut_runner.pks @@core/annotations/test_annotation_manager.pks @@core/test_ut_suite.pks @@ -42,6 +43,7 @@ whenever oserror exit failure rollback @@core/reporters/test_xunit_reporter.pkb @@core/expectations/test_expectations_cursor.pkb @@core/expectations/test_expect_not_to_be_null.pkb +@@core/expectations/test_expect_to_be_not_null.pkb @@test_ut_runner.pkb @@core/annotations/test_annotation_manager.pkb @@core/test_ut_suite.pkb From c7c2cad7063987d70042753f1c94195688ed0a95 Mon Sep 17 00:00:00 2001 From: Walter Alexis Castro Date: Fri, 12 Jan 2018 04:55:26 -0600 Subject: [PATCH 2/2] typos corrected --- test/core/expectations/test_expect_not_to_be_null.pkb | 4 ++-- test/core/expectations/test_expect_not_to_be_null.pks | 4 ++-- test/core/expectations/test_expect_to_be_not_null.pkb | 4 ++-- test/core/expectations/test_expect_to_be_not_null.pks | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/core/expectations/test_expect_not_to_be_null.pkb b/test/core/expectations/test_expect_not_to_be_null.pkb index c89091395..068c572aa 100644 --- a/test/core/expectations/test_expect_not_to_be_null.pkb +++ b/test/core/expectations/test_expect_not_to_be_null.pkb @@ -37,7 +37,7 @@ is ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); end; - procedure blob_0_lengt + procedure blob_0_length is begin --Act @@ -65,7 +65,7 @@ is end; - procedure clob_0_lengt + procedure clob_0_length is begin --Act diff --git a/test/core/expectations/test_expect_not_to_be_null.pks b/test/core/expectations/test_expect_not_to_be_null.pks index 03e9bcec6..00b8b3898 100644 --- a/test/core/expectations/test_expect_not_to_be_null.pks +++ b/test/core/expectations/test_expect_not_to_be_null.pks @@ -16,7 +16,7 @@ is procedure blob_not_null; --%test(Gives success for blob with length 0) - procedure blob_0_lengt; + procedure blob_0_length; --%test(Gives success for not null boolean) procedure boolean_not_null; @@ -25,7 +25,7 @@ is procedure clob_not_null; --%test(Gives success for clob with length 0) - procedure clob_0_lengt; + procedure clob_0_length; --%test(Gives success for not null date) procedure date_not_null; diff --git a/test/core/expectations/test_expect_to_be_not_null.pkb b/test/core/expectations/test_expect_to_be_not_null.pkb index 521e0f21f..0b859f731 100644 --- a/test/core/expectations/test_expect_to_be_not_null.pkb +++ b/test/core/expectations/test_expect_to_be_not_null.pkb @@ -37,7 +37,7 @@ is ut.expect(anydata.convertCollection(ut3.ut_expectation_processor.get_failed_expectations())).to_be_empty(); end; - procedure blob_0_lengt + procedure blob_0_length is begin --Act @@ -65,7 +65,7 @@ is end; - procedure clob_0_lengt + procedure clob_0_length is begin --Act diff --git a/test/core/expectations/test_expect_to_be_not_null.pks b/test/core/expectations/test_expect_to_be_not_null.pks index 30c2c640e..32997b740 100644 --- a/test/core/expectations/test_expect_to_be_not_null.pks +++ b/test/core/expectations/test_expect_to_be_not_null.pks @@ -16,7 +16,7 @@ is procedure blob_not_null; --%test(Gives success for blob with length 0) - procedure blob_0_lengt; + procedure blob_0_length; --%test(Gives success for not null boolean) procedure boolean_not_null; @@ -25,7 +25,7 @@ is procedure clob_not_null; --%test(Gives success for clob with length 0) - procedure clob_0_lengt; + procedure clob_0_length; --%test(Gives success for not null date) procedure date_not_null;