File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
sqldev/src/test/java/org/utplsql/sqldev/test/runner Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ class UtplsqlRunnerTest extends AbstractJdbcTest {
31
31
CREATE OR REPLACE PACKAGE junit_utplsql_test1_pkg is
32
32
--%suite(JUnit testing)
33
33
--%suitepath(a)
34
+ /* tags annotation without parameter will raise a warning */
35
+ --%tags
34
36
35
37
--%context(test context)
36
38
@@ -51,6 +53,9 @@ class UtplsqlRunnerTest extends AbstractJdbcTest {
51
53
PROCEDURE test_5_warnings;
52
54
53
55
--%endcontext
56
+
57
+ --%afterall
58
+ procedure print_and_raise;
54
59
END;
55
60
' ' ' )
56
61
jdbcTemplate. execute(' ' '
@@ -87,6 +92,14 @@ class UtplsqlRunnerTest extends AbstractJdbcTest {
87
92
COMMIT; -- will raise a warning
88
93
ut.expect(1).to_equal(1);
89
94
END;
95
+
96
+ PROCEDURE print_and_raise IS
97
+ BEGIN
98
+ dbms_output.put_line(' Now , a no_data_found exception is raised' );
99
+ dbms_output.put_line(' dbms_output and error stack is reported for this suite. ' );
100
+ dbms_output.put_line(' A runtime error in afterall is counted as a warning. ' );
101
+ RAISE no_data_found;
102
+ END;
90
103
END;
91
104
' ' ' )
92
105
}
You can’t perform that action at this time.
0 commit comments