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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
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
  • Loading branch information
Pavel Kaplya committed Aug 17, 2016
commit b38a08a3f9e236f1d6d59c7a6d5b7af3aeeac716
1 change: 1 addition & 0 deletions source/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

@@ut_utils.pkb
@@types/ut_assert_result.tpb
@@types/ut_suite_reporter.tpb
@@types/ut_object.tpb
@@types/ut_composite_object.tpb
@@types/ut_test.tpb
Expand Down
30 changes: 30 additions & 0 deletions source/types/ut_suite_reporter.tpb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
create or replace type body ut_suite_reporter is

-- Member procedures and functions
member procedure begin_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object) is
begin
null;
end begin_suite;

member procedure begin_test(self in out nocopy ut_suite_reporter, a_test in ut_object) is
begin
null;
end begin_test;

member procedure on_assert(self in out nocopy ut_suite_reporter, a_assert in ut_object) is
begin
null;
end on_assert;

member procedure end_test(self in out nocopy ut_suite_reporter, a_test in ut_object) is
begin
null;
end end_test;

member procedure end_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object) is
begin
null;
end end_suite;

end;
/
10 changes: 5 additions & 5 deletions source/types/ut_suite_reporter.tps
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ create or replace type ut_suite_reporter force as object
(
name varchar2(250 char),

not instantiable member procedure begin_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object),
not instantiable member procedure begin_test(self in out nocopy ut_suite_reporter, a_test in ut_object),
not instantiable member procedure on_assert(self in out nocopy ut_suite_reporter, a_assert in ut_object),
not instantiable member procedure end_test(self in out nocopy ut_suite_reporter, a_test in ut_object),
not instantiable member procedure end_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object)
member procedure begin_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object),
member procedure begin_test(self in out nocopy ut_suite_reporter, a_test in ut_object),
member procedure on_assert(self in out nocopy ut_suite_reporter, a_assert in ut_object),
member procedure end_test(self in out nocopy ut_suite_reporter, a_test in ut_object),
member procedure end_suite(self in out nocopy ut_suite_reporter, a_suite in ut_object)

)
not instantiable not final
Expand Down