Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Why are AssertionFailedErrors wrapped in ConfigTestExceptions?
[CDO] Why are AssertionFailedErrors wrapped in ConfigTestExceptions? [message #494123] Thu, 29 October 2009 09:57 Go to next message
Caspar D. is currently offline Caspar D.Friend
Messages: 35
Registered: July 2009
Member
In the current HEAD codebase, ConfigTest.runBare() wraps all Throwables in a ConfigTestException. This means that AssertionFailures get wrapped too, and therefore can no longer be identified as such by junit.framework.TestResult.runProtected. As a result, in the JUnit output the test failures show up as errors.

AFAIK, in 2.0 there was no override of runBare() that wrapped the AssertionFailures. What was the reason for this change?
Re: [CDO] Why are AssertionFailedErrors wrapped in ConfigTestExceptions? [message #494538 is a reply to message #494123] Sat, 31 October 2009 09:27 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Jasper,

If there was a reason I can not remember it. Can you attach a patch to a
bugzilla that fixes this?

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Caspar De Groot schrieb:
> In the current HEAD codebase, ConfigTest.runBare() wraps all
> Throwables in a ConfigTestException. This means that AssertionFailures
> get wrapped too, and therefore can no longer be identified as such by
> junit.framework.TestResult.runProtected. As a result, in the JUnit
> output the test failures show up as errors.
>
> AFAIK, in 2.0 there was no override of runBare() that wrapped the
> AssertionFailures. What was the reason for this change?


Previous Topic:[CDO] CDO Explorer.
Next Topic:[CDO] making CDOEditorInputImpl non internal
Goto Forum:
  


Current Time: Sat Apr 27 04:11:16 GMT 2024

Powered by FUDForum. Page generated in 0.03143 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top