mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
add empty unit test case for utPLSQL
This commit is contained in:
parent
66495cb872
commit
15576d7715
27
plsql/ut_update_quality.pkb
Normal file
27
plsql/ut_update_quality.pkb
Normal 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;
|
||||
/
|
||||
8
plsql/ut_update_quality.pks
Normal file
8
plsql/ut_update_quality.pks
Normal 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;
|
||||
/
|
||||
5
plsql/ut_update_quality.sql
Normal file
5
plsql/ut_update_quality.sql
Normal 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 ;
|
||||
Loading…
Reference in New Issue
Block a user