Skip to content

Commit

Permalink
test: remove conditions over native or java mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Aug 16, 2023
1 parent 41740f8 commit 332edfb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
4 changes: 0 additions & 4 deletions src/test/java/org/sqlite/BackupTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ void testFailedBackupAndRestore() throws Exception {

@Test
public void memoryToDisk() throws Exception {
if (!SQLiteJDBCLoader.isNativeMode()) {
return; // skip this test in pure-java mode
}

try (Connection conn = DriverManager.getConnection("jdbc:sqlite:");
Statement stmt = conn.createStatement()) {
stmt.executeUpdate("create table sample(id integer primary key autoincrement, name)");
Expand Down
9 changes: 0 additions & 9 deletions src/test/java/org/sqlite/SavepointTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import java.sql.Statement;
import java.util.Properties;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
Expand All @@ -26,14 +25,6 @@ public class SavepointTest {
private Connection conn1, conn2;
private Statement stat1, stat2;

@BeforeAll
public static void forName() throws Exception {
System.out.println(
"running in "
+ (SQLiteJDBCLoader.isNativeMode() ? "native" : "pure-java")
+ " mode");
}

@BeforeEach
public void connect(@TempDir File tempDir) throws Exception {
File tmpFile = File.createTempFile("test-trans", ".db", tempDir);
Expand Down
9 changes: 0 additions & 9 deletions src/test/java/org/sqlite/TransactionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.util.Properties;
import java.util.Set;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
Expand All @@ -26,14 +25,6 @@ public class TransactionTest {

boolean done = false;

@BeforeAll
public static void forName() throws Exception {
System.out.println(
"running in "
+ (SQLiteJDBCLoader.isNativeMode() ? "native" : "pure-java")
+ " mode");
}

@BeforeEach
public void connect(@TempDir File tempDir) throws Exception {
File tmpFile = File.createTempFile("test-trans", ".db", tempDir);
Expand Down

0 comments on commit 332edfb

Please sign in to comment.