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

Skip to content

Commit 2edae6c

Browse files
committed
comment to describe why to_equal methods are defined in the parent class
1 parent e9f0cb1 commit 2edae6c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

source/expectations/ut_expectation.tps

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ create or replace type ut_expectation as object
44
message varchar2(4000 char),
55
final member procedure add_assert_result( self in ut_expectation, a_assert_result boolean, a_assert_name varchar2,
66
a_assert_info varchar2, a_error_message varchar2, a_expected_value_string in varchar2 := null, a_expected_data_type varchar2 := null),
7+
final member procedure to_(self in ut_expectation, a_matcher ut_matcher),
8+
final member procedure not_to(self in ut_expectation, a_matcher ut_matcher),
9+
final member procedure to_be_null(self in ut_expectation),
10+
final member procedure to_be_not_null(self in ut_expectation),
11+
12+
-- this is done to provide strong type comparison. other comporators should be implemented in the type-specific classes
713
member procedure to_equal(self in ut_expectation, a_expected anydata, a_nulls_are_equal boolean := null),
814
member procedure to_equal(self in ut_expectation, a_expected blob, a_nulls_are_equal boolean := null),
915
member procedure to_equal(self in ut_expectation, a_expected boolean, a_nulls_are_equal boolean := null),
@@ -14,11 +20,7 @@ create or replace type ut_expectation as object
1420
member procedure to_equal(self in ut_expectation, a_expected timestamp_unconstrained, a_nulls_are_equal boolean := null),
1521
member procedure to_equal(self in ut_expectation, a_expected timestamp_ltz_unconstrained, a_nulls_are_equal boolean := null),
1622
member procedure to_equal(self in ut_expectation, a_expected timestamp_tz_unconstrained, a_nulls_are_equal boolean := null),
17-
member procedure to_equal(self in ut_expectation, a_expected varchar2, a_nulls_are_equal boolean := null),
18-
final member procedure to_(self in ut_expectation, a_matcher ut_matcher),
19-
final member procedure not_to(self in ut_expectation, a_matcher ut_matcher),
20-
final member procedure to_be_null(self in ut_expectation),
21-
final member procedure to_be_not_null(self in ut_expectation)
23+
member procedure to_equal(self in ut_expectation, a_expected varchar2, a_nulls_are_equal boolean := null)
2224
)
2325
not final not instantiable
2426
/

0 commit comments

Comments
 (0)