Create test databases in target directory

This commit is contained in:
John Tims 2015-10-03 19:31:21 -04:00
parent d6e7169b58
commit 457539b2e6
6 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory
javax.jdo.option.ConnectionDriverName=org.h2.Driver
javax.jdo.option.ConnectionURL=jdbc:h2:~/dbs/test
javax.jdo.option.ConnectionURL=jdbc:h2:./target/test
javax.jdo.option.ConnectionUserName=sa
javax.jdo.option.ConnectionPassword=
#javax.jdo.option.Mapping=h2

View File

@ -80,7 +80,7 @@
<property name="hibernate.archive.autodetection" value="class" />
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
<property name="hibernate.connection.driver_class" value="org.h2.Driver" />
<property name="hibernate.connection.url" value="jdbc:h2:~/dbs/h2-hibernate" />
<property name="hibernate.connection.url" value="jdbc:h2:./target/h2-hibernate" />
<property name="hibernate.connection.user" value="sa" />
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.flushMode" value="FLUSH_AUTO" />
@ -94,7 +94,7 @@
<property name="hibernate.archive.autodetection" value="class" />
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
<property name="hibernate.connection.driver_class" value="org.h2.Driver" />
<property name="hibernate.connection.url" value="jdbc:h2:~/dbs/h2-hibernate-perf" />
<property name="hibernate.connection.url" value="jdbc:h2:./target/h2-hibernate-perf" />
<property name="hibernate.connection.user" value="sa" />
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.flushMode" value="FLUSH_AUTO" />
@ -107,7 +107,7 @@
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:h2:~/dbs/h2-eclipselink" />
<property name="javax.persistence.jdbc.url" value="jdbc:h2:./target/h2-eclipselink" />
<property name="javax.persistence.jdbc.user" value="sa" />
<property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
<property name="eclipselink.ddl-generation.output-mode" value="database" />
@ -174,7 +174,7 @@
<class>com.querydsl.jpa.domain4.Library</class>
<properties>
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:h2:~/dbs/h2-batoo" />
<property name="javax.persistence.jdbc.url" value="jdbc:h2:./target/h2-batoo" />
<property name="javax.persistence.jdbc.user" value="sa" />
<property name="org.batoo.jpa.sql_logging" value="NONE"/>
<property name="org.batoo.jpa.ddl" value="DROP" />
@ -185,7 +185,7 @@
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
<properties>
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:h2:~/dbs/h2-openjpa" />
<property name="javax.persistence.jdbc.url" value="jdbc:h2:./target/h2-openjpa" />
<property name="javax.persistence.jdbc.user" value="sa" />
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
<property name="openjpa.RuntimeUnenhancedClasses" value="supported" />

View File

@ -1,6 +1,6 @@
hibernate.dialect=org.hibernate.dialect.H2Dialect
hibernate.connection.driver_class=org.h2.Driver
hibernate.connection.url=jdbc:h2:~/dbs/h2-jpa1
hibernate.connection.url=jdbc:h2:./target/h2-jpa1
hibernate.connection.username=sa
hibernate.connection.password=

View File

@ -27,7 +27,7 @@ import org.junit.Test;
public class AntMetaDataExporterTest {
// private final String url = "jdbc:h2:mem:testdb" + System.currentTimeMillis();
private final String url = "jdbc:h2:~/dbs/h2" + System.currentTimeMillis();
private final String url = "jdbc:h2:./target/h2" + System.currentTimeMillis();
@Before
public void setUp() throws SQLException {

View File

@ -113,7 +113,7 @@ public final class Connections {
private static Connection getH2() throws SQLException, ClassNotFoundException {
Class.forName("org.h2.Driver");
String url = "jdbc:h2:~/dbs/h2-test;LOCK_MODE=0";
String url = "jdbc:h2:./target/h2-test;LOCK_MODE=0";
return DriverManager.getConnection(url, "sa", "");
}

View File

@ -35,7 +35,7 @@ public class GeneratedKeysH2Test {
@Before
public void setUp() throws ClassNotFoundException, SQLException {
Class.forName("org.h2.Driver");
String url = "jdbc:h2:~/dbs/h2-gen";
String url = "jdbc:h2:./target/h2-gen";
conn = DriverManager.getConnection(url, "sa", "");
stmt = conn.createStatement();
}