db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Pendleton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5084) convert ijConnName.sql to a ScriptTest junit test
Date Fri, 22 Apr 2011 01:51:05 GMT

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

Bryan Pendleton commented on DERBY-5084:
----------------------------------------

When I try to build patch 6 in my environment I get a compilation error (see below).

I think that String.contains() is new with JDK 1.5, and this section of the code is by
default compiled with JDK 1.4 compatibility, so we can't use that method.


compilet1:
    [javac] Compiling 2 source files to /home/bpendleton/src/derby/trunk/classes
    [javac] /home/bpendleton/src/derby/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/IjConnNameWithWrongDriverTest.java:31:
cannot find symbol
    [javac] symbol  : method contains(java.lang.String)
    [javac] location: class java.lang.String
    [javac]         assertTrue(ijResult.contains("08001"));
    [javac]                            ^
    [javac] /home/bpendleton/src/derby/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/IjConnNameWithWrongDriverTest.java:32:
cannot find symbol
    [javac] symbol  : method contains(java.lang.String)
    [javac] location: class java.lang.String
    [javac]         assertTrue(ijResult.contains("No suitable driver"));
    [javac]                            ^
    [javac] 2 errors

BUILD FAILED


> convert ijConnName.sql to a ScriptTest junit test
> -------------------------------------------------
>
>                 Key: DERBY-5084
>                 URL: https://issues.apache.org/jira/browse/DERBY-5084
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Myrna van Lunteren
>            Assignee: Houx Zhang
>            Priority: Trivial
>              Labels: derby_triage10_8
>         Attachments: DERBY-5084-1.patch, DERBY-5084-2.patch, DERBY-5084-3.patch, DERBY-5084-3.stat,
DERBY-5084.patch, DERBY-5084_4.diff, DERBY-5084_5.diff, derby-5084-6.patch, ijConnName-1.out,
ijConnName-1.tmp
>
>
> In DERBY-3089 it is mentioned that tools/ijConnName.sql should get converted to a junit
test, probably using ScriptTest.
> Making a separate issue so that that issue can be closed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message