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 55
66/** H2DataSourceFactory concrete factory. */
77public 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 " ;
99 private final String USER = "sa" ;
1010 private final String PASS = "" ;
1111
Original file line number Diff line number Diff line change 2222
2323/** Tests {@link H2CustomerDAO} */
2424public 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 " ;
2626 private final String USER = "sa" ;
2727 private final String PASS = "" ;
2828 private final String CREATE_SCHEMA =
You can’t perform that action at this time.
0 commit comments