mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-25 02:12:22 -05:00
Add sqlite to tests
This commit is contained in:
parent
2db37683d6
commit
1d6f71918c
7
pom.xml
7
pom.xml
@ -97,6 +97,13 @@
|
||||
<scope>test</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.xerial</groupId>
|
||||
<artifactId>sqlite-jdbc</artifactId>
|
||||
<version>3.21.0.1</version>
|
||||
<scope>test</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
|
@ -48,6 +48,12 @@
|
||||
<scope>test</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.xerial</groupId>
|
||||
<artifactId>sqlite-jdbc</artifactId>
|
||||
<scope>test</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
|
@ -58,7 +58,7 @@ public class QueryMapperQmDao implements QmDao {
|
||||
static {
|
||||
Collection<Class<?>> no = new ArrayList<Class<?>>();
|
||||
for(final String connectionClassName : new String[]{
|
||||
"org.hsqldb.jdbc.JDBCConnection", "org.apache.derby.impl.jdbc.EmbedConnection"
|
||||
"org.hsqldb.jdbc.JDBCConnection", "org.apache.derby.impl.jdbc.EmbedConnection", "org.sqlite.jdbc3.JDBC3Connection"
|
||||
// h2 doesn't support this with java6 either...
|
||||
/*IFJAVA6_START
|
||||
, "org.h2.jdbc.JdbcConnection"
|
||||
|
@ -75,12 +75,15 @@ public class QueryMapperTest {
|
||||
jUrls.add("jdbc:hsqldb:mem:testDB");
|
||||
jUrls.add("jdbc:derby:memory:testDB;create=true");
|
||||
jUrls.add("jdbc:h2:mem:testDB");
|
||||
jUrls.add("jdbc:sqlite::memory:");
|
||||
} else if(jdbcUrl.equals("hsql") || jdbcUrl.equals("hsqldb")) {
|
||||
jUrls.add("jdbc:hsqldb:mem:testDB");
|
||||
} else if(jdbcUrl.equals("derby")) {
|
||||
jUrls.add("jdbc:derby:memory:testDB;create=true");
|
||||
} else if(jdbcUrl.equals("h2")) {
|
||||
jUrls.add("jdbc:h2:mem:testDB");
|
||||
} else if(jdbcUrl.equals("sqlite")) {
|
||||
jUrls.add("jdbc:sqlite::memory:");
|
||||
} else {
|
||||
jUrls.add(jdbcUrl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user