Thanks Dan. But still I'm getting the same error. I changed the code like
this
public void testDataPopulation() throws SQLException {
String[] dbfiles = {"ToursDB_schema.sql","loadTables.sql"};
BufferedInputStream inStream;
// Connection conn = getConnection();
try{
for (int i = 0 ; i < dbfiles.length ; i++)
{
inStream = new BufferedInputStream(new
FileInputStream(dbfiles[i]),
utilMain.BUFFEREDFILESIZE);
runScript(inStream, "US-ASCII");
}
} catch (Exception e) {
fail("Unexpected while populating the data" + e.getMessage
());
}
}
Still getting the same Exception.
-Manjula
On 12/19/07, Daniel John Debrunner <[EMAIL PROTECTED]> wrote:
>
> Manjula Kutty wrote:
> > Hi,
> >
> > I was trying to convert the test demo/checkToursDB.java to junit and I
> > came throug this error. Does any one know how to resolve this issue?
>
> BaseJDBCTestCase has utility methods to run sql scripts, see the
> runScript methods in the class.
>
> Dan.
>
--
Thanks,
Manjula.