db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: junit test debugging - any helper routine to just dump out the full contents of a result set?
Date Thu, 24 May 2007 17:25:08 GMT
Mike Matrigali wrote:
> Is there any debug helper routines already written to dump
> the contents of a result set to standard out?
>
To print out the resultSet in two dimensional array used by 
JDBC.assertFullResultSet(rs,expectedRows) there is this  showResultSet 
utility. You can call this to print out the ResultSet and then cut and 
paste into your test code.

http://db.apache.org/derby/javadoc/testing/org/apache/derbyTesting/junit/Utilities.html#showResultSet(java.sql.ResultSet)


For human readable ResultSet display there is JDBCDisplayUtil
http://db.apache.org/derby/javadoc/engine/org/apache/derby/tools/JDBCDisplayUtil.html#DisplayResults(java.io.PrintStream,%20java.sql.Statement,%20java.sql.Connection)

> /mikem
>
>
>



Mime
View raw message