db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Kartha (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2299) convert cursor.java to junit
Date Mon, 12 Feb 2007 21:45:05 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472431

Rajesh Kartha commented on DERBY-2299:

I applied the patch and was able to run the test succesfully in Embedded. 

Comparing the orginal cursor.java the new test I did not find  the following in the new one:
testCursorName("select * from t for update of i", "myselect");

Also, the test seem to run only in embedded mode, are there plans to make it run under Network
I tried running it under both using 

return TestConfiguration.defaultSuite(CursorTest.class);

in the suite() method.

With the Network server I noticed the SQLStates returned are different for line 87:

assertEquals("Wrong SQLState thrown",se.getSQLState(),"24000");

I am getting  XJ121 (Invalid operation at current cursor position) instead of the 
expected 24000 (Invalid cursor state - no current row) so the tests failed for me with Network

> convert cursor.java to junit
> ----------------------------
>                 Key: DERBY-2299
>                 URL: https://issues.apache.org/jira/browse/DERBY-2299
>             Project: Derby
>          Issue Type: Task
>          Components: Test
>    Affects Versions:
>            Reporter: Kathey Marsden
>         Assigned To: Kathey Marsden
>            Priority: Minor
>             Fix For:
>         Attachments: DERBY_2299.stat, DERBY_2299.txt
> Convert cursor.java to junit

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message