From 6c6987cc125bc76abc70bf9d9413fc15d89ed562 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 29 May 2012 10:04:32 +0000 Subject: [PATCH] use only derby in memory for test git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1343640 13f79535-47bb-0310-9956-ffa450edef68 --- pom.xml | 2 +- .../org/apache/archiva/redback/config-defaults.properties | 2 +- .../org/apache/archiva/redback/config-defaults.properties | 2 +- .../org/apache/archiva/redback/config-defaults.properties | 5 +++-- .../src/test/resources/spring-context.xml | 2 +- .../org/apache/archiva/redback/config-defaults.properties | 5 +---- 6 files changed, 8 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 9f221225e..70e302c3b 100644 --- a/pom.xml +++ b/pom.xml @@ -574,7 +574,7 @@ org.hsqldb hsqldb - 1.8.0.10 + 2.2.8 org.apache.derby diff --git a/redback-common/redback-common-test-resources/src/main/resources/org/apache/archiva/redback/config-defaults.properties b/redback-common/redback-common-test-resources/src/main/resources/org/apache/archiva/redback/config-defaults.properties index e1a9696a8..5621a702c 100644 --- a/redback-common/redback-common-test-resources/src/main/resources/org/apache/archiva/redback/config-defaults.properties +++ b/redback-common/redback-common-test-resources/src/main/resources/org/apache/archiva/redback/config-defaults.properties @@ -27,7 +27,7 @@ application.timestamp=EEE d MMM yyyy HH:mm:ss Z jdbc.driver.name=org.apache.derby.jdbc.EmbeddedDriver #jdbc.url=jdbc:hsqldb:mem:redback-users-tests #jdbc.url=jdbc:derby:memory:users-test;create=true -jdbc.url=jdbc:derby:users-test;create=true +jdbc.url=jdbc:derby:memory:users-test;create=true jdbc.username=sa jdbc.password= diff --git a/redback-configuration/src/main/resources/org/apache/archiva/redback/config-defaults.properties b/redback-configuration/src/main/resources/org/apache/archiva/redback/config-defaults.properties index e28bf4b37..223132664 100644 --- a/redback-configuration/src/main/resources/org/apache/archiva/redback/config-defaults.properties +++ b/redback-configuration/src/main/resources/org/apache/archiva/redback/config-defaults.properties @@ -24,7 +24,7 @@ application.timestamp=EEE d MMM yyyy HH:mm:ss Z # JDBC Setup jdbc.driver.name=org.apache.derby.jdbc.EmbeddedDriver -jdbc.url=jdbc:derby:${plexus.home}/database;create=true +jdbc.url=jdbc:derby:memory:users-tests;create=true jdbc.username=sa jdbc.password= diff --git a/redback-data-management/src/test/resources/org/apache/archiva/redback/config-defaults.properties b/redback-data-management/src/test/resources/org/apache/archiva/redback/config-defaults.properties index 6409f97cb..63902ad11 100644 --- a/redback-data-management/src/test/resources/org/apache/archiva/redback/config-defaults.properties +++ b/redback-data-management/src/test/resources/org/apache/archiva/redback/config-defaults.properties @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -jdbc.url=jdbc:derby:target/database;create=true + # -------------------------------------------------------------------- @@ -25,8 +25,9 @@ application.timestamp=EEE d MMM yyyy HH:mm:ss Z # -------------------------------------------------------------------- # JDBC Setup - +jdbc.url=jdbc:derby:memory:users-tests;create=true jdbc.driver.name=org.apache.derby.jdbc.EmbeddedDriver + jdbc.username=sa jdbc.password= diff --git a/redback-data-management/src/test/resources/spring-context.xml b/redback-data-management/src/test/resources/spring-context.xml index 5125b40ca..ae1f6f998 100644 --- a/redback-data-management/src/test/resources/spring-context.xml +++ b/redback-data-management/src/test/resources/spring-context.xml @@ -31,7 +31,7 @@ - + diff --git a/redback-integrations/redback-common-integrations/src/test/resources/org/apache/archiva/redback/config-defaults.properties b/redback-integrations/redback-common-integrations/src/test/resources/org/apache/archiva/redback/config-defaults.properties index 5ce278613..bbc9c1d21 100644 --- a/redback-integrations/redback-common-integrations/src/test/resources/org/apache/archiva/redback/config-defaults.properties +++ b/redback-integrations/redback-common-integrations/src/test/resources/org/apache/archiva/redback/config-defaults.properties @@ -16,9 +16,6 @@ # under the License. -jdbc.url=jdbc:derby:target/database;create=true - - # -------------------------------------------------------------------- # Application Configuration @@ -26,7 +23,7 @@ application.timestamp=EEE d MMM yyyy HH:mm:ss Z # -------------------------------------------------------------------- # JDBC Setup - +jdbc.url=jdbc:derby:memory:users-test;create=true jdbc.driver.name=org.apache.derby.jdbc.EmbeddedDriver jdbc.username=sa jdbc.password= -- 2.39.5