Previous | Next
Topic: Easier testing of exceptions
Conf: 538, Msg: 39003
From: Chris Rimmer (chris@nominet.org.uk)
Date: 10/26/00 09:31 AM
Easier testing of exceptions Chris Rimmer chrisrimmer chris.rimmer@tessella.co.uk
It would be nice to have some routines for easy checking if an exception is thrown when expected. I suggest:
utAssert.throws(command_in VARCHAR2, exception_in VARCHAR2);
utAssert.throws(command_in VARCHAR2, sqlcode_in NUMBER);
Where command_in is the text of the command to run (using dynamic SQL), exception_in is the named exception that should be thrown and sqlcode_in the value of SQLCODE expected.
Chris