December 2010
Intermediate to advanced
451 pages
11h 16m
English
You would like to build a unit test package for one or more of the PL/SQL objects in your database schema.
You want to build a utPLSQL test package to test an object in your database. A test package consists of two separate files, a package header and a package body.
Create a header for the test package and save it in a file with the same name you have given the header and with a
.pkssuffix. A header file contains three procedures:ut_setup,ut_teardown, and the procedure that performs the unit tests of the target object in your database. For example, suppose you want to create a unit test package to test the code for theCALC_QUARTERLY_HOURSfunction of Recipe 17-1. This package header ...
Read now
Unlock full access