[
https://issues.apache.org/jira/browse/DERBY-5332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Houx Zhang updated DERBY-5332:
------------------------------
Attachment: 5332-1.stat
5332-1.patch
In 5332-1.patch, ij3Test.java has been created to do this converting.
It just adopts 3 properties:
props.setProperty("ij.database", "jdbc:derby:wombat;create=true");
props.setProperty("ij.showNoConnectionsAtStart", "true");
props.setProperty("ij.showNoCountForSelect", "true");
as ij.dataSource is not set in ij3_app.properties, the two properties below has
been removed in the patch.
-ij.dataSource.databaseName=wombat
-ij.dataSource.createDatabase=create
Besides, ij3.out is been changed as below.
Index: java/testing/org/apache/derbyTesting/functionTests/master/ij3.out
===================================================================
--- java/testing/org/apache/derbyTesting/functionTests/master/ij3.out
(revision 1146645)
+++ java/testing/org/apache/derbyTesting/functionTests/master/ij3.out
(working copy)
@@ -1,4 +1,4 @@
-ij> --
+ij(CONNECTION1)> --
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
@@ -16,9 +16,10 @@
--
-- this test shows that ij can detect the driver from the URL.
-- the ij.properties file sets ij.database and nothing else.
+
values 'PASS';
1
----
PASS
-ij> -- this test also exercises the shutdown on exit code
+ij(CONNECTION1)> -- this test also exercises the shutdown on exit code
exit;
With the property ij.database=jdbc:derby:wombat;create=true, and the default
connection for ScriptTestCase, there are two conenections, so the out is
different.
> Convert tools/ij3.sql to junit
> -------------------------------
>
> Key: DERBY-5332
> URL: https://issues.apache.org/jira/browse/DERBY-5332
> Project: Derby
> Issue Type: Sub-task
> Components: Test
> Reporter: Houx Zhang
> Assignee: Houx Zhang
> Labels: gsoc2011
> Attachments: 5332-1.patch, 5332-1.stat
>
>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira