Skip to content

Commit c4ddd1e

Browse files
committed
test: remove conditions over native or java mode
1 parent e52c44f commit c4ddd1e

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

src/test/java/org/sqlite/BackupTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ void testFailedBackupAndRestore() throws Exception {
9292

9393
@Test
9494
public void memoryToDisk() throws Exception {
95-
if (!SQLiteJDBCLoader.isNativeMode()) {
96-
return; // skip this test in pure-java mode
97-
}
98-
9995
try (Connection conn = DriverManager.getConnection("jdbc:sqlite:");
10096
Statement stmt = conn.createStatement()) {
10197
stmt.executeUpdate("create table sample(id integer primary key autoincrement, name)");

src/test/java/org/sqlite/SavepointTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import java.sql.Statement;
1313
import java.util.Properties;
1414
import org.junit.jupiter.api.AfterEach;
15-
import org.junit.jupiter.api.BeforeAll;
1615
import org.junit.jupiter.api.BeforeEach;
1716
import org.junit.jupiter.api.Test;
1817
import org.junit.jupiter.api.io.TempDir;
@@ -26,14 +25,6 @@ public class SavepointTest {
2625
private Connection conn1, conn2;
2726
private Statement stat1, stat2;
2827

29-
@BeforeAll
30-
public static void forName() throws Exception {
31-
System.out.println(
32-
"running in "
33-
+ (SQLiteJDBCLoader.isNativeMode() ? "native" : "pure-java")
34-
+ " mode");
35-
}
36-
3728
@BeforeEach
3829
public void connect(@TempDir File tempDir) throws Exception {
3930
File tmpFile = File.createTempFile("test-trans", ".db", tempDir);

src/test/java/org/sqlite/TransactionTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import java.util.Properties;
1010
import java.util.Set;
1111
import org.junit.jupiter.api.AfterEach;
12-
import org.junit.jupiter.api.BeforeAll;
1312
import org.junit.jupiter.api.BeforeEach;
1413
import org.junit.jupiter.api.Test;
1514
import org.junit.jupiter.api.io.TempDir;
@@ -26,14 +25,6 @@ public class TransactionTest {
2625

2726
boolean done = false;
2827

29-
@BeforeAll
30-
public static void forName() throws Exception {
31-
System.out.println(
32-
"running in "
33-
+ (SQLiteJDBCLoader.isNativeMode() ? "native" : "pure-java")
34-
+ " mode");
35-
}
36-
3728
@BeforeEach
3829
public void connect(@TempDir File tempDir) throws Exception {
3930
File tmpFile = File.createTempFile("test-trans", ".db", tempDir);

0 commit comments

Comments
 (0)