diff --git a/source/api/ut.pkb b/source/api/ut.pkb index 3ff89c9d6..bb02ccf8e 100644 --- a/source/api/ut.pkb +++ b/source/api/ut.pkb @@ -24,69 +24,69 @@ create or replace package body ut is return ut_runner.version(); end; - function expect(a_actual in anydata, a_message varchar2 := null) return ut_expectation_anydata is + function expect(a_actual in anydata, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_anydata(ut_data_value_anydata.get_instance(a_actual), a_message); + return ut_expectation(ut_data_value_anydata.get_instance(a_actual), a_message); end; - function expect(a_actual in blob, a_message varchar2 := null) return ut_expectation_blob is + function expect(a_actual in blob, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_blob(ut_data_value_blob(a_actual), a_message); + return ut_expectation(ut_data_value_blob(a_actual), a_message); end; - function expect(a_actual in boolean, a_message varchar2 := null) return ut_expectation_boolean is + function expect(a_actual in boolean, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_boolean(ut_data_value_boolean(a_actual), a_message); + return ut_expectation(ut_data_value_boolean(a_actual), a_message); end; - function expect(a_actual in clob, a_message varchar2 := null) return ut_expectation_clob is + function expect(a_actual in clob, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_clob(ut_data_value_clob(a_actual), a_message); + return ut_expectation(ut_data_value_clob(a_actual), a_message); end; - function expect(a_actual in date, a_message varchar2 := null) return ut_expectation_date is + function expect(a_actual in date, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_date(ut_data_value_date(a_actual), a_message); + return ut_expectation(ut_data_value_date(a_actual), a_message); end; - function expect(a_actual in number, a_message varchar2 := null) return ut_expectation_number is + function expect(a_actual in number, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_number(ut_data_value_number(a_actual), a_message); + return ut_expectation(ut_data_value_number(a_actual), a_message); end; - function expect(a_actual in timestamp_unconstrained, a_message varchar2 := null) return ut_expectation_timestamp is + function expect(a_actual in timestamp_unconstrained, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_timestamp(ut_data_value_timestamp(a_actual), a_message); + return ut_expectation(ut_data_value_timestamp(a_actual), a_message); end; - function expect(a_actual in timestamp_ltz_unconstrained, a_message varchar2 := null) return ut_expectation_timestamp_ltz is + function expect(a_actual in timestamp_ltz_unconstrained, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_timestamp_ltz(ut_data_value_timestamp_ltz(a_actual), a_message); + return ut_expectation(ut_data_value_timestamp_ltz(a_actual), a_message); end; - function expect(a_actual in timestamp_tz_unconstrained, a_message varchar2 := null) return ut_expectation_timestamp_tz is + function expect(a_actual in timestamp_tz_unconstrained, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_timestamp_tz(ut_data_value_timestamp_tz(a_actual), a_message); + return ut_expectation(ut_data_value_timestamp_tz(a_actual), a_message); end; - function expect(a_actual in varchar2, a_message varchar2 := null) return ut_expectation_varchar2 is + function expect(a_actual in varchar2, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_varchar2(ut_data_value_varchar2(a_actual), a_message); + return ut_expectation(ut_data_value_varchar2(a_actual), a_message); end; - function expect(a_actual in sys_refcursor, a_message varchar2 := null) return ut_expectation_refcursor is + function expect(a_actual in sys_refcursor, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_refcursor(ut_data_value_refcursor(a_actual), a_message); + return ut_expectation(ut_data_value_refcursor(a_actual), a_message); end; - function expect(a_actual in yminterval_unconstrained, a_message varchar2 := null) return ut_expectation_yminterval is + function expect(a_actual in yminterval_unconstrained, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_yminterval(ut_data_value_yminterval(a_actual), a_message); + return ut_expectation(ut_data_value_yminterval(a_actual), a_message); end; - function expect(a_actual in dsinterval_unconstrained, a_message varchar2 := null) return ut_expectation_dsinterval is + function expect(a_actual in dsinterval_unconstrained, a_message varchar2 := null) return ut_expectation is begin - return ut_expectation_dsinterval(ut_data_value_dsinterval(a_actual), a_message); + return ut_expectation(ut_data_value_dsinterval(a_actual), a_message); end; procedure fail(a_message in varchar2) is diff --git a/source/api/ut.pks b/source/api/ut.pks index 84b1cc422..58a4ab6a8 100644 --- a/source/api/ut.pks +++ b/source/api/ut.pks @@ -19,31 +19,31 @@ create or replace package ut authid current_user as function version return varchar2; - function expect(a_actual in anydata, a_message varchar2 := null) return ut_expectation_anydata; + function expect(a_actual in anydata, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in blob, a_message varchar2 := null) return ut_expectation_blob; + function expect(a_actual in blob, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in boolean, a_message varchar2 := null) return ut_expectation_boolean; + function expect(a_actual in boolean, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in clob, a_message varchar2 := null) return ut_expectation_clob; + function expect(a_actual in clob, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in date, a_message varchar2 := null) return ut_expectation_date; + function expect(a_actual in date, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in number, a_message varchar2 := null) return ut_expectation_number; + function expect(a_actual in number, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in sys_refcursor, a_message varchar2 := null) return ut_expectation_refcursor; + function expect(a_actual in sys_refcursor, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in timestamp_unconstrained, a_message varchar2 := null) return ut_expectation_timestamp; + function expect(a_actual in timestamp_unconstrained, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in timestamp_ltz_unconstrained, a_message varchar2 := null) return ut_expectation_timestamp_ltz; + function expect(a_actual in timestamp_ltz_unconstrained, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in timestamp_tz_unconstrained, a_message varchar2 := null) return ut_expectation_timestamp_tz; + function expect(a_actual in timestamp_tz_unconstrained, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in varchar2, a_message varchar2 := null) return ut_expectation_varchar2; + function expect(a_actual in varchar2, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in yminterval_unconstrained, a_message varchar2 := null) return ut_expectation_yminterval; + function expect(a_actual in yminterval_unconstrained, a_message varchar2 := null) return ut_expectation; - function expect(a_actual in dsinterval_unconstrained, a_message varchar2 := null) return ut_expectation_dsinterval; + function expect(a_actual in dsinterval_unconstrained, a_message varchar2 := null) return ut_expectation; procedure fail(a_message in varchar2); diff --git a/source/expectations/ut_expectation.tpb b/source/expectations/ut_expectation.tpb index 45ded5785..5d63b168a 100644 --- a/source/expectations/ut_expectation.tpb +++ b/source/expectations/ut_expectation.tpb @@ -15,6 +15,93 @@ create or replace type body ut_expectation as See the License for the specific language governing permissions and limitations under the License. */ + member procedure to_(self in ut_expectation, a_matcher ut_matcher) is + l_expectation_result boolean; + l_matcher ut_matcher := a_matcher; + l_message varchar2(32767); + begin + ut_utils.debug_log('ut_expectation.to_(self in ut_expectation, a_matcher ut_matcher)'); + + l_expectation_result := l_matcher.run_matcher( self.actual_data ); + l_expectation_result := coalesce(l_expectation_result,false); + l_message := coalesce( l_matcher.error_message( self.actual_data ), l_matcher.failure_message( self.actual_data ) ); + ut_expectation_processor.add_expectation_result( ut_expectation_result( ut_utils.to_test_result( l_expectation_result ), self.description, l_message ) ); + end; + + member procedure not_to(self in ut_expectation, a_matcher ut_matcher) is + l_expectation_result boolean; + l_matcher ut_matcher := a_matcher; + l_message varchar2(32767); + begin + ut_utils.debug_log('ut_expectation.not_to(self in ut_expectation, a_matcher ut_matcher)'); + + l_expectation_result := l_matcher.run_matcher_negated( self.actual_data ); + l_expectation_result := coalesce(l_expectation_result,false); + l_message := coalesce( l_matcher.error_message( self.actual_data ), l_matcher.failure_message_when_negated( self.actual_data ) ); + ut_expectation_processor.add_expectation_result( ut_expectation_result( ut_utils.to_test_result( l_expectation_result ), self.description, l_message ) ); + end; + + member procedure to_be_null(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.to_be_null'); + self.to_( ut_be_null() ); + end; + + member procedure to_be_not_null(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.to_be_not_null'); + self.to_( ut_be_not_null() ); + end; + + member procedure not_to_be_null(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.to_be_null'); + self.not_to( ut_be_null() ); + end; + + member procedure not_to_be_not_null(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.to_be_not_null'); + self.not_to( ut_be_not_null() ); + end; + + member procedure to_be_true(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.to_be_true(self in ut_expectation)'); + self.to_( ut_be_true() ); + end; + + member procedure to_be_false(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.to_be_false(self in ut_expectation)'); + self.to_( ut_be_false() ); + end; + + member procedure not_to_be_true(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_true(self in ut_expectation)'); + self.not_to( ut_be_true() ); + end; + + member procedure not_to_be_false(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_false(self in ut_expectation)'); + self.not_to( ut_be_false() ); + end; + + member procedure to_be_empty(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.to_be_empty(self in ut_expectation)'); + self.to_( ut_be_empty() ); + end; + + member procedure not_to_be_empty(self in ut_expectation) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_empty(self in ut_expectation)'); + self.not_to( ut_be_empty() ); + end; + + member procedure to_equal(self in ut_expectation, a_expected anydata, a_exclude varchar2 := null, a_nulls_are_equal boolean := null) is begin ut_utils.debug_log('ut_expectation.to_equal(self in ut_expectation, a_expected anydata, a_nulls_are_equal boolean := null)'); @@ -105,55 +192,6 @@ create or replace type body ut_expectation as self.to_( ut_equal(a_expected, a_nulls_are_equal) ); end; - final member procedure to_(self in ut_expectation, a_matcher ut_matcher) is - l_expectation_result boolean; - l_matcher ut_matcher := a_matcher; - l_message varchar2(32767); - begin - ut_utils.debug_log('ut_expectation.to_(self in ut_expectation, a_matcher ut_matcher)'); - - l_expectation_result := l_matcher.run_matcher( self.actual_data ); - l_expectation_result := coalesce(l_expectation_result,false); - l_message := coalesce( l_matcher.error_message( self.actual_data ), l_matcher.failure_message( self.actual_data ) ); - ut_expectation_processor.add_expectation_result( ut_expectation_result( ut_utils.to_test_result( l_expectation_result ), self.description, l_message ) ); - end; - - final member procedure not_to(self in ut_expectation, a_matcher ut_matcher) is - l_expectation_result boolean; - l_matcher ut_matcher := a_matcher; - l_message varchar2(32767); - begin - ut_utils.debug_log('ut_expectation.not_to(self in ut_expectation, a_matcher ut_matcher)'); - - l_expectation_result := l_matcher.run_matcher_negated( self.actual_data ); - l_expectation_result := coalesce(l_expectation_result,false); - l_message := coalesce( l_matcher.error_message( self.actual_data ), l_matcher.failure_message_when_negated( self.actual_data ) ); - ut_expectation_processor.add_expectation_result( ut_expectation_result( ut_utils.to_test_result( l_expectation_result ), self.description, l_message ) ); - end; - - final member procedure to_be_null(self in ut_expectation) is - begin - ut_utils.debug_log('ut_expectation.to_be_null'); - self.to_( ut_be_null() ); - end; - - final member procedure to_be_not_null(self in ut_expectation) is - begin - ut_utils.debug_log('ut_expectation.to_be_not_null'); - self.to_( ut_be_not_null() ); - end; - - final member procedure not_to_be_null(self in ut_expectation) is - begin - ut_utils.debug_log('ut_expectation.to_be_null'); - self.not_to( ut_be_null() ); - end; - - final member procedure not_to_be_not_null(self in ut_expectation) is - begin - ut_utils.debug_log('ut_expectation.to_be_not_null'); - self.not_to( ut_be_not_null() ); - end; member procedure not_to_equal(self in ut_expectation, a_expected anydata, a_exclude varchar2 := null, a_nulls_are_equal boolean := null) is begin @@ -245,5 +283,475 @@ create or replace type body ut_expectation as self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); end; + + member procedure to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 := null) is + begin + ut_utils.debug_log('ut_expectation.to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 default null)'); + self.to_( ut_be_like(a_mask, a_escape_char) ); + end; + + + member procedure to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 default null) is + begin + ut_utils.debug_log('ut_expectation.to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 default null)'); + self.to_( ut_match(a_pattern, a_modifiers) ); + end; + + + member procedure not_to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 := null) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 default null)'); + self.not_to( ut_be_like(a_mask, a_escape_char) ); + end; + + + member procedure not_to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 default null) is + begin + ut_utils.debug_log('ut_expectation.not_to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 default null)'); + self.not_to( ut_match(a_pattern, a_modifiers) ); + end; + + + member procedure to_be_between(self in ut_expectation, a_lower_bound date, a_upper_bound date) is + begin + ut_utils.debug_log('ut_expectation.to_be_between(self in ut_expectation, a_lower_bound date, a_upper_bound date)'); + self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + member procedure to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained)'); + self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + member procedure to_be_between(self in ut_expectation, a_lower_bound number, a_upper_bound number) is + begin + ut_utils.debug_log('ut_expectation.to_be_between(self in ut_expectation_date, a_lower_bound number, a_upper_bound number)'); + self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + member procedure to_be_between(self in ut_expectation, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_between(self in ut_expectation, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained)'); + self.to_( ut_be_between(a_lower_bound, a_upper_bound) ); + end; + + member procedure to_be_between(self in ut_expectation, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_between(self in ut_expectation, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained)'); + self.to_( ut_be_between(a_lower_bound, a_upper_bound) ); + end; + + member procedure to_be_between(self in ut_expectation, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_between(self in ut_expectation, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained)'); + self.to_( ut_be_between(a_lower_bound, a_upper_bound) ); + end; + + member procedure to_be_between(self in ut_expectation, a_lower_bound varchar2, a_upper_bound varchar2) is + begin + ut_utils.debug_log('ut_expectation.to_be_between(self in ut_expectation, a_lower_bound varchar2, a_upper_bound varchar2)'); + self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + member procedure to_be_between(self in ut_expectation, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained)'); + self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected date) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_or_equal(self in ut_expectation, a_expected date)'); + self.to_( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained)'); + self.to_( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected number) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_or_equal(self in ut_expectation, a_expected number)'); + self.to_( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_unconstrained)'); + self.to_( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained)'); + self.to_( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained)'); + self.to_( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_or_equal(self in ut_expectation, a_expected yminterval_unconstrained)'); + self.to_( ut_be_greater_or_equal (a_expected) ); + end; + + + member procedure to_be_greater_than(self in ut_expectation, a_expected date) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_than(self in ut_expectation, a_expected date)'); + self.to_( ut_be_greater_than (a_expected) ); + end; + + member procedure to_be_greater_than(self in ut_expectation, a_expected dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_than(self in ut_expectation, a_expected dsinterval_unconstrained)'); + self.to_( ut_be_greater_than (a_expected) ); + end; + + member procedure to_be_greater_than(self in ut_expectation, a_expected number) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_than(self in ut_expectation, a_expected number)'); + self.to_( ut_be_greater_than (a_expected) ); + end; + + member procedure to_be_greater_than(self in ut_expectation, a_expected timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_than(self in ut_expectation, a_expected timestamp_unconstrained)'); + self.to_( ut_be_greater_than (a_expected) ); + end; + + member procedure to_be_greater_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained)'); + self.to_( ut_be_greater_than (a_expected) ); + end; + + member procedure to_be_greater_than(self in ut_expectation, a_expected timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_than(self in ut_expectation, a_expected timestamp_tz_unconstrained)'); + self.to_( ut_be_greater_than (a_expected) ); + end; + + member procedure to_be_greater_than(self in ut_expectation, a_expected yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_greater_than(self in ut_expectation, a_expected yminterval_unconstrained)'); + self.to_( ut_be_greater_than (a_expected) ); + end; + + + member procedure to_be_less_or_equal(self in ut_expectation, a_expected date) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_or_equal(self in ut_expectation, a_expected date)'); + self.to_( ut_be_less_or_equal (a_expected) ); + end; + + member procedure to_be_less_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained)'); + self.to_( ut_be_less_or_equal (a_expected) ); + end; + + member procedure to_be_less_or_equal(self in ut_expectation, a_expected number) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_or_equal(self in ut_expectation, a_expected number)'); + self.to_( ut_be_less_or_equal (a_expected) ); + end; + + member procedure to_be_less_or_equal(self in ut_expectation, a_expected timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_or_equal(self in ut_expectation, a_expected timestamp_unconstrained)'); + self.to_( ut_be_less_or_equal (a_expected) ); + end; + + member procedure to_be_less_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained)'); + self.to_( ut_be_less_or_equal (a_expected) ); + end; + + member procedure to_be_less_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained)'); + self.to_( ut_be_less_or_equal (a_expected) ); + end; + + member procedure to_be_less_or_equal(self in ut_expectation, a_expected yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_or_equal(self in ut_expectation, a_expected yminterval_unconstrained)'); + self.to_( ut_be_less_or_equal (a_expected) ); + end; + + + member procedure to_be_less_than(self in ut_expectation, a_expected date) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_than(self in ut_expectation, a_expected date'); + self.to_( ut_be_less_than (a_expected) ); + end; + + member procedure to_be_less_than(self in ut_expectation, a_expected dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_than(self in ut_expectation, a_expected dsinterval_unconstrained)'); + self.to_( ut_be_less_than (a_expected) ); + end; + + member procedure to_be_less_than(self in ut_expectation, a_expected number) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_than(self in ut_expectation, a_expected number'); + self.to_( ut_be_less_than (a_expected) ); + end; + + member procedure to_be_less_than(self in ut_expectation, a_expected timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_than(self in ut_expectation, a_expected timestamp_unconstrained)'); + self.to_( ut_be_less_than (a_expected) ); + end; + + member procedure to_be_less_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained)'); + self.to_( ut_be_less_than (a_expected) ); + end; + + member procedure to_be_less_than(self in ut_expectation, a_expected timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_than(self in ut_expectation, a_expected timestamp_tz_unconstrained)'); + self.to_( ut_be_less_than (a_expected) ); + end; + + member procedure to_be_less_than(self in ut_expectation, a_expected yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.to_be_less_than(self in ut_expectation, a_expected yminterval_unconstrained)'); + self.to_( ut_be_less_than (a_expected) ); + end; + + + member procedure not_to_be_between(self in ut_expectation, a_lower_bound date, a_upper_bound date) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_between(self in ut_expectation, a_lower_bound date, a_upper_bound date)'); + self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + member procedure not_to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained)'); + self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + member procedure not_to_be_between(self in ut_expectation, a_lower_bound number, a_upper_bound number) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_between(self in ut_expectation_date, a_lower_bound number, a_upper_bound number)'); + self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + member procedure not_to_be_between(self in ut_expectation, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_between(self in ut_expectation, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained)'); + self.not_to( ut_be_between(a_lower_bound, a_upper_bound) ); + end; + + member procedure not_to_be_between(self in ut_expectation, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_between(self in ut_expectation, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained)'); + self.not_to( ut_be_between(a_lower_bound, a_upper_bound) ); + end; + + member procedure not_to_be_between(self in ut_expectation, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_between(self in ut_expectation, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained)'); + self.not_to( ut_be_between(a_lower_bound, a_upper_bound) ); + end; + + member procedure not_to_be_between(self in ut_expectation, a_lower_bound varchar2, a_upper_bound varchar2) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_between(self in ut_expectation, a_lower_bound varchar2, a_upper_bound varchar2)'); + self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + member procedure not_to_be_between(self in ut_expectation, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained)'); + self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); + end; + + + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected date) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_or_equal(self in ut_expectation, a_expected date)'); + self.not_to( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained)'); + self.not_to( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected number) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_or_equal(self in ut_expectation, a_expected number)'); + self.not_to( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_unconstrained)'); + self.not_to( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained)'); + self.not_to( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained)'); + self.not_to( ut_be_greater_or_equal (a_expected) ); + end; + + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_or_equal(self in ut_expectation, a_expected yminterval_unconstrained)'); + self.not_to( ut_be_greater_or_equal (a_expected) ); + end; + + + member procedure not_to_be_greater_than(self in ut_expectation, a_expected date) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_than(self in ut_expectation, a_expected date)'); + self.not_to( ut_be_greater_than (a_expected) ); + end; + + member procedure not_to_be_greater_than(self in ut_expectation, a_expected dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_than(self in ut_expectation, a_expected dsinterval_unconstrained)'); + self.not_to( ut_be_greater_than (a_expected) ); + end; + + member procedure not_to_be_greater_than(self in ut_expectation, a_expected number) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_than(self in ut_expectation, a_expected number)'); + self.not_to( ut_be_greater_than (a_expected) ); + end; + + member procedure not_to_be_greater_than(self in ut_expectation, a_expected timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_than(self in ut_expectation, a_expected timestamp_unconstrained)'); + self.not_to( ut_be_greater_than (a_expected) ); + end; + + member procedure not_to_be_greater_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained)'); + self.not_to( ut_be_greater_than (a_expected) ); + end; + + member procedure not_to_be_greater_than(self in ut_expectation, a_expected timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_than(self in ut_expectation, a_expected timestamp_tz_unconstrained)'); + self.not_to( ut_be_greater_than (a_expected) ); + end; + + member procedure not_to_be_greater_than(self in ut_expectation, a_expected yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_greater_than(self in ut_expectation, a_expected yminterval_unconstrained)'); + self.not_to( ut_be_greater_than (a_expected) ); + end; + + + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected date) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_or_equal(self in ut_expectation, a_expected date)'); + self.not_to( ut_be_less_or_equal (a_expected) ); + end; + + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained)'); + self.not_to( ut_be_less_or_equal (a_expected) ); + end; + + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected number) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_or_equal(self in ut_expectation, a_expected number)'); + self.not_to( ut_be_less_or_equal (a_expected) ); + end; + + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_unconstrained)'); + self.not_to( ut_be_less_or_equal (a_expected) ); + end; + + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained)'); + self.not_to( ut_be_less_or_equal (a_expected) ); + end; + + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained)'); + self.not_to( ut_be_less_or_equal (a_expected) ); + end; + + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_or_equal(self in ut_expectation, a_expected yminterval_unconstrained)'); + self.not_to( ut_be_less_or_equal (a_expected) ); + end; + + + member procedure not_to_be_less_than(self in ut_expectation, a_expected date) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_than(self in ut_expectation, a_expected date'); + self.not_to( ut_be_less_than (a_expected) ); + end; + + member procedure not_to_be_less_than(self in ut_expectation, a_expected dsinterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_than(self in ut_expectation, a_expected dsinterval_unconstrained)'); + self.not_to( ut_be_less_than (a_expected) ); + end; + + member procedure not_to_be_less_than(self in ut_expectation, a_expected number) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_than(self in ut_expectation, a_expected number'); + self.not_to( ut_be_less_than (a_expected) ); + end; + + member procedure not_to_be_less_than(self in ut_expectation, a_expected timestamp_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_than(self in ut_expectation, a_expected timestamp_unconstrained)'); + self.not_to( ut_be_less_than (a_expected) ); + end; + + member procedure not_to_be_less_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained)'); + self.not_to( ut_be_less_than (a_expected) ); + end; + + member procedure not_to_be_less_than(self in ut_expectation, a_expected timestamp_tz_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_than(self in ut_expectation, a_expected timestamp_tz_unconstrained)'); + self.not_to( ut_be_less_than (a_expected) ); + end; + + member procedure not_to_be_less_than(self in ut_expectation, a_expected yminterval_unconstrained) is + begin + ut_utils.debug_log('ut_expectation.not_to_be_less_than(self in ut_expectation, a_expected yminterval_unconstrained)'); + self.not_to( ut_be_less_than (a_expected) ); + end; + end; / diff --git a/source/expectations/ut_expectation.tps b/source/expectations/ut_expectation.tps index 095d7d719..1fca9d2b0 100644 --- a/source/expectations/ut_expectation.tps +++ b/source/expectations/ut_expectation.tps @@ -17,12 +17,23 @@ create or replace type ut_expectation authid current_user as object( */ actual_data ut_data_value, description varchar2(4000 char), - final member procedure to_(self in ut_expectation, a_matcher ut_matcher), - final member procedure not_to(self in ut_expectation, a_matcher ut_matcher), - final member procedure to_be_null(self in ut_expectation), - final member procedure to_be_not_null(self in ut_expectation), - final member procedure not_to_be_null(self in ut_expectation), - final member procedure not_to_be_not_null(self in ut_expectation), + --base matcher executors + member procedure to_(self in ut_expectation, a_matcher ut_matcher), + member procedure not_to(self in ut_expectation, a_matcher ut_matcher), + + --shortcuts + member procedure to_be_null(self in ut_expectation), + member procedure to_be_not_null(self in ut_expectation), + member procedure not_to_be_null(self in ut_expectation), + member procedure not_to_be_not_null(self in ut_expectation), + + member procedure to_be_true(self in ut_expectation), + member procedure to_be_false(self in ut_expectation), + member procedure not_to_be_true(self in ut_expectation), + member procedure not_to_be_false(self in ut_expectation), + + member procedure to_be_empty(self in ut_expectation), + member procedure not_to_be_empty(self in ut_expectation), -- this is done to provide strong type comparison. other comporators should be implemented in the type-specific classes member procedure to_equal(self in ut_expectation, a_expected anydata, a_exclude varchar2 := null, a_nulls_are_equal boolean := null), @@ -55,7 +66,99 @@ create or replace type ut_expectation authid current_user as object( member procedure not_to_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null), member procedure not_to_equal(self in ut_expectation, a_expected varchar2, a_nulls_are_equal boolean := null), member procedure not_to_equal(self in ut_expectation, a_expected yminterval_unconstrained, a_nulls_are_equal boolean := null), - member procedure not_to_equal(self in ut_expectation, a_expected dsinterval_unconstrained, a_nulls_are_equal boolean := null) + member procedure not_to_equal(self in ut_expectation, a_expected dsinterval_unconstrained, a_nulls_are_equal boolean := null), + + + + member procedure to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 := null), + + member procedure to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 := null), + + member procedure not_to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 := null), + + member procedure not_to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 := null), + + member procedure to_be_between(self in ut_expectation, a_lower_bound date, a_upper_bound date), + member procedure to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained), + member procedure to_be_between(self in ut_expectation, a_lower_bound number, a_upper_bound number), + member procedure to_be_between(self in ut_expectation, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained), + member procedure to_be_between(self in ut_expectation, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained), + member procedure to_be_between(self in ut_expectation, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained), + member procedure to_be_between(self in ut_expectation, a_lower_bound varchar2, a_upper_bound varchar2), + member procedure to_be_between(self in ut_expectation, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained), + + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected date), + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained), + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected number), + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_unconstrained), + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained), + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained), + member procedure to_be_greater_or_equal(self in ut_expectation, a_expected yminterval_unconstrained), + + member procedure to_be_greater_than(self in ut_expectation, a_expected date), + member procedure to_be_greater_than(self in ut_expectation, a_expected dsinterval_unconstrained), + member procedure to_be_greater_than(self in ut_expectation, a_expected number), + member procedure to_be_greater_than(self in ut_expectation, a_expected timestamp_unconstrained), + member procedure to_be_greater_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained), + member procedure to_be_greater_than(self in ut_expectation, a_expected timestamp_tz_unconstrained), + member procedure to_be_greater_than(self in ut_expectation, a_expected yminterval_unconstrained), + + member procedure to_be_less_or_equal(self in ut_expectation, a_expected date), + member procedure to_be_less_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained), + member procedure to_be_less_or_equal(self in ut_expectation, a_expected number), + member procedure to_be_less_or_equal(self in ut_expectation, a_expected timestamp_unconstrained), + member procedure to_be_less_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained), + member procedure to_be_less_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained), + member procedure to_be_less_or_equal(self in ut_expectation, a_expected yminterval_unconstrained), + + member procedure to_be_less_than(self in ut_expectation, a_expected date), + member procedure to_be_less_than(self in ut_expectation, a_expected dsinterval_unconstrained), + member procedure to_be_less_than(self in ut_expectation, a_expected number), + member procedure to_be_less_than(self in ut_expectation, a_expected timestamp_unconstrained), + member procedure to_be_less_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained), + member procedure to_be_less_than(self in ut_expectation, a_expected timestamp_tz_unconstrained), + member procedure to_be_less_than(self in ut_expectation, a_expected yminterval_unconstrained), + + member procedure not_to_be_between(self in ut_expectation, a_lower_bound date, a_upper_bound date), + member procedure not_to_be_between(self in ut_expectation, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained), + member procedure not_to_be_between(self in ut_expectation, a_lower_bound number, a_upper_bound number), + member procedure not_to_be_between(self in ut_expectation, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained), + member procedure not_to_be_between(self in ut_expectation, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained), + member procedure not_to_be_between(self in ut_expectation, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained), + member procedure not_to_be_between(self in ut_expectation, a_lower_bound varchar2, a_upper_bound varchar2), + member procedure not_to_be_between(self in ut_expectation, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained), + + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected date), + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained), + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected number), + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_unconstrained), + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained), + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained), + member procedure not_to_be_greater_or_equal(self in ut_expectation, a_expected yminterval_unconstrained), + + member procedure not_to_be_greater_than(self in ut_expectation, a_expected date), + member procedure not_to_be_greater_than(self in ut_expectation, a_expected dsinterval_unconstrained), + member procedure not_to_be_greater_than(self in ut_expectation, a_expected number), + member procedure not_to_be_greater_than(self in ut_expectation, a_expected timestamp_unconstrained), + member procedure not_to_be_greater_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained), + member procedure not_to_be_greater_than(self in ut_expectation, a_expected timestamp_tz_unconstrained), + member procedure not_to_be_greater_than(self in ut_expectation, a_expected yminterval_unconstrained), + + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected date), + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected dsinterval_unconstrained), + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected number), + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_unconstrained), + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained), + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained), + member procedure not_to_be_less_or_equal(self in ut_expectation, a_expected yminterval_unconstrained), + + member procedure not_to_be_less_than(self in ut_expectation, a_expected date), + member procedure not_to_be_less_than(self in ut_expectation, a_expected dsinterval_unconstrained), + member procedure not_to_be_less_than(self in ut_expectation, a_expected number), + member procedure not_to_be_less_than(self in ut_expectation, a_expected timestamp_unconstrained), + member procedure not_to_be_less_than(self in ut_expectation, a_expected timestamp_ltz_unconstrained), + member procedure not_to_be_less_than(self in ut_expectation, a_expected timestamp_tz_unconstrained), + member procedure not_to_be_less_than(self in ut_expectation, a_expected yminterval_unconstrained) ) -not final not instantiable +final / diff --git a/source/expectations/ut_expectation_anydata.tpb b/source/expectations/ut_expectation_anydata.tpb deleted file mode 100644 index b1adb8adc..000000000 --- a/source/expectations/ut_expectation_anydata.tpb +++ /dev/null @@ -1,56 +0,0 @@ -create or replace type body ut_expectation_anydata as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_anydata, a_expected anydata, a_exclude varchar2 := null, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_anydata.to_equal(self in ut_expectation_anydata, a_expected anydata, a_nulls_are_equal boolean := null)'); - self.to_( ut_equal(a_expected, a_exclude, a_nulls_are_equal) ); - end; - - overriding member procedure to_equal(self in ut_expectation_anydata, a_expected anydata, a_exclude ut_varchar2_list, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_anydata.to_equal(self in ut_expectation_anydata, a_expected anydata, a_nulls_are_equal boolean := null)'); - self.to_( ut_equal(a_expected, a_exclude, a_nulls_are_equal) ); - end; - - member procedure to_be_empty(self in ut_expectation_anydata) is - begin - ut_utils.debug_log('ut_expectation_anydata.to_be_empty(self in ut_expectation_anydata)'); - self.to_( ut_be_empty() ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_anydata, a_expected anydata, a_exclude varchar2 := null, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_anydata.not_to_equal(self in ut_expectation_anydata, a_expected anydata, a_nulls_are_equal boolean := null)'); - self.not_to( ut_equal(a_expected, a_exclude, a_nulls_are_equal) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_anydata, a_expected anydata, a_exclude ut_varchar2_list, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_anydata.not_to_equal(self in ut_expectation_anydata, a_expected anydata, a_nulls_are_equal boolean := null)'); - self.not_to( ut_equal(a_expected, a_exclude, a_nulls_are_equal) ); - end; - - member procedure not_to_be_empty(self in ut_expectation_anydata) is - begin - ut_utils.debug_log('ut_expectation_anydata.not_to_be_empty(self in ut_expectation_anydata)'); - self.not_to( ut_be_empty() ); - end; - - -end; -/ diff --git a/source/expectations/ut_expectation_anydata.tps b/source/expectations/ut_expectation_anydata.tps deleted file mode 100644 index c7edf4fe5..000000000 --- a/source/expectations/ut_expectation_anydata.tps +++ /dev/null @@ -1,26 +0,0 @@ -create or replace type ut_expectation_anydata under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_anydata, a_expected anydata, a_exclude varchar2 := null, a_nulls_are_equal boolean := null), - overriding member procedure to_equal(self in ut_expectation_anydata, a_expected anydata, a_exclude ut_varchar2_list, a_nulls_are_equal boolean := null), - member procedure to_be_empty(self in ut_expectation_anydata), - - overriding member procedure not_to_equal(self in ut_expectation_anydata, a_expected anydata, a_exclude varchar2 := null, a_nulls_are_equal boolean := null), - overriding member procedure not_to_equal(self in ut_expectation_anydata, a_expected anydata, a_exclude ut_varchar2_list, a_nulls_are_equal boolean := null), - member procedure not_to_be_empty(self in ut_expectation_anydata) -) -/ diff --git a/source/expectations/ut_expectation_blob.tpb b/source/expectations/ut_expectation_blob.tpb deleted file mode 100644 index 04568d600..000000000 --- a/source/expectations/ut_expectation_blob.tpb +++ /dev/null @@ -1,31 +0,0 @@ -create or replace type body ut_expectation_blob as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_blob, a_expected blob, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_blob.to_equal(self in ut_expectation, a_expected blob)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_blob, a_expected blob, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_blob.not_to_equal(self in ut_expectation, a_expected blob)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_blob.tps b/source/expectations/ut_expectation_blob.tps deleted file mode 100644 index 00ab313ba..000000000 --- a/source/expectations/ut_expectation_blob.tps +++ /dev/null @@ -1,21 +0,0 @@ -create or replace type ut_expectation_blob under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_blob, a_expected blob, a_nulls_are_equal boolean := null), - overriding member procedure not_to_equal(self in ut_expectation_blob, a_expected blob, a_nulls_are_equal boolean := null) -) -/ diff --git a/source/expectations/ut_expectation_boolean.tpb b/source/expectations/ut_expectation_boolean.tpb deleted file mode 100644 index 47cc176ed..000000000 --- a/source/expectations/ut_expectation_boolean.tpb +++ /dev/null @@ -1,55 +0,0 @@ -create or replace type body ut_expectation_boolean as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_boolean, a_expected boolean, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_boolean.to_equal(self in ut_expectation_boolean, a_expected boolean, a_nulls_are_equal boolean := null)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_true(self in ut_expectation_boolean) is - begin - ut_utils.debug_log('ut_expectation_boolean.to_be_true(self in ut_expectation_boolean)'); - self.to_( ut_be_true() ); - end; - - member procedure to_be_false(self in ut_expectation_boolean) is - begin - ut_utils.debug_log('ut_expectation_boolean.to_be_false(self in ut_expectation_boolean)'); - self.to_( ut_be_false() ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_boolean, a_expected boolean, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_boolean.not_to_equal(self in ut_expectation_boolean, a_expected boolean, a_nulls_are_equal boolean := null)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_true(self in ut_expectation_boolean) is - begin - ut_utils.debug_log('ut_expectation_boolean.not_to_be_true(self in ut_expectation_boolean)'); - self.not_to( ut_be_true() ); - end; - - member procedure not_to_be_false(self in ut_expectation_boolean) is - begin - ut_utils.debug_log('ut_expectation_boolean.not_to_be_false(self in ut_expectation_boolean)'); - self.not_to( ut_be_false() ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_boolean.tps b/source/expectations/ut_expectation_boolean.tps deleted file mode 100644 index bc52b3f16..000000000 --- a/source/expectations/ut_expectation_boolean.tps +++ /dev/null @@ -1,26 +0,0 @@ -create or replace type ut_expectation_boolean under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_boolean, a_expected boolean, a_nulls_are_equal boolean := null), - member procedure to_be_true(self in ut_expectation_boolean), - member procedure to_be_false(self in ut_expectation_boolean), - - overriding member procedure not_to_equal(self in ut_expectation_boolean, a_expected boolean, a_nulls_are_equal boolean := null), - member procedure not_to_be_true(self in ut_expectation_boolean), - member procedure not_to_be_false(self in ut_expectation_boolean) -) -/ diff --git a/source/expectations/ut_expectation_clob.tpb b/source/expectations/ut_expectation_clob.tpb deleted file mode 100644 index be57e1fda..000000000 --- a/source/expectations/ut_expectation_clob.tpb +++ /dev/null @@ -1,55 +0,0 @@ -create or replace type body ut_expectation_clob as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_clob, a_expected clob, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_clob.to_equal(self in ut_expectation, a_expected clob)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_like(self in ut_expectation_clob, a_mask in varchar2, a_escape_char in varchar2 := null) is - begin - ut_utils.debug_log('ut_expectation_clob.to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 default null)'); - self.to_( ut_be_like(a_mask, a_escape_char) ); - end; - - member procedure to_match(self in ut_expectation_clob, a_pattern in varchar2, a_modifiers in varchar2 default null) is - begin - ut_utils.debug_log('ut_expectation_clob.to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 default null)'); - self.to_( ut_match(a_pattern, a_modifiers) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_clob, a_expected clob, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_clob.not_to_equal(self in ut_expectation, a_expected clob)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_like(self in ut_expectation_clob, a_mask in varchar2, a_escape_char in varchar2 := null) is - begin - ut_utils.debug_log('ut_expectation_clob.not_to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 default null)'); - self.not_to( ut_be_like(a_mask, a_escape_char) ); - end; - - member procedure not_to_match(self in ut_expectation_clob, a_pattern in varchar2, a_modifiers in varchar2 default null) is - begin - ut_utils.debug_log('ut_expectation_clob.not_to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 default null)'); - self.not_to( ut_match(a_pattern, a_modifiers) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_clob.tps b/source/expectations/ut_expectation_clob.tps deleted file mode 100644 index 5beb8e50e..000000000 --- a/source/expectations/ut_expectation_clob.tps +++ /dev/null @@ -1,26 +0,0 @@ -create or replace type ut_expectation_clob under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_clob, a_expected clob, a_nulls_are_equal boolean := null), - member procedure to_be_like(self in ut_expectation_clob, a_mask in varchar2, a_escape_char in varchar2 := null), - member procedure to_match(self in ut_expectation_clob, a_pattern in varchar2, a_modifiers in varchar2 := null), - - overriding member procedure not_to_equal(self in ut_expectation_clob, a_expected clob, a_nulls_are_equal boolean := null), - member procedure not_to_be_like(self in ut_expectation_clob, a_mask in varchar2, a_escape_char in varchar2 := null), - member procedure not_to_match(self in ut_expectation_clob, a_pattern in varchar2, a_modifiers in varchar2 := null) -) -/ diff --git a/source/expectations/ut_expectation_date.tpb b/source/expectations/ut_expectation_date.tpb deleted file mode 100644 index 7f64c3f59..000000000 --- a/source/expectations/ut_expectation_date.tpb +++ /dev/null @@ -1,91 +0,0 @@ -create or replace type body ut_expectation_date as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_date, a_expected date, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_date.to_equal(self in ut_expectation, a_expected date, a_nulls_are_equal boolean := null)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_between(self in ut_expectation_date, a_lower_bound date, a_upper_bound date) is - begin - ut_utils.debug_log('ut_expectation_date.to_be_between(self in ut_expectation_date, a_lower_bound date, a_upper_bound date)'); - self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure to_be_greater_or_equal(self in ut_expectation_date, a_expected date) is - begin - ut_utils.debug_log('ut_expectation_date.to_be_greater_or_equal(self in ut_expectation_date, a_expected date)'); - self.to_( ut_be_greater_or_equal (a_expected) ); - end; - - member procedure to_be_greater_than(self in ut_expectation_date, a_expected date) is - begin - ut_utils.debug_log('ut_expectation_date.to_be_greater_than(self in ut_expectation_date, a_expected date)'); - self.to_( ut_be_greater_than (a_expected) ); - end; - - member procedure to_be_less_or_equal(self in ut_expectation_date, a_expected date) is - begin - ut_utils.debug_log('ut_expectation_date.to_be_less_or_equal(self in ut_expectation_date, a_expected date)'); - self.to_( ut_be_less_or_equal (a_expected) ); - end; - - member procedure to_be_less_than(self in ut_expectation_date, a_expected date) is - begin - ut_utils.debug_log('ut_expectation_date.to_be_less_than(self in ut_expectation_date, a_expected date'); - self.to_( ut_be_less_than (a_expected) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_date, a_expected date, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_date.not_to_equal(self in ut_expectation, a_expected date, a_nulls_are_equal boolean := null)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_between(self in ut_expectation_date, a_lower_bound date, a_upper_bound date) is - begin - ut_utils.debug_log('ut_expectation_date.not_to_be_between(self in ut_expectation_date, a_lower_bound date, a_upper_bound date)'); - self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure not_to_be_greater_or_equal(self in ut_expectation_date, a_expected date) is - begin - ut_utils.debug_log('ut_expectation_date.not_to_be_greater_or_equal(self in ut_expectation_date, a_expected date)'); - self.not_to( ut_be_greater_or_equal (a_expected) ); - end; - - member procedure not_to_be_greater_than(self in ut_expectation_date, a_expected date) is - begin - ut_utils.debug_log('ut_expectation_date.not_to_be_greater_than(self in ut_expectation_date, a_expected date)'); - self.not_to( ut_be_greater_than (a_expected) ); - end; - - member procedure not_to_be_less_or_equal(self in ut_expectation_date, a_expected date) is - begin - ut_utils.debug_log('ut_expectation_date.not_to_be_less_or_equal(self in ut_expectation_date, a_expected date)'); - self.not_to( ut_be_less_or_equal (a_expected) ); - end; - - member procedure not_to_be_less_than(self in ut_expectation_date, a_expected date) is - begin - ut_utils.debug_log('ut_expectation_date.not_to_be_less_than(self in ut_expectation_date, a_expected date'); - self.not_to( ut_be_less_than (a_expected) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_date.tps b/source/expectations/ut_expectation_date.tps deleted file mode 100644 index a23f947ff..000000000 --- a/source/expectations/ut_expectation_date.tps +++ /dev/null @@ -1,32 +0,0 @@ -create or replace type ut_expectation_date under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_date, a_expected date, a_nulls_are_equal boolean := null), - member procedure to_be_between(self in ut_expectation_date, a_lower_bound date, a_upper_bound date), - member procedure to_be_greater_or_equal(self in ut_expectation_date, a_expected date), - member procedure to_be_greater_than(self in ut_expectation_date, a_expected date), - member procedure to_be_less_or_equal(self in ut_expectation_date, a_expected date), - member procedure to_be_less_than(self in ut_expectation_date, a_expected date), - - overriding member procedure not_to_equal(self in ut_expectation_date, a_expected date, a_nulls_are_equal boolean := null), - member procedure not_to_be_between(self in ut_expectation_date, a_lower_bound date, a_upper_bound date), - member procedure not_to_be_greater_or_equal(self in ut_expectation_date, a_expected date), - member procedure not_to_be_greater_than(self in ut_expectation_date, a_expected date), - member procedure not_to_be_less_or_equal(self in ut_expectation_date, a_expected date), - member procedure not_to_be_less_than(self in ut_expectation_date, a_expected date) -) -/ diff --git a/source/expectations/ut_expectation_dsinterval.tpb b/source/expectations/ut_expectation_dsinterval.tpb deleted file mode 100644 index 32c8f70ff..000000000 --- a/source/expectations/ut_expectation_dsinterval.tpb +++ /dev/null @@ -1,85 +0,0 @@ -create or replace type body ut_expectation_dsinterval as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.to_equal(self in ut_expectation, a_expected dsinterval_unconstrained)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_between(self in ut_expectation_dsinterval, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.to_be_between(self in ut_expectation_dsinterval, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained)'); - self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure to_be_greater_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.to_be_greater_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained)'); - self.to_( ut_be_greater_or_equal (a_expected) ); - end; - member procedure to_be_greater_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.to_be_greater_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained)'); - self.to_( ut_be_greater_than (a_expected) ); - end; - member procedure to_be_less_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.to_be_less_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained)'); - self.to_( ut_be_less_or_equal (a_expected) ); - end; - member procedure to_be_less_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.to_be_less_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained)'); - self.to_( ut_be_less_than (a_expected) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.not_to_equal(self in ut_expectation, a_expected dsinterval_unconstrained)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_between(self in ut_expectation_dsinterval, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.not_to_be_between(self in ut_expectation_dsinterval, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained)'); - self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure not_to_be_greater_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.not_to_be_greater_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained)'); - self.not_to( ut_be_greater_or_equal (a_expected) ); - end; - member procedure not_to_be_greater_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.not_to_be_greater_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained)'); - self.not_to( ut_be_greater_than (a_expected) ); - end; - member procedure not_to_be_less_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.not_to_be_less_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained)'); - self.not_to( ut_be_less_or_equal (a_expected) ); - end; - member procedure not_to_be_less_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_dsinterval.not_to_be_less_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained)'); - self.not_to( ut_be_less_than (a_expected) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_dsinterval.tps b/source/expectations/ut_expectation_dsinterval.tps deleted file mode 100644 index d613dbdfb..000000000 --- a/source/expectations/ut_expectation_dsinterval.tps +++ /dev/null @@ -1,32 +0,0 @@ -create or replace type ut_expectation_dsinterval under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained, a_nulls_are_equal boolean := null), - member procedure to_be_between(self in ut_expectation_dsinterval, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained), - member procedure to_be_greater_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained), - member procedure to_be_greater_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained), - member procedure to_be_less_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained), - member procedure to_be_less_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained), - - overriding member procedure not_to_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained, a_nulls_are_equal boolean := null), - member procedure not_to_be_between(self in ut_expectation_dsinterval, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained), - member procedure not_to_be_greater_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained), - member procedure not_to_be_greater_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained), - member procedure not_to_be_less_or_equal(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained), - member procedure not_to_be_less_than(self in ut_expectation_dsinterval, a_expected dsinterval_unconstrained) -) -/ diff --git a/source/expectations/ut_expectation_number.tpb b/source/expectations/ut_expectation_number.tpb deleted file mode 100644 index 0300661d7..000000000 --- a/source/expectations/ut_expectation_number.tpb +++ /dev/null @@ -1,91 +0,0 @@ -create or replace type body ut_expectation_number as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_number, a_expected number, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_number.to_equal(self in ut_expectation, a_expected number, a_nulls_are_equal boolean := null)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_between(self in ut_expectation_number, a_lower_bound number, a_upper_bound number) is - begin - ut_utils.debug_log('ut_expectation_number.to_be_between(self in ut_expectation_date, a_lower_bound number, a_upper_bound number)'); - self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure to_be_greater_or_equal(self in ut_expectation_number, a_expected number) is - begin - ut_utils.debug_log('ut_expectation_number.to_be_greater_or_equal(self in ut_expectation_number, a_expected number)'); - self.to_( ut_be_greater_or_equal (a_expected) ); - end; - - member procedure to_be_greater_than(self in ut_expectation_number, a_expected number) is - begin - ut_utils.debug_log('ut_expectation_number.to_be_greater_than(self in ut_expectation_number, a_expected number)'); - self.to_( ut_be_greater_than (a_expected) ); - end; - - member procedure to_be_less_or_equal(self in ut_expectation_number, a_expected number) is - begin - ut_utils.debug_log('ut_expectation_number.to_be_less_or_equal(self in ut_expectation_number, a_expected number)'); - self.to_( ut_be_less_or_equal (a_expected) ); - end; - - member procedure to_be_less_than(self in ut_expectation_number, a_expected number) is - begin - ut_utils.debug_log('ut_expectation_number.to_be_less_than(self in ut_expectation_number, a_expected number'); - self.to_( ut_be_less_than (a_expected) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_number, a_expected number, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_number.not_to_equal(self in ut_expectation, a_expected number, a_nulls_are_equal boolean := null)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_between(self in ut_expectation_number, a_lower_bound number, a_upper_bound number) is - begin - ut_utils.debug_log('ut_expectation_number.not_to_be_between(self in ut_expectation_date, a_lower_bound number, a_upper_bound number)'); - self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure not_to_be_greater_or_equal(self in ut_expectation_number, a_expected number) is - begin - ut_utils.debug_log('ut_expectation_number.not_to_be_greater_or_equal(self in ut_expectation_number, a_expected number)'); - self.not_to( ut_be_greater_or_equal (a_expected) ); - end; - - member procedure not_to_be_greater_than(self in ut_expectation_number, a_expected number) is - begin - ut_utils.debug_log('ut_expectation_number.not_to_be_greater_than(self in ut_expectation_number, a_expected number)'); - self.not_to( ut_be_greater_than (a_expected) ); - end; - - member procedure not_to_be_less_or_equal(self in ut_expectation_number, a_expected number) is - begin - ut_utils.debug_log('ut_expectation_number.not_to_be_less_or_equal(self in ut_expectation_number, a_expected number)'); - self.not_to( ut_be_less_or_equal (a_expected) ); - end; - - member procedure not_to_be_less_than(self in ut_expectation_number, a_expected number) is - begin - ut_utils.debug_log('ut_expectation_number.not_to_be_less_than(self in ut_expectation_number, a_expected number'); - self.not_to( ut_be_less_than (a_expected) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_number.tps b/source/expectations/ut_expectation_number.tps deleted file mode 100644 index 61d9befb1..000000000 --- a/source/expectations/ut_expectation_number.tps +++ /dev/null @@ -1,32 +0,0 @@ -create or replace type ut_expectation_number under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_number, a_expected number, a_nulls_are_equal boolean := null), - member procedure to_be_between(self in ut_expectation_number, a_lower_bound number, a_upper_bound number), - member procedure to_be_greater_or_equal(self in ut_expectation_number, a_expected number), - member procedure to_be_greater_than(self in ut_expectation_number, a_expected number), - member procedure to_be_less_or_equal(self in ut_expectation_number, a_expected number), - member procedure to_be_less_than(self in ut_expectation_number, a_expected number), - - overriding member procedure not_to_equal(self in ut_expectation_number, a_expected number, a_nulls_are_equal boolean := null), - member procedure not_to_be_between(self in ut_expectation_number, a_lower_bound number, a_upper_bound number), - member procedure not_to_be_greater_or_equal(self in ut_expectation_number, a_expected number), - member procedure not_to_be_greater_than(self in ut_expectation_number, a_expected number), - member procedure not_to_be_less_or_equal(self in ut_expectation_number, a_expected number), - member procedure not_to_be_less_than(self in ut_expectation_number, a_expected number) -) -/ diff --git a/source/expectations/ut_expectation_refcursor.tpb b/source/expectations/ut_expectation_refcursor.tpb deleted file mode 100644 index f52208f1c..000000000 --- a/source/expectations/ut_expectation_refcursor.tpb +++ /dev/null @@ -1,42 +0,0 @@ -create or replace type body ut_expectation_refcursor as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_refcursor, a_expected sys_refcursor, a_exclude varchar2 := null, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_refcursor.to_equal(self in ut_expectation_refcursor, a_expected sys_refcursor, a_nulls_are_equal boolean := null)'); - self.to_( ut_equal(a_expected, a_exclude, a_nulls_are_equal) ); - end; - - member procedure to_be_empty(self in ut_expectation_refcursor) is - begin - ut_utils.debug_log('ut_expectation_refcursor.to_be_empty(self in ut_expectation_refcursor)'); - self.to_( ut_be_empty() ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_refcursor, a_expected sys_refcursor, a_exclude varchar2 := null, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_refcursor.not_to_equal(self in ut_expectation_refcursor, a_expected sys_refcursor, a_nulls_are_equal boolean := null)'); - self.not_to( ut_equal(a_expected, a_exclude, a_nulls_are_equal) ); - end; - - member procedure not_to_be_empty(self in ut_expectation_refcursor) is - begin - ut_utils.debug_log('ut_expectation_refcursor.not_to_be_empty(self in ut_expectation_refcursor)'); - self.not_to( ut_be_empty() ); - end; -end; -/ diff --git a/source/expectations/ut_expectation_refcursor.tps b/source/expectations/ut_expectation_refcursor.tps deleted file mode 100644 index c698cc306..000000000 --- a/source/expectations/ut_expectation_refcursor.tps +++ /dev/null @@ -1,24 +0,0 @@ -create or replace type ut_expectation_refcursor under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_refcursor, a_expected sys_refcursor, a_exclude varchar2 := null, a_nulls_are_equal boolean := null), - member procedure to_be_empty(self in ut_expectation_refcursor), - - overriding member procedure not_to_equal(self in ut_expectation_refcursor, a_expected sys_refcursor, a_exclude varchar2 := null, a_nulls_are_equal boolean := null), - member procedure not_to_be_empty(self in ut_expectation_refcursor) -) -/ diff --git a/source/expectations/ut_expectation_timestamp.tpb b/source/expectations/ut_expectation_timestamp.tpb deleted file mode 100644 index 15da53a4f..000000000 --- a/source/expectations/ut_expectation_timestamp.tpb +++ /dev/null @@ -1,91 +0,0 @@ -create or replace type body ut_expectation_timestamp as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_timestamp.to_equal(self in ut_expectation, a_expected timestamp_unconstrained, a_nulls_are_equal boolean := null)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_between(self in ut_expectation_timestamp, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.to_be_between(self in ut_expectation_timestamp, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained)'); - self.to_( ut_be_between(a_lower_bound, a_upper_bound) ); - end; - - member procedure to_be_greater_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.to_be_greater_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained)'); - self.to_( ut_be_greater_or_equal (a_expected) ); - end; - - member procedure to_be_greater_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.to_be_greater_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained)'); - self.to_( ut_be_greater_than (a_expected) ); - end; - - member procedure to_be_less_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.to_be_less_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained)'); - self.to_( ut_be_less_or_equal (a_expected) ); - end; - - member procedure to_be_less_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.to_be_less_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained)'); - self.to_( ut_be_less_than (a_expected) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_timestamp.not_to_equal(self in ut_expectation, a_expected timestamp_unconstrained, a_nulls_are_equal boolean := null)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_between(self in ut_expectation_timestamp, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.not_to_be_between(self in ut_expectation_timestamp, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained)'); - self.not_to( ut_be_between(a_lower_bound, a_upper_bound) ); - end; - - member procedure not_to_be_greater_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.not_to_be_greater_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained)'); - self.not_to( ut_be_greater_or_equal (a_expected) ); - end; - - member procedure not_to_be_greater_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.not_to_be_greater_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained)'); - self.not_to( ut_be_greater_than (a_expected) ); - end; - - member procedure not_to_be_less_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.not_to_be_less_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained)'); - self.not_to( ut_be_less_or_equal (a_expected) ); - end; - - member procedure not_to_be_less_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp.not_to_be_less_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained)'); - self.not_to( ut_be_less_than (a_expected) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_timestamp.tps b/source/expectations/ut_expectation_timestamp.tps deleted file mode 100644 index f2e934ba1..000000000 --- a/source/expectations/ut_expectation_timestamp.tps +++ /dev/null @@ -1,32 +0,0 @@ -create or replace type ut_expectation_timestamp under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained, a_nulls_are_equal boolean := null), - member procedure to_be_between(self in ut_expectation_timestamp, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained), - member procedure to_be_greater_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained), - member procedure to_be_greater_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained), - member procedure to_be_less_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained), - member procedure to_be_less_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained), - - overriding member procedure not_to_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained, a_nulls_are_equal boolean := null), - member procedure not_to_be_between(self in ut_expectation_timestamp, a_lower_bound timestamp_unconstrained, a_upper_bound timestamp_unconstrained), - member procedure not_to_be_greater_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained), - member procedure not_to_be_greater_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained), - member procedure not_to_be_less_or_equal(self in ut_expectation_timestamp, a_expected timestamp_unconstrained), - member procedure not_to_be_less_than(self in ut_expectation_timestamp, a_expected timestamp_unconstrained) -) -/ diff --git a/source/expectations/ut_expectation_timestamp_ltz.tpb b/source/expectations/ut_expectation_timestamp_ltz.tpb deleted file mode 100644 index fe34922f9..000000000 --- a/source/expectations/ut_expectation_timestamp_ltz.tpb +++ /dev/null @@ -1,85 +0,0 @@ -create or replace type body ut_expectation_timestamp_ltz as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.to_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained, a_nulls_are_equal boolean := null)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_between(self in ut_expectation_timestamp_ltz, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.to_be_between(self in ut_expectation_timestamp_ltz, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained)'); - self.to_( ut_be_between(a_lower_bound, a_upper_bound) ); - end; - - member procedure to_be_greater_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.to_be_greater_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained)'); - self.to_( ut_be_greater_or_equal (a_expected) ); - end; - member procedure to_be_greater_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.to_be_greater_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained)'); - self.to_( ut_be_greater_than (a_expected) ); - end; - member procedure to_be_less_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.to_be_less_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained)'); - self.to_( ut_be_less_or_equal (a_expected) ); - end; - member procedure to_be_less_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.to_be_less_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained)'); - self.to_( ut_be_less_than (a_expected) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.not_to_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained, a_nulls_are_equal boolean := null)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_between(self in ut_expectation_timestamp_ltz, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.not_to_be_between(self in ut_expectation_timestamp_ltz, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained)'); - self.not_to( ut_be_between(a_lower_bound, a_upper_bound) ); - end; - - member procedure not_to_be_greater_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.not_to_be_greater_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained)'); - self.not_to( ut_be_greater_or_equal (a_expected) ); - end; - member procedure not_to_be_greater_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.not_to_be_greater_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained)'); - self.not_to( ut_be_greater_than (a_expected) ); - end; - member procedure not_to_be_less_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.not_to_be_less_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained)'); - self.not_to( ut_be_less_or_equal (a_expected) ); - end; - member procedure not_to_be_less_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_ltz.not_to_be_less_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained)'); - self.not_to( ut_be_less_than (a_expected) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_timestamp_ltz.tps b/source/expectations/ut_expectation_timestamp_ltz.tps deleted file mode 100644 index d078347b9..000000000 --- a/source/expectations/ut_expectation_timestamp_ltz.tps +++ /dev/null @@ -1,32 +0,0 @@ -create or replace type ut_expectation_timestamp_ltz under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained, a_nulls_are_equal boolean := null), - member procedure to_be_between(self in ut_expectation_timestamp_ltz, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained), - member procedure to_be_greater_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained), - member procedure to_be_greater_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained), - member procedure to_be_less_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained), - member procedure to_be_less_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained), - - overriding member procedure not_to_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained, a_nulls_are_equal boolean := null), - member procedure not_to_be_between(self in ut_expectation_timestamp_ltz, a_lower_bound timestamp_ltz_unconstrained, a_upper_bound timestamp_ltz_unconstrained), - member procedure not_to_be_greater_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained), - member procedure not_to_be_greater_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained), - member procedure not_to_be_less_or_equal(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained), - member procedure not_to_be_less_than(self in ut_expectation_timestamp_ltz, a_expected timestamp_ltz_unconstrained) -) -/ diff --git a/source/expectations/ut_expectation_timestamp_tz.tpb b/source/expectations/ut_expectation_timestamp_tz.tpb deleted file mode 100644 index 170d3c06e..000000000 --- a/source/expectations/ut_expectation_timestamp_tz.tpb +++ /dev/null @@ -1,85 +0,0 @@ -create or replace type body ut_expectation_timestamp_tz as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.to_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_between(self in ut_expectation_timestamp_tz, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.to_be_between(self in ut_expectation_timestamp_tz, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained)'); - self.to_( ut_be_between(a_lower_bound, a_upper_bound) ); - end; - - member procedure to_be_greater_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.to_be_greater_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained)'); - self.to_( ut_be_greater_or_equal (a_expected) ); - end; - member procedure to_be_greater_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.to_be_greater_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained)'); - self.to_( ut_be_greater_than (a_expected) ); - end; - member procedure to_be_less_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.to_be_less_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained)'); - self.to_( ut_be_less_or_equal (a_expected) ); - end; - member procedure to_be_less_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.to_be_less_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained)'); - self.to_( ut_be_less_than (a_expected) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.not_to_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_between(self in ut_expectation_timestamp_tz, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.not_to_be_between(self in ut_expectation_timestamp_tz, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained)'); - self.not_to( ut_be_between(a_lower_bound, a_upper_bound) ); - end; - - member procedure not_to_be_greater_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.not_to_be_greater_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained)'); - self.not_to( ut_be_greater_or_equal (a_expected) ); - end; - member procedure not_to_be_greater_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.not_to_be_greater_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained)'); - self.not_to( ut_be_greater_than (a_expected) ); - end; - member procedure not_to_be_less_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.not_to_be_less_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained)'); - self.not_to( ut_be_less_or_equal (a_expected) ); - end; - member procedure not_to_be_less_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_timestamp_tz.not_to_be_less_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained)'); - self.not_to( ut_be_less_than (a_expected) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_timestamp_tz.tps b/source/expectations/ut_expectation_timestamp_tz.tps deleted file mode 100644 index f3bb59398..000000000 --- a/source/expectations/ut_expectation_timestamp_tz.tps +++ /dev/null @@ -1,32 +0,0 @@ -create or replace type ut_expectation_timestamp_tz under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null), - member procedure to_be_between(self in ut_expectation_timestamp_tz, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained), - member procedure to_be_greater_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained), - member procedure to_be_greater_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained), - member procedure to_be_less_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained), - member procedure to_be_less_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained), - - overriding member procedure not_to_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null), - member procedure not_to_be_between(self in ut_expectation_timestamp_tz, a_lower_bound timestamp_tz_unconstrained, a_upper_bound timestamp_tz_unconstrained), - member procedure not_to_be_greater_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained), - member procedure not_to_be_greater_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained), - member procedure not_to_be_less_or_equal(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained), - member procedure not_to_be_less_than(self in ut_expectation_timestamp_tz, a_expected timestamp_tz_unconstrained) -) -/ diff --git a/source/expectations/ut_expectation_varchar2.tpb b/source/expectations/ut_expectation_varchar2.tpb deleted file mode 100644 index aa367f891..000000000 --- a/source/expectations/ut_expectation_varchar2.tpb +++ /dev/null @@ -1,67 +0,0 @@ -create or replace type body ut_expectation_varchar2 as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_varchar2, a_expected varchar2, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_varchar2.to_equal(self in ut_expectation, a_expected varchar2)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_between(self in ut_expectation_varchar2, a_lower_bound varchar2, a_upper_bound varchar2) is - begin - ut_utils.debug_log('ut_expectation_varchar2.to_be_between(self in ut_expectation_varchar2, a_lower_bound varchar2, a_upper_bound varchar2)'); - self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure to_be_like(self in ut_expectation_varchar2, a_mask in varchar2, a_escape_char in varchar2 := null) is - begin - ut_utils.debug_log('ut_expectation_varchar2.to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 default null)'); - self.to_( ut_be_like(a_mask, a_escape_char) ); - end; - - member procedure to_match(self in ut_expectation_varchar2, a_pattern in varchar2, a_modifiers in varchar2 default null) is - begin - ut_utils.debug_log('ut_expectation_varchar2.to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 default null)'); - self.to_( ut_match(a_pattern, a_modifiers) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_varchar2, a_expected varchar2, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_varchar2.not_to_equal(self in ut_expectation, a_expected varchar2)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_between(self in ut_expectation_varchar2, a_lower_bound varchar2, a_upper_bound varchar2) is - begin - ut_utils.debug_log('ut_expectation_varchar2.not_to_be_between(self in ut_expectation_varchar2, a_lower_bound varchar2, a_upper_bound varchar2)'); - self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure not_to_be_like(self in ut_expectation_varchar2, a_mask in varchar2, a_escape_char in varchar2 := null) is - begin - ut_utils.debug_log('ut_expectation_varchar2.not_to_be_like(self in ut_expectation, a_mask in varchar2, a_escape_char in varchar2 default null)'); - self.not_to( ut_be_like(a_mask, a_escape_char) ); - end; - - member procedure not_to_match(self in ut_expectation_varchar2, a_pattern in varchar2, a_modifiers in varchar2 default null) is - begin - ut_utils.debug_log('ut_expectation_varchar2.not_to_match(self in ut_expectation, a_pattern in varchar2, a_modifiers in varchar2 default null)'); - self.not_to( ut_match(a_pattern, a_modifiers) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_varchar2.tps b/source/expectations/ut_expectation_varchar2.tps deleted file mode 100644 index 59b84ff16..000000000 --- a/source/expectations/ut_expectation_varchar2.tps +++ /dev/null @@ -1,28 +0,0 @@ -create or replace type ut_expectation_varchar2 under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_varchar2, a_expected varchar2, a_nulls_are_equal boolean := null), - member procedure to_be_between(self in ut_expectation_varchar2, a_lower_bound varchar2, a_upper_bound varchar2), - member procedure to_be_like(self in ut_expectation_varchar2, a_mask in varchar2, a_escape_char in varchar2 := null), - member procedure to_match(self in ut_expectation_varchar2, a_pattern in varchar2, a_modifiers in varchar2 := null), - - overriding member procedure not_to_equal(self in ut_expectation_varchar2, a_expected varchar2, a_nulls_are_equal boolean := null), - member procedure not_to_be_between(self in ut_expectation_varchar2, a_lower_bound varchar2, a_upper_bound varchar2), - member procedure not_to_be_like(self in ut_expectation_varchar2, a_mask in varchar2, a_escape_char in varchar2 := null), - member procedure not_to_match(self in ut_expectation_varchar2, a_pattern in varchar2, a_modifiers in varchar2 := null) -) -/ diff --git a/source/expectations/ut_expectation_yminterval.tpb b/source/expectations/ut_expectation_yminterval.tpb deleted file mode 100644 index b305322d2..000000000 --- a/source/expectations/ut_expectation_yminterval.tpb +++ /dev/null @@ -1,85 +0,0 @@ -create or replace type body ut_expectation_yminterval as - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_yminterval.to_equal(self in ut_expectation, a_expected yminterval_unconstrained)'); - self.to_( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure to_be_between(self in ut_expectation_yminterval, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.to_be_between(self in ut_expectation_yminterval, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained)'); - self.to_( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure to_be_greater_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.to_be_greater_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained)'); - self.to_( ut_be_greater_or_equal (a_expected) ); - end; - member procedure to_be_greater_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.to_be_greater_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained)'); - self.to_( ut_be_greater_than (a_expected) ); - end; - member procedure to_be_less_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.to_be_less_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained)'); - self.to_( ut_be_less_or_equal (a_expected) ); - end; - member procedure to_be_less_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.to_be_less_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained)'); - self.to_( ut_be_less_than (a_expected) ); - end; - - overriding member procedure not_to_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained, a_nulls_are_equal boolean := null) is - begin - ut_utils.debug_log('ut_expectation_yminterval.not_to_equal(self in ut_expectation, a_expected yminterval_unconstrained)'); - self.not_to( ut_equal(a_expected, a_nulls_are_equal) ); - end; - - member procedure not_to_be_between(self in ut_expectation_yminterval, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.not_to_be_between(self in ut_expectation_yminterval, a_lower_bound dsinterval_unconstrained, a_upper_bound dsinterval_unconstrained)'); - self.not_to( ut_be_between(a_lower_bound,a_upper_bound) ); - end; - - member procedure not_to_be_greater_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.not_to_be_greater_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained)'); - self.not_to( ut_be_greater_or_equal (a_expected) ); - end; - member procedure not_to_be_greater_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.not_to_be_greater_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained)'); - self.not_to( ut_be_greater_than (a_expected) ); - end; - member procedure not_to_be_less_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.not_to_be_less_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained)'); - self.not_to( ut_be_less_or_equal (a_expected) ); - end; - member procedure not_to_be_less_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained) is - begin - ut_utils.debug_log('ut_expectation_yminterval.not_to_be_less_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained)'); - self.not_to( ut_be_less_than (a_expected) ); - end; - -end; -/ diff --git a/source/expectations/ut_expectation_yminterval.tps b/source/expectations/ut_expectation_yminterval.tps deleted file mode 100644 index e8db00310..000000000 --- a/source/expectations/ut_expectation_yminterval.tps +++ /dev/null @@ -1,32 +0,0 @@ -create or replace type ut_expectation_yminterval under ut_expectation( - /* - utPLSQL - Version X.X.X.X - Copyright 2016 - 2017 utPLSQL Project - - Licensed under the Apache License, Version 2.0 (the "License"): - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - overriding member procedure to_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained, a_nulls_are_equal boolean := null), - member procedure to_be_between(self in ut_expectation_yminterval, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained), - member procedure to_be_greater_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained), - member procedure to_be_greater_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained), - member procedure to_be_less_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained), - member procedure to_be_less_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained), - - overriding member procedure not_to_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained, a_nulls_are_equal boolean := null), - member procedure not_to_be_between(self in ut_expectation_yminterval, a_lower_bound yminterval_unconstrained, a_upper_bound yminterval_unconstrained), - member procedure not_to_be_greater_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained), - member procedure not_to_be_greater_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained), - member procedure not_to_be_less_or_equal(self in ut_expectation_yminterval, a_expected yminterval_unconstrained), - member procedure not_to_be_less_than(self in ut_expectation_yminterval, a_expected yminterval_unconstrained) -) -/ diff --git a/source/install.sql b/source/install.sql index bd19576d3..62401a4cc 100644 --- a/source/install.sql +++ b/source/install.sql @@ -154,19 +154,6 @@ prompt Installing PLSQL profiler objects into &&ut3_owner schema @@install_component.sql 'expectations/matchers/ut_be_empty.tps' @@install_component.sql 'expectations/matchers/ut_match.tps' @@install_component.sql 'expectations/ut_expectation.tps' -@@install_component.sql 'expectations/ut_expectation_anydata.tps' -@@install_component.sql 'expectations/ut_expectation_blob.tps' -@@install_component.sql 'expectations/ut_expectation_boolean.tps' -@@install_component.sql 'expectations/ut_expectation_clob.tps' -@@install_component.sql 'expectations/ut_expectation_date.tps' -@@install_component.sql 'expectations/ut_expectation_dsinterval.tps' -@@install_component.sql 'expectations/ut_expectation_number.tps' -@@install_component.sql 'expectations/ut_expectation_refcursor.tps' -@@install_component.sql 'expectations/ut_expectation_timestamp.tps' -@@install_component.sql 'expectations/ut_expectation_timestamp_ltz.tps' -@@install_component.sql 'expectations/ut_expectation_timestamp_tz.tps' -@@install_component.sql 'expectations/ut_expectation_varchar2.tps' -@@install_component.sql 'expectations/ut_expectation_yminterval.tps' @@install_component.sql 'expectations/data_values/ut_data_value.tpb' @@install_component.sql 'expectations/data_values/ut_data_value_anydata.tpb' @@install_component.sql 'expectations/data_values/ut_data_value_object.tpb' @@ -199,19 +186,6 @@ prompt Installing PLSQL profiler objects into &&ut3_owner schema @@install_component.sql 'expectations/matchers/ut_be_empty.tpb' @@install_component.sql 'expectations/matchers/ut_match.tpb' @@install_component.sql 'expectations/ut_expectation.tpb' -@@install_component.sql 'expectations/ut_expectation_anydata.tpb' -@@install_component.sql 'expectations/ut_expectation_blob.tpb' -@@install_component.sql 'expectations/ut_expectation_boolean.tpb' -@@install_component.sql 'expectations/ut_expectation_clob.tpb' -@@install_component.sql 'expectations/ut_expectation_date.tpb' -@@install_component.sql 'expectations/ut_expectation_dsinterval.tpb' -@@install_component.sql 'expectations/ut_expectation_number.tpb' -@@install_component.sql 'expectations/ut_expectation_refcursor.tpb' -@@install_component.sql 'expectations/ut_expectation_timestamp.tpb' -@@install_component.sql 'expectations/ut_expectation_timestamp_ltz.tpb' -@@install_component.sql 'expectations/ut_expectation_timestamp_tz.tpb' -@@install_component.sql 'expectations/ut_expectation_varchar2.tpb' -@@install_component.sql 'expectations/ut_expectation_yminterval.tpb' --core reporter @@install_component.sql 'reporters/ut_documentation_reporter.tps' diff --git a/source/uninstall.sql b/source/uninstall.sql index a786fb330..ae6ac732d 100644 --- a/source/uninstall.sql +++ b/source/uninstall.sql @@ -80,32 +80,6 @@ drop package ut; drop table ut_dbms_output_cache; -drop type ut_expectation_yminterval force; - -drop type ut_expectation_varchar2 force; - -drop type ut_expectation_timestamp_tz force; - -drop type ut_expectation_timestamp_ltz force; - -drop type ut_expectation_timestamp force; - -drop type ut_expectation_refcursor force; - -drop type ut_expectation_number force; - -drop type ut_expectation_dsinterval force; - -drop type ut_expectation_date force; - -drop type ut_expectation_clob force; - -drop type ut_expectation_boolean force; - -drop type ut_expectation_blob force; - -drop type ut_expectation_anydata force; - drop type ut_expectation force; drop package ut_expectation_processor;