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

Skip to content

Commit 8697cea

Browse files
committed
Added missing synonyms for new matchers contain / include
Fixed public synonyms - they are now pointing to private ut3 synonyms for matchers.
1 parent 69da762 commit 8697cea

7 files changed

Lines changed: 29 additions & 15 deletions

File tree

source/api/contain.syn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
create synonym contain for ut_include;

source/api/include.syn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
create synonym include for ut_include;

source/create_synonyms_and_grants_for_public.sql

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,20 +112,24 @@ prompt Creating synonyms for UTPLSQL objects in &&ut3_owner schema to PUBLIC
112112

113113
create public synonym ut_expectation for &&ut3_owner..ut_expectation;
114114
create public synonym ut_expectation_compound for &&ut3_owner..ut_expectation_compound;
115-
create public synonym be_between for &&ut3_owner..ut_be_between;
116-
create public synonym be_empty for &&ut3_owner..ut_be_empty;
117-
create public synonym be_false for &&ut3_owner..ut_be_false;
118-
create public synonym be_greater_or_equal for &&ut3_owner..ut_be_greater_or_equal;
119-
create public synonym be_greater_than for &&ut3_owner..ut_be_greater_than;
120-
create public synonym be_less_or_equal for &&ut3_owner..ut_be_less_or_equal;
121-
create public synonym be_less_than for &&ut3_owner..ut_be_less_than;
122-
create public synonym be_like for &&ut3_owner..ut_be_like;
123-
create public synonym be_not_null for &&ut3_owner..ut_be_not_null;
124-
create public synonym be_null for &&ut3_owner..ut_be_null;
125-
create public synonym be_true for &&ut3_owner..ut_be_true;
126-
create public synonym equal for &&ut3_owner..ut_equal;
115+
116+
create public synonym be_between for &&ut3_owner..be_between;
117+
create public synonym be_empty for &&ut3_owner..be_empty;
118+
create public synonym be_false for &&ut3_owner..be_false;
119+
create public synonym be_greater_or_equal for &&ut3_owner..be_greater_or_equal;
120+
create public synonym be_greater_than for &&ut3_owner..be_greater_than;
121+
create public synonym be_less_or_equal for &&ut3_owner..be_less_or_equal;
122+
create public synonym be_less_than for &&ut3_owner..be_less_than;
123+
create public synonym be_like for &&ut3_owner..be_like;
124+
create public synonym be_not_null for &&ut3_owner..be_not_null;
125+
create public synonym be_null for &&ut3_owner..be_null;
126+
create public synonym be_true for &&ut3_owner..be_true;
127+
create public synonym contain for &&ut3_owner..include;
128+
create public synonym equal for &&ut3_owner..equal;
127129
create public synonym have_count for &&ut3_owner..have_count;
128-
create public synonym match for &&ut3_owner..ut_match;
130+
create public synonym include for &&ut3_owner..include;
131+
create public synonym match for &&ut3_owner..match;
132+
129133
create public synonym ut for &&ut3_owner..ut;
130134
create public synonym ut_runner for &&ut3_owner..ut_runner;
131135
create public synonym ut_teamcity_reporter for &&ut3_owner..ut_teamcity_reporter;

source/create_user_synonyms.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ prompt Creating synonyms for UTPLSQL objects in &&ut3_owner schema to user &&ut3
5555

5656
create or replace synonym &ut3_user..ut_expectation for &&ut3_owner..ut_expectation;
5757
create or replace synonym &ut3_user..ut_expectation_compound for &&ut3_owner..ut_expectation_compound;
58+
5859
create or replace synonym &ut3_user..be_between for &&ut3_owner..be_between;
5960
create or replace synonym &ut3_user..be_empty for &&ut3_owner..be_empty;
6061
create or replace synonym &ut3_user..be_false for &&ut3_owner..be_false;
@@ -69,6 +70,7 @@ create or replace synonym &ut3_user..be_true for &&ut3_owner..be_true;
6970
create or replace synonym &ut3_user..equal for &&ut3_owner..equal;
7071
create or replace synonym &ut3_user..have_count for &&ut3_owner..have_count;
7172
create or replace synonym &ut3_user..match for &&ut3_owner..match;
73+
7274
create or replace synonym &ut3_user..ut for &&ut3_owner..ut;
7375
create or replace synonym &ut3_user..ut_runner for &&ut3_owner..ut_runner;
7476
create or replace synonym &ut3_user..ut_teamcity_reporter for &&ut3_owner..ut_teamcity_reporter;

source/install.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ prompt Installing DBMSPLSQL Tables objects into &&ut3_owner schema
312312
@@install_component.sql 'api/equal.syn'
313313
@@install_component.sql 'api/have_count.syn'
314314
@@install_component.sql 'api/match.syn'
315+
@@install_component.sql 'api/contain.syn'
316+
@@install_component.sql 'api/include.syn'
315317

316318
set linesize 200
317319
set define on

source/uninstall_objects.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ drop synonym have_count;
55

66
drop synonym match;
77

8+
drop synonym include;
9+
10+
drop synonym contain;
11+
812
drop synonym be_false;
913

1014
drop synonym be_empty;

test/core/expectations/test_expectations_cursor.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ Diff:%
21072107
and rownum < 20;
21082108

21092109
--Act
2110-
ut3.ut.expect(l_actual).to_include(l_expected);
2110+
ut3.ut.expect(l_actual).to_( ut3.include(l_expected) );
21112111
--Assert
21122112
ut.expect(expectations.failed_expectations_data()).to_be_empty();
21132113
end;
@@ -2151,7 +2151,7 @@ Diff:%
21512151
and rownum < 20;
21522152

21532153
--Act
2154-
ut3.ut.expect(l_actual).to_contain(l_expected);
2154+
ut3.ut.expect(l_actual).to_( ut3.contain(l_expected) );
21552155
--Assert
21562156
ut.expect(expectations.failed_expectations_data()).to_be_empty();
21572157
end;

0 commit comments

Comments
 (0)