We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fda840 commit c24ac0aCopy full SHA for c24ac0a
dao-factory/src/main/java/com/iluwatar/daofactory/H2DataSourceFactory.java
@@ -5,7 +5,7 @@
5
6
/** H2DataSourceFactory concrete factory. */
7
public class H2DataSourceFactory extends DAOFactory {
8
- private final String DB_URL = "jdbc:h2:~/test";
+ private final String DB_URL = "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1";
9
private final String USER = "sa";
10
private final String PASS = "";
11
dao-factory/src/test/java/com/iluwatar/daofactory/H2CustomerDAOTest.java
@@ -22,7 +22,7 @@
22
23
/** Tests {@link H2CustomerDAO} */
24
public class H2CustomerDAOTest {
25
+ private final String DB_URL = "jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1";
26
27
28
private final String CREATE_SCHEMA =
0 commit comments