james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1241846 - in /james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc: DefaultUsersJdbcRepositoryTest.java JamesUsersJdbcRepositoryTest.java
Date Wed, 08 Feb 2012 10:20:09 GMT
Author: eric
Date: Wed Feb  8 10:20:08 2012
New Revision: 1241846

URL: http://svn.apache.org/viewvc?rev=1241846&view=rev
Log:
Use memory database to ease test success, no need to delete created db folder (JAMES-1369)

Modified:
    james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/DefaultUsersJdbcRepositoryTest.java
    james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/JamesUsersJdbcRepositoryTest.java

Modified: james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/DefaultUsersJdbcRepositoryTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/DefaultUsersJdbcRepositoryTest.java?rev=1241846&r1=1241845&r2=1241846&view=diff
==============================================================================
--- james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/DefaultUsersJdbcRepositoryTest.java
(original)
+++ james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/DefaultUsersJdbcRepositoryTest.java
Wed Feb  8 10:20:08 2012
@@ -74,7 +74,7 @@ public class DefaultUsersJdbcRepositoryT
     private BasicDataSource getDataSource() {
         BasicDataSource ds = new BasicDataSource();
         ds.setDriverClassName(EmbeddedDriver.class.getName());
-        ds.setUrl("jdbc:derby:target/testdb;create=true");
+        ds.setUrl("jdbc:derby:memory:testdb;create=true");
         ds.setUsername("james");
         ds.setPassword("james");
         return ds;

Modified: james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/JamesUsersJdbcRepositoryTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/JamesUsersJdbcRepositoryTest.java?rev=1241846&r1=1241845&r2=1241846&view=diff
==============================================================================
--- james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/JamesUsersJdbcRepositoryTest.java
(original)
+++ james/server/trunk/data-jdbc/src/test/java/org/apache/james/user/jdbc/JamesUsersJdbcRepositoryTest.java
Wed Feb  8 10:20:08 2012
@@ -72,7 +72,7 @@ public class JamesUsersJdbcRepositoryTes
     private BasicDataSource getDataSource() {
         BasicDataSource ds = new BasicDataSource();
         ds.setDriverClassName(EmbeddedDriver.class.getName());
-        ds.setUrl("jdbc:derby:target/testdb;create=true");
+        ds.setUrl("jdbc:derby:memory:testdb;create=true");
         ds.setUsername("james");
         ds.setPassword("james");
         return ds;



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


Mime
View raw message