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 {
3131 CREATE OR REPLACE PACKAGE junit_utplsql_test1_pkg is
3232 --%suite(JUnit testing)
3333 --%suitepath(a)
34+ /* tags annotation without parameter will raise a warning */
35+ --%tags
3436
3537 --%context(test context)
3638
@@ -51,6 +53,9 @@ class UtplsqlRunnerTest extends AbstractJdbcTest {
5153 PROCEDURE test_5_warnings;
5254
5355 --%endcontext
56+
57+ --%afterall
58+ procedure print_and_raise;
5459 END;
5560 ' ' ' )
5661 jdbcTemplate. execute(' ' '
@@ -87,6 +92,14 @@ class UtplsqlRunnerTest extends AbstractJdbcTest {
8792 COMMIT; -- will raise a warning
8893 ut.expect(1).to_equal(1);
8994 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;
90103 END;
91104 ' ' ' )
92105 }
You can’t perform that action at this time.
0 commit comments