Bugs item #1112743, was opened at 2005-01-30 21:32
Message generated for change (Comment added) made by henryju
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1112743&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Core API
Group: Release 1.3
>Status: Closed
>Resolution: Later
Priority: 5
Submitted By: Garrett Smith (garrett1020)
Assigned to: Nicholas Neuberger (nneuberger)
Summary: Exceptions are getting eaten by use of RuntimeException

Initial Comment:
There are some places where RuntimeExceptions are used
to wrap original exceptions, presumably to avoid
dealing with exceptions. But exceptions are supposed to
be testable!

E.g. AuthorizationRequiredException is pretty useful
stuff and shouldn't be hidden in the message of
RuntimeException.

I suggest providing the original 'cause' to
RuntimeException whenever it's used:

  try {
      <do something>
  } catch (Exception e) {
      String msg = ExceptionUtility.stackTraceToString(e);
      throw new RuntimeException(msg, e);
  }

So then we can at least assert something like:

  assertTrue(e.getCause() instanceof
AuthorizationRequiredException);

----------------------------------------------------------------------

>Comment By: Julien HENRY (henryju)
Date: 2006-06-22 11:58

Message:
Logged In: YES 
user_id=1235926

Done.

Refactoring of Exception mechanism in JWebUnit is required,
but we will keep as this until 2.0.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1112743&group_id=61302

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to