File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/java/com/iluwatar/daofactory
test/java/com/iluwatar/daofactory Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
/** H2DataSourceFactory concrete factory. */
7
7
public class H2DataSourceFactory extends DAOFactory {
8
- private final String DB_URL = "jdbc:h2:~/ test" ;
8
+ private final String DB_URL = "jdbc:h2:mem: test;DB_CLOSE_DELAY=-1 " ;
9
9
private final String USER = "sa" ;
10
10
private final String PASS = "" ;
11
11
Original file line number Diff line number Diff line change 22
22
23
23
/** Tests {@link H2CustomerDAO} */
24
24
public class H2CustomerDAOTest {
25
- private final String DB_URL = "jdbc:h2:~/test " ;
25
+ private final String DB_URL = "jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1 " ;
26
26
private final String USER = "sa" ;
27
27
private final String PASS = "" ;
28
28
private final String CREATE_SCHEMA =
You can’t perform that action at this time.
0 commit comments