db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Junjie Peng" <pjj.c...@gmail.com>
Subject Re: How to deal with too many "select" in converting '*.sql' to junit (GSOC)
Date Fri, 04 Jul 2008 07:51:29 GMT
Thank you, Knut. I will try it later!

Junjie

2008/7/4 Knut Anders Hatlen <Knut.Hatlen@sun.com>:

> 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