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

Skip to content

Commit 58969df

Browse files
authored
Merge branch 'develop' into feature/createarchive
2 parents 7ab99f1 + 296f45e commit 58969df

18 files changed

Lines changed: 28 additions & 17 deletions

source/core/types/ut_assert_result.tpb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ create or replace type body ut_assert_result is
5959

6060
if self.result != ut_utils.tr_success then
6161
if self.actual_value_string is not null or self.actual_type is not null then
62-
l_actual_val_msg := ' expected (actual value): ';
62+
l_actual_val_msg := ' expected this: ';
6363
l_actual_val := self.actual_value_string || '(' || self.actual_type || ')';
6464
end if;
6565

66-
l_expected_msg := ' '||self.matcher_name || self.additional_info;
66+
l_expected_msg := ' ' || self.matcher_name || self.additional_info;
6767
if self.expected_value_string is not null or self.expected_type is not null then
68-
l_expected_msg := l_expected_msg || ' (expected value): ';
68+
l_expected_msg := l_expected_msg || ': ';
6969
l_expected_val := self.expected_value_string||'('||self.expected_type||')';
7070
if length(l_expected_msg) > length(l_actual_val_msg) then
7171
l_actual_val_msg := rpad(l_actual_val_msg , length(l_expected_msg));
File renamed without changes.
File renamed without changes.

source/core/ut_suite_manager.pkb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ create or replace package body ut_suite_manager is
411411
for i in 1 .. l_paths.count loop
412412
l_path := l_paths(i);
413413
l_schema := regexp_substr(l_path, '^(\w+)(\.|:|$)', 1, 1, null, 1);
414+
415+
l_schema := sys.dbms_assert.schema_name(upper(l_schema));
414416

415417
l_schema_suites := get_schema_suites(upper(l_schema));
416418

@@ -434,6 +436,11 @@ create or replace package body ut_suite_manager is
434436
l_procedure_name := regexp_substr(l_path, '^\w+\.(\w+)(\.(\w+))?$', subexpression => 3);
435437

436438
l_temp_suite := config_package(l_schema, l_package_name);
439+
440+
if l_temp_suite is null then
441+
raise_application_error(ut_utils.gc_suite_package_not_found,'Suite package '||l_schema||'.'||l_package_name|| ' not found');
442+
end if;
443+
437444
l_path := rtrim(l_schema || ':' || l_temp_suite.path || '.' || l_procedure_name, '.');
438445
end;
439446
end if;

source/core/ut_utils.pks

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ create or replace package ut_utils authid definer is
4949
gc_invalid_path_format constant pls_integer := -20202;
5050
pragma exception_init(ex_invalid_path_format, -20202);
5151

52+
ex_suite_package_not_found exception;
53+
gc_suite_package_not_found constant pls_integer := -20204;
54+
pragma exception_init(ex_suite_package_not_found, -20204);
55+
5256
-- Reporting event time not supported
5357
ex_invalid_rep_event_time exception;
5458
gc_invalid_rep_event_time constant pls_integer := -20210;

source/expectations/matchers/ut_be_between.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_between is
22

33
member procedure init(self in out nocopy ut_be_between, a_lower_bound ut_data_value, a_upper_bound ut_data_value) is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be between';
66
self.lower_bound := a_lower_bound;
77
self.upper_bound := a_upper_bound;
88
self.additional_info := 'between ' || a_lower_bound.to_string || ' and ' || a_upper_bound.to_string;

source/expectations/matchers/ut_be_false.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_false as
22

33
constructor function ut_be_false(self in out nocopy ut_be_false) return self as result is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be false';
66
return;
77
end;
88

source/expectations/matchers/ut_be_greater_or_equal.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_greater_or_equal AS
22

33
member procedure init(self in out nocopy ut_be_greater_or_equal, a_expected ut_data_value) is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be greater or equal';
66
self.expected := a_expected;
77
end;
88

source/expectations/matchers/ut_be_greater_than.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_greater_than AS
22

33
member procedure init(self in out nocopy ut_be_greater_than, a_expected ut_data_value) is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be greater than';
66
self.expected := a_expected;
77
end;
88

source/expectations/matchers/ut_be_less_or_equal.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_less_or_equal AS
22

33
member procedure init(self in out nocopy ut_be_less_or_equal, a_expected ut_data_value) is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be less or equal';
66
self.expected := a_expected;
77
end;
88

0 commit comments

Comments
 (0)