You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by gm...@apache.org on 2008/01/09 18:11:58 UTC

svn commit: r610465 - in /db/torque/test/trunk/profile/derbyNetwork: ./ Torque.properties derby.properties notes.txt project.properties project.xml

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: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


RE: svn commit: r610465 - in /db/torque/test/trunk/profile/derbyNetwork: ./ Torque.properties derby.properties notes.txt project.properties project.xml

Posted by Greg Monroe <Gr...@DukeCE.com>.
That sounds like a good place to add this.  But I may
not get to it for a few days.

FWIW, the note.txt file was a quick and dirty way to 
remind me what to do when the next release came up for 
testing.  I figured that it would be seen when the 
properties files were being "localized". 

> -----Original Message-----
> From: Thomas Fischer [mailto:fischer@seitenbau.net] 
> Sent: Wednesday, January 09, 2008 12:43 PM
> To: Apache Torque Developers List
> Subject: RE: svn commit: r610465 - in 
> /db/torque/test/trunk/profile/derbyNetwork: ./ 
> Torque.properties derby.properties notes.txt 
> project.properties project.xml
> 
> Greg, would you mind moving the notes from 
> db/torque/test/trunk/profile/derbyNetwork/notes.txt to
> 
> http://db.apache.org/torque/developer-info/test-project.html ?
> 
> I'd guess they would be easier to find there.
> 
>    Thomas
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
> 
> 
DukeCE Privacy Statement:
Please be advised that this e-mail and any files transmitted with
it are confidential communication or may otherwise be privileged or
confidential and are intended solely for the individual or entity
to whom they are addressed. If you are not the intended recipient
you may not rely on the contents of this email or any attachments,
and we ask that you please not read, copy or retransmit this
communication, but reply to the sender and destroy the email, its
contents, and all copies thereof immediately. Any unauthorized
dissemination, distribution or copying of this communication is
strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


RE: svn commit: r610465 - in /db/torque/test/trunk/profile/derbyNetwork: ./ Torque.properties derby.properties notes.txt project.properties project.xml

Posted by Thomas Fischer <fi...@seitenbau.net>.
Greg, would you mind moving the notes from
db/torque/test/trunk/profile/derbyNetwork/notes.txt to

http://db.apache.org/torque/developer-info/test-project.html ?

I'd guess they would be easier to find there.

   Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org