Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ceca779

Browse filesBrowse files
produce errors and warnings on suite level
1 parent c15714d commit ceca779
Copy full SHA for ceca779

File tree

1 file changed

+13
-0
lines changed
Filter options

1 file changed

+13
-0
lines changed

‎sqldev/src/test/java/org/utplsql/sqldev/test/runner/UtplsqlRunnerTest.xtend

Copy file name to clipboardExpand all lines: sqldev/src/test/java/org/utplsql/sqldev/test/runner/UtplsqlRunnerTest.xtend
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.