How To Use the “expected” Parameter Supported by the “@Test” Annotation?
The “expected” parameter supported by the “@Test” annotation allows you to test expected exception raised inside the test method. The “expected” parameter declares that a test method should throw the specified exception. If it doesn’t throw an exception or if it throws a different exception than the one declared, the test fails. Otherwise, the test passes.
Related Questions
- Ive been using the IsNull function but it seems to be ignoring the second parameter (just returning True or False instead). Is this function supported and/or is there an alternative?
- SKIPRULES command line parameter does not work though I have specified "/SKIPRULES=xxxx". Is it supported?
- What Are the Parameter Modes Supported by PL/SQL?