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

Skip to content

Commit a1007e4

Browse files
committed
Updated documentation.
Resolves #717
1 parent 50204ce commit a1007e4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

docs/userguide/annotations.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ We strongly recommend putting package level annotations at the very top of packa
2121
| `--%suitepath(<path>)` | Package | Similar to java package. The annotation allows logical grouping of suites into hierarchies. |
2222
| `--%displayname(<description>)` | Package/procedure | Human-readable and meaningful description of a suite/test. `%displayname(Name of the suite/test)`. The annotation is provided for flexibility and convenience only. It has exactly the same meaning as `<description>` in `test` and `suite` annotations. If description is provided using both `suite`/`test` and `displayname`, then the one defined as last takes precedence. |
2323
| `--%test(<description>)` | Procedure | Denotes that the annotated procedure is a unit test procedure. Optional test description can by provided (see `displayname`). |
24-
| `--%throws(<exception_number>[,<exception_number>[,...]])`| Procedure | Denotes that the annotated procedure must throw one of the exception numbers provided. If no valid numbers were provided as annotation parameters the annotation is ignored. Applicable to test procedures only. |
24+
| `--%throws(<exception|>[,...])`| Procedure | Denotes that the annotated test procedure must throw one of the exceptions provided. Supported forms of exceptions are: numeric literals, numeric contant names, exception constant names, predefined Oracle exception names. |
2525
| `--%beforeall` | Procedure | Denotes that the annotated procedure should be executed once before all elements of the suite. |
2626
| `--%beforeall([[<owner>.]<package>.]<procedure>[,...])` | Package | Denotes that the mentioned procedure(s) should be executed once before all elements of the suite. |
2727
| `--%afterall` | Procedure | Denotes that the annotated procedure should be executed once after all elements of the suite. |
@@ -1081,6 +1081,7 @@ Below test suite defines:
10811081
```sql
10821082
create or replace package test_rooms_management is
10831083

1084+
gc_null_value_exception constant integer := -1400;
10841085
--%suite(Rooms management)
10851086

10861087
--%beforeall
@@ -1104,11 +1105,11 @@ create or replace package test_rooms_management is
11041105
--%description(Add content to a room)
11051106

11061107
--%test(Fails when room name is not valid)
1107-
--%throws(-1403)
1108+
--%throws(no_data_found)
11081109
procedure fails_on_room_name_invalid;
11091110

11101111
--%test(Fails when content name is null)
1111-
--%throws(-1400)
1112+
--%throws(gc_null_value_exception)
11121113
procedure fails_on_content_null;
11131114

11141115
--%test(Adds a content to existing room)
@@ -1170,7 +1171,7 @@ create or replace package body test_rooms_management is
11701171
begin
11711172
--Act
11721173
add_rooms_content('Dining Room',null);
1173-
--Assert by --%throws annotation
1174+
--Assert done by --%throws annotation
11741175
end;
11751176

11761177
procedure add_content_success is

0 commit comments

Comments
 (0)