db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: How to deal with too many "select" in converting '*.sql' to junit (GSOC)
Date Fri, 04 Jul 2008 07:35:23 GMT
Junjie Peng <pjj.ccce@gmail.com> writes:

>    Hi, friends! In
> "org.apache.derbyTesting.functionTests.tests.lang.arithmetic.sql", there are
> a lot of "select" sentence. In converting to junit, a lot of
> JDBC.assertFullResultSet(rs, expectedRows) will be called. It's boring to
> generate so many ResultSets and compare them. Do we have some smart way to
> resolve this problem?

Hi Junjie,

I haven't tried it myself, but I've seen there is a tool that helps
converting SQL tests to JUnit tests. Check out the class
org.apache.derbyTesting.functionTests.util.SQLToJUnit.

-- 
Knut Anders

Mime
View raw message