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

Skip to content

Commit b38a08a

Browse files
author
Pavel Kaplya
committed
Made default empty implementation for ut_suite_reporter methods so it will be easier to add new in the future without invalidating all it's subtypes that doesn't have required implementations of the new methods
1 parent 9c58a50 commit b38a08a

3 files changed

Lines changed: 36 additions & 5 deletions

File tree

source/install.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
@@ut_utils.pkb
1919
@@types/ut_assert_result.tpb
20+
@@types/ut_suite_reporter.tpb
2021
@@types/ut_object.tpb
2122
@@types/ut_composite_object.tpb
2223
@@types/ut_test.tpb

source/types/ut_suite_reporter.tpb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
create or replace type body ut_suite_reporter is
2+
3+
-- Member procedures and functions
4+
member procedure begin_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object) is
5+
begin
6+
null;
7+
end begin_suite;
8+
9+
member procedure begin_test(self in out nocopy ut_suite_reporter, a_test in ut_object) is
10+
begin
11+
null;
12+
end begin_test;
13+
14+
member procedure on_assert(self in out nocopy ut_suite_reporter, a_assert in ut_object) is
15+
begin
16+
null;
17+
end on_assert;
18+
19+
member procedure end_test(self in out nocopy ut_suite_reporter, a_test in ut_object) is
20+
begin
21+
null;
22+
end end_test;
23+
24+
member procedure end_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object) is
25+
begin
26+
null;
27+
end end_suite;
28+
29+
end;
30+
/

source/types/ut_suite_reporter.tps

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ create or replace type ut_suite_reporter force as object
22
(
33
name varchar2(250 char),
44

5-
not instantiable member procedure begin_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object),
6-
not instantiable member procedure begin_test(self in out nocopy ut_suite_reporter, a_test in ut_object),
7-
not instantiable member procedure on_assert(self in out nocopy ut_suite_reporter, a_assert in ut_object),
8-
not instantiable member procedure end_test(self in out nocopy ut_suite_reporter, a_test in ut_object),
9-
not instantiable member procedure end_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object)
5+
member procedure begin_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object),
6+
member procedure begin_test(self in out nocopy ut_suite_reporter, a_test in ut_object),
7+
member procedure on_assert(self in out nocopy ut_suite_reporter, a_assert in ut_object),
8+
member procedure end_test(self in out nocopy ut_suite_reporter, a_test in ut_object),
9+
member procedure end_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object)
1010

1111
)
1212
not instantiable not final

0 commit comments

Comments
 (0)