Previous | Next
Topic: Example for utAssert.throws
Conf: 539, Msg: 43260
From: Chris Rimmer (chris@nominet.org.uk)
Date: 8/17/01 01:11 AM

Example for utAssert.throws Chris Rimmer chrisrimmer chris@nominet.org.uk Well you certainly don't need 'Exec', because that is a SQL*Plus command, not PL/SQL!

The error you are getting means that PL/SQL cannot parse the code you have passed to it. Are you using SQL*Plus? If so, try typing

  EXEC PMU.MAIN('x', 'aws_mast', 'bdr', 'd:\temp');
logged in as the same user as when you are trying to run the tests. (This time you *DO* need the 'EXEC'!)

Alternatively, if you need reassurance that utAssert.throws is working, substitute the following call for your own:
  utassert.throws('malfunction',
'RAISE_APPLICATION_ERROR(''Bang'', -2);',
-1);
Good Luck
Chris