Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to catch warning message

James.TranJan 8 2015 — edited Jan 12 2015

In my application, I have one Validation rule that throws a warning message instead of an exception. Now, I am writing a JUnit test case to test this Validation rule. The problem is that I cannot catch the warning message using a try-catch block. To be precise, I tried to catch JboWarning class but it went through.

I'd be very grateful if you could show me how I can catch a warning message in ADF.

I am using JDeveloper 11.1.1.7

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2015
Added on Jan 8 2015
7 comments
2,477 views