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

Skip to content

Commit 333e749

Browse files
committed
Added self_type to ut_suite_item_base.
Refactored ut_output to use the same naming for attribute (self_type)
1 parent 8aa1e4b commit 333e749

8 files changed

Lines changed: 8 additions & 5 deletions

File tree

source/core/types/ut_output.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_output as
22

33
final member function generate_output_id return varchar2 is
44
begin
5-
return output_type||'-'||userenv('sessionid')||'-'||ut_utils.to_string(cast(current_timestamp as timestamp));
5+
return self.self_type||'-'||userenv('sessionid')||'-'||ut_utils.to_string(cast(current_timestamp as timestamp));
66
end;
77

88
end;

source/core/types/ut_output.tps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
create or replace type ut_output as object (
2-
output_type varchar2(128),
2+
self_type varchar2(128),
33
output_id varchar2(128),
44
final member function generate_output_id return varchar2,
55
not instantiable member procedure open(self in out nocopy ut_output),

source/core/types/ut_output_dbms_output.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_output_dbms_output as
22

33
constructor function ut_output_dbms_output(self in out nocopy ut_output_dbms_output) return self as result is
44
begin
5-
self.output_type := $$plsql_unit;
5+
self.self_type := $$plsql_unit;
66
self.output_id := self.generate_output_id();
77
return;
88
end;

source/core/types/ut_output_dbms_pipe.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_output_dbms_pipe as
22

33
constructor function ut_output_dbms_pipe(self in out nocopy ut_output_dbms_pipe) return self as result is
44
begin
5-
self.output_type := $$plsql_unit;
5+
self.self_type := $$plsql_unit;
66
self.output_id := self.generate_output_id;
77
return;
88
end;

source/core/types/ut_run.tpb

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

33
constructor function ut_run( self in out nocopy ut_run, a_items ut_suite_items ) return self as result is
44
begin
5+
self.self_type := $$plsql_unit;
56
self.items := a_items;
67
return;
78
end;

source/core/types/ut_suite.tpb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ create or replace type body ut_suite as
66
a_after_all_proc_name varchar2 := null, a_before_each_proc_name varchar2 := null, a_after_each_proc_name varchar2 := null
77
) return self as result is
88
begin
9+
self.self_type := $$plsql_unit;
910
self.init(a_object_owner, a_object_name, a_name, a_description, a_path, a_rollback_type, a_ignore_flag);
1011
self.before_all := ut_executable(self, a_before_all_proc_name, ut_utils.gc_before_all);
1112
self.before_each := ut_executable(self, a_before_each_proc_name, ut_utils.gc_before_each);

source/core/types/ut_suite_item_base.tps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ create or replace type ut_suite_item_base as object (
44
* Object type is a pre-declaration to be referenced by ut_event_listener_base
55
* The true abstract type is ut_suite_item
66
*/
7-
7+
self_type varchar2(250 byte),
88
/**
99
* owner of the database object (package)
1010
*/

source/core/types/ut_test.tpb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ create or replace type body ut_test as
55
a_path varchar2 := null, a_rollback_type integer := null, a_ignore_flag boolean := false, a_before_test_proc_name varchar2 := null, a_after_test_proc_name varchar2 := null
66
) return self as result is
77
begin
8+
self.self_type := $$plsql_unit;
89
self.init(a_object_owner, a_object_name, a_name, a_description, a_path, a_rollback_type, a_ignore_flag);
910
self.before_test := ut_executable(self, a_before_test_proc_name, ut_utils.gc_before_test);
1011
self.item := ut_executable(self, a_name, ut_utils.gc_test_execute);

0 commit comments

Comments
 (0)