[ 
https://issues.apache.org/jira/browse/DERBY-6642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14048024#comment-14048024
 ] 

Dag H. Wanvik commented on DERBY-6642:
--------------------------------------

The patch works by always collecting columns and rows as they are read. The 
method JDBC#addRsToReport takes these collections and what's left of the result 
set and formats a dump of the result set and adds it to the text of already 
existing assertion failure. This is then (re)thrown.

> Make the JUnit result set assertion methods dump the actual rs when assertion 
> fails
> -----------------------------------------------------------------------------------
>
>                 Key: DERBY-6642
>                 URL: https://issues.apache.org/jira/browse/DERBY-6642
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Dag H. Wanvik
>         Attachments: derby-6642.diff
>
>
> Often, when researching intermittent regression test errors, an assertion on 
> a result set fails, but the error report only shows which column in which row 
> first fails to meet expectations. It would be good if the assertion methods 
> could dump the actual result set in such cases so we'd have more information 
> to go on when trying to understand the cause of the problem.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to