db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3754) Convert "org.apache.derbyTesting.functionTests.tests.lang.connect.sql" to junit
Date Thu, 10 Jul 2008 16:52:31 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12612568#action_12612568

Kathey Marsden commented on DERBY-3754:

Hi Junjie,

You have code like:

   String conSql = "connect 'jdbc:derby:wombat;create=true'";
        Connection con = DriverManager.getConnection(conSql);

The connect statement is just ij language and is not used.  You only pass the url to DriverManager.

String url = "jdbc:derby:wombat;create=true";
Connection con = DriverManager.getConnection(url);

One thing to not as well  is since this test uses DriverManager we don't want to run with
JSR169, Your suite() method should have something like:
     if ( JDBC.vmSupportsJSR169())
            // Test uses DriverManager which 
            // is not supported with JSR169
            return new TestSuite("empty ConnectTest:DriverManager not supported");

>  Convert "org.apache.derbyTesting.functionTests.tests.lang.connect.sql" to junit
> --------------------------------------------------------------------------------
>                 Key: DERBY-3754
>                 URL: https://issues.apache.org/jira/browse/DERBY-3754
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>         Environment: windows xp, sp2.
>            Reporter: Junjie Peng
>            Assignee: Junjie Peng
>         Attachments: derby-3754-1-patch.txt
>   Original Estimate: 120h
>  Remaining Estimate: 120h
> Convert "org.apache.derbyTesting.functionTests.tests.lang.connect.sql" to junit. It it
a part of 2008 GSOC.

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

View raw message