Hello! We are writing unit tests around or software with JUnit and JMock. When we run certain tests, Jess will call Java methods. In the unit tests, JMock provides stubs for these methods. With the expectations set, these method calls may raise an exception. Jess catches this exception and prints it.
Thus, JUnit does not see the exception. So when JMock flags a failure, our tests still pass. A similar thing will happen in the deployed system, of course. Is it possible to let Jess re-throw the exception? We tried to find a flag to set on Jess, but could not find any. We know that try/catch in Jess can install a handler, but we do not know how to wrap such try/catch when we call Rete.run() from Java. Other suggestions? Bye, Kero. __ Kero van Gelder Software Engineer Systems Creation MiPlaza Philips Research Europe High Tech Campus 34.6.12 (WY61) 5656 AE Eindhoven Tel: +31-40-27.47905 E-mail: [email protected] http://www.miplaza.com/ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [email protected]' in the BODY of a message to [email protected], NOT to the list (use your own address!) List problems? Notify [email protected]. --------------------------------------------------------------------
