Assertion

Another variation of debugging is the assertion technique. This is done by inserting assertion statements in the application's code. An assertion statement is a logical check in the source code that determines the condition of the application at certain checkpoints in the application. The checking done by an assertion statement is normally a check of certain important conditions at different stages in the application that evaluates to a Boolean value. The assertion statement uses this Boolean value to determine a success or failure. When encountering a failure, the assertion statement can throw an exception that may even result in the application terminating its execution flow.

Note

Assertion statements can be viewed as active debugging ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.