Author: gmonroe
Date: Wed Jan 9 09:11:50 2008
New Revision: 610465
URL: http://svn.apache.org/viewvc?rev=610465&view=rev
Log:
Correction for the previous commit (new profile directory). A profile for
testing with Derby's Network Server - includes a derby.properties file and some
notes.
Added:
db/torque/test/trunk/profile/derbyNetwork/
db/torque/test/trunk/profile/derbyNetwork/Torque.properties
db/torque/test/trunk/profile/derbyNetwork/derby.properties
db/torque/test/trunk/profile/derbyNetwork/notes.txt
db/torque/test/trunk/profile/derbyNetwork/project.properties
db/torque/test/trunk/profile/derbyNetwork/project.xml
Added: db/torque/test/trunk/profile/derbyNetwork/Torque.properties
URL:
http://svn.apache.org/viewvc/db/torque/test/trunk/profile/derbyNetwork/Torque.properties?rev=610465&view=auto
==============================================================================
--- db/torque/test/trunk/profile/derbyNetwork/Torque.properties (added)
+++ db/torque/test/trunk/profile/derbyNetwork/Torque.properties Wed Jan 9
09:11:50 2008
@@ -0,0 +1,36 @@
+# Copyright 2005 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License")
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# Runtime settings for the derby test profile
+#
+# $Id$
+#
+
+torque.database.default = bookstore
+torque.database.bookstore.adapter = derby
+
+#Using commons-dbcp
+torque.dsfactory.bookstore.factory =
org.apache.torque.dsfactory.SharedPoolDataSourceFactory
+
+#torque.dsfactory.bookstore.connection.driver =
org.apache.derby.jdbc.EmbeddedDriver
+#torque.dsfactory.bookstore.connection.url =
jdbc:derby:d:/temp/derby2/bookstore
+
+torque.dsfactory.bookstore.connection.driver =
org.apache.derby.jdbc.ClientDriver
+torque.dsfactory.bookstore.connection.url =
jdbc:derby://localhost:1527/bookstore
+
+torque.dsfactory.bookstore.connection.user = test
+torque.dsfactory.bookstore.connection.password = test
+
+torque.dsfactory.bookstore.pool.validationQuery = values(1)
\ No newline at end of file
Added: db/torque/test/trunk/profile/derbyNetwork/derby.properties
URL:
http://svn.apache.org/viewvc/db/torque/test/trunk/profile/derbyNetwork/derby.properties?rev=610465&view=auto
==============================================================================
--- db/torque/test/trunk/profile/derbyNetwork/derby.properties (added)
+++ db/torque/test/trunk/profile/derbyNetwork/derby.properties Wed Jan 9
09:11:50 2008
@@ -0,0 +1,7 @@
+# Derby Network Server properties for Torque test-project.
+# Should be located in the derby.system.home directory.
+derby.authentication.provider=BUILTIN
+derby.user.test=test
+derby.fullAccessUsers=test
+# derby.drda.traceAll=true
+# derby.drda.traceDirectory=d:/Temp/Derby/trace
\ No newline at end of file
Added: db/torque/test/trunk/profile/derbyNetwork/notes.txt
URL:
http://svn.apache.org/viewvc/db/torque/test/trunk/profile/derbyNetwork/notes.txt?rev=610465&view=auto
==============================================================================
--- db/torque/test/trunk/profile/derbyNetwork/notes.txt (added)
+++ db/torque/test/trunk/profile/derbyNetwork/notes.txt Wed Jan 9 09:11:50 2008
@@ -0,0 +1,12 @@
+Notes on running the tests with Derby's Network Server.
+
+1) Obviously, you have to have the Derby Network Server installed and
+ running...d'oh. Make sure the ports match in your JDBC URL and the
+ derby server. (Some Derby documentation uses different ports).
+
+ The derby.properties file in this directory has the basic setup info for
users
+ and rights needed to run this test. This should be located in your
+ derby.system.home directory.
+
+ 2) The Bookstore database directory should be manually deleted between
+ test runs because some tables can not be dropped.
\ No newline at end of file
Added: db/torque/test/trunk/profile/derbyNetwork/project.properties
URL:
http://svn.apache.org/viewvc/db/torque/test/trunk/profile/derbyNetwork/project.properties?rev=610465&view=auto
==============================================================================
--- db/torque/test/trunk/profile/derbyNetwork/project.properties (added)
+++ db/torque/test/trunk/profile/derbyNetwork/project.properties Wed Jan 9
09:11:50 2008
@@ -0,0 +1,52 @@
+# Copyright 2005 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License")
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# Generator and build settings for the derby test profile
+#
+# $Id$
+#
+
+# Test Case 1
+ torque.test.base.idMethod = idbroker
+ torque.generateBeans = true;
+ torque.useMangers = false;
+ torque.objectIsCaching = false;
+
+# Test Case 2
+# torque.test.base.idMethod = native
+# torque.generateBeans = false;
+# torque.useMangers = true;
+# torque.objectIsCaching = true;
+
+# torque.test.haltonfailure determines the following:
+# yes = Stop on first junit test failure (default if not set)
+# no = continue to run tests after failure
+torque.test.haltonfailure = yes
+
+torque.database = derby
+
+torque.database.createUrl = jdbc:derby://localhost:1527/bookstore;create=true;
+torque.database.buildUrl = jdbc:derby://localhost:1527/bookstore
+torque.database.driver = org.apache.derby.jdbc.ClientDriver
+torque.database.user = test
+torque.database.password = test
+
+#settings for the datadump and jdbc task
+torque.database.url = jdbc:derby://localhost:1527/bookstore
+
+# Special URL to tell the test harness to shutdown the embedded DB when needed.
+torque.database.shutdownUrl = jdbc:derby:;shutdown=true;
+
+torque.database.host = 127.0.0.1
\ No newline at end of file
Added: db/torque/test/trunk/profile/derbyNetwork/project.xml
URL:
http://svn.apache.org/viewvc/db/torque/test/trunk/profile/derbyNetwork/project.xml?rev=610465&view=auto
==============================================================================
--- db/torque/test/trunk/profile/derbyNetwork/project.xml (added)
+++ db/torque/test/trunk/profile/derbyNetwork/project.xml Wed Jan 9 09:11:50
2008
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2001-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License")
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ ===========================================================================
+
+ project descriptor for the derby test profile
+ $Id$
+
+-->
+
+<project>
+ <extend>../../../runtime/project.xml</extend>
+ <artifactId>torque-derby-test</artifactId>
+ <name>Torque-derby-test</name>
+ <dependencies>
+ <dependency>
+ <artifactId>derby</artifactId>
+ <groupId>org.apache.derby</groupId>
+ <version>10.3.2.1</version>
+ </dependency>
+ <dependency>
+ <artifactId>derbyclient</artifactId>
+ <groupId>org.apache.derby</groupId>
+ <version>10.3.2.1</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]