add empty unit test case for utPLSQL

This commit is contained in:
Peter Kofler 2014-04-13 15:28:36 +02:00
parent 66495cb872
commit 15576d7715
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,27 @@
CREATE OR REPLACE PACKAGE BODY ut_update_quality
IS
PROCEDURE ut_setup IS
BEGIN
DELETE FROM item;
END;
PROCEDURE ut_teardown IS
BEGIN
NULL;
END;
PROCEDURE ut_foo
IS
l_name item.name%TYPE;
BEGIN
new_item('foo', 0, 0);
update_quality();
SELECT name INTO l_name FROM item;
utAssert.eq('name did change', l_name, 'fixme');
END ut_foo;
END ut_update_quality;
/

View File

@ -0,0 +1,8 @@
CREATE OR REPLACE PACKAGE ut_update_quality
IS
PROCEDURE ut_setup;
PROCEDURE ut_teardown;
PROCEDURE ut_foo;
END ut_update_quality;
/

View File

@ -0,0 +1,5 @@
-- unit test using utPLSQL 2.2.1, see http://utplsql.sourceforge.net/ ;
-- test package must be named like the procedure we want to test ;
EXEC utplsql.test ('update_quality', recompile_in => FALSE);
-- check DBMS_OUTPUT for output ;