[ http://issues.apache.org/jira/browse/TUSCANY-436?page=all ]
Brent Daniel updated TUSCANY-436: --------------------------------- Attachment: tuscany436.txt Attaching a patch for this issue > Some DAS tests can never fail > ----------------------------- > > Key: TUSCANY-436 > URL: http://issues.apache.org/jira/browse/TUSCANY-436 > Project: Tuscany > Type: Bug > Components: Java DAS RDB > Reporter: Brent Daniel > Priority: Minor > Attachments: tuscany436.txt > > In ExceptionTests, testEmptyStream() and testEmptyStream2() can never fail. > They both do something like this: > try { > ... > fail("Error should be thrown"); > } catch (Error e) { > ... > } > JUnit's fail() method throws a subclass of Error, so it is impossible for > this to fail. The exception that is expected from the DAS runtime in these > tests is also an Error, so the runtime will need to be modified to fix this. > The DAS should not be using Error anyway, as it is intended for abnormal and > unrecoverable errors. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]