db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramin Moazeni (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (DERBY-2658) Convert jdbcapi/parameterMetaDataJdbc30.java to JUnit
Date Mon, 27 Aug 2007 23:25:30 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ramin Moazeni reopened DERBY-2658:
----------------------------------


Reopening this issue to fix the assertSQLState()s.

The following is the comments from Dan posted on derby-dev alias:
-----------------------------------------------------------------------------------------
All the assertSQLState() have the incorrect parameters in that test
(parameterMetadataJdbc30Test) so that they can never fail.

E.g.

assertSQLState("22019", e.getSQLState(), e);


The first argument is the message, the second the expected state. Here
the SQL state from the exception itself is being passed as expected, and
thus will be compared to itself and always pass. If no message is needed
then the call should be:

assertSQLState("22019", e);
-----------------------------------------------------------------------------------------

> Convert jdbcapi/parameterMetaDataJdbc30.java to JUnit
> -----------------------------------------------------
>
>                 Key: DERBY-2658
>                 URL: https://issues.apache.org/jira/browse/DERBY-2658
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.3.1.4
>            Reporter: Ramin Moazeni
>            Assignee: Ramin Moazeni
>             Fix For: 10.3.1.4, 10.4.0.0
>
>         Attachments: DERBY-2658.diff, DERBY-2658.diff-060807, DERBY-2658.diff-061307,
DERBY-2658.stat-060807, DERBY-2658_061807.diff, DERBY-2658_061807.stat
>
>
> Convert jdbcapi/parameterMetaDataJdbc30.java to JUnit.

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


Mime
View raw message