You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/userguide/annotations.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ We strongly recommend putting package level annotations at the very top of packa
21
21
|`--%suitepath(<path>)`| Package | Similar to java package. The annotation allows logical grouping of suites into hierarchies. |
22
22
|`--%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. |
23
23
|`--%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. |
25
25
|`--%beforeall`| Procedure | Denotes that the annotated procedure should be executed once before all elements of the suite. |
26
26
|`--%beforeall([[<owner>.]<package>.]<procedure>[,...])`| Package | Denotes that the mentioned procedure(s) should be executed once before all elements of the suite. |
27
27
|`--%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:
1081
1081
```sql
1082
1082
create or replace package test_rooms_management is
1083
1083
1084
+
gc_null_value_exception constant integer :=-1400;
1084
1085
--%suite(Rooms management)
1085
1086
1086
1087
--%beforeall
@@ -1104,11 +1105,11 @@ create or replace package test_rooms_management is
1104
1105
--%description(Add content to a room)
1105
1106
1106
1107
--%test(Fails when room name is not valid)
1107
-
--%throws(-1403)
1108
+
--%throws(no_data_found)
1108
1109
procedure fails_on_room_name_invalid;
1109
1110
1110
1111
--%test(Fails when content name is null)
1111
-
--%throws(-1400)
1112
+
--%throws(gc_null_value_exception)
1112
1113
procedure fails_on_content_null;
1113
1114
1114
1115
--%test(Adds a content to existing room)
@@ -1170,7 +1171,7 @@ create or replace package body test_rooms_management is
0 commit comments