db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Houx Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5084) convert ijConnName.sql to a ScriptTest junit test
Date Thu, 24 Mar 2011 13:51:05 GMT

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

Houx Zhang commented on DERBY-5084:
-----------------------------------

I have also tried to use "TestConfiguration.singleUseDatabaseDecorator" to decorate the test
case, but the second run failed still.

public class IjConnNameTest extends ScriptTestCase {

    private static String test_script = "ijConnName";

    public IjConnNameTest(String name) {
        super(name, true);
    }

    public static Test suite() {        
        TestSuite suite = new TestSuite("IjConnNameTest");
        suite.addTest(getTestCase());
        suite.addTest(TestConfiguration.clientServerDecorator(getTestCase()));
        
        return suite; 
    }

    private static Test getTestCase() {
        return TestConfiguration.singleUseDatabaseDecorator(new IjConnNameTest(test_script));
    }
}

> 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
>            Priority: Trivial
>              Labels: derby_triage10_8
>         Attachments: DERBY-5084-1.patch, DERBY-5084-2.patch, DERBY-5084.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