1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
Description: skipping tests needind unpackaged testing framework:
- archunit-junit5 classes;
- org.assertj.core.api.Assertions.assertThatNoException
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2022-11-16
Index: xerial-sqlite-jdbc/pom.xml
===================================================================
--- xerial-sqlite-jdbc.orig/pom.xml
+++ xerial-sqlite-jdbc/pom.xml
@@ -126,6 +126,8 @@
<configuration>
<testExcludes>
<exclude>**/OSInfoTest.java</exclude><!-- We are not building OSInfo.class -->
+ <exclude>**/CodingRulesTest.java</exclude><!-- Relies on unpackaged archunit-junit5 classes -->
+ <exclude>**/TestCodingRulesTest.java</exclude><!-- Relies on unpackaged archunit-junit5 classes -->
</testExcludes>
</configuration>
</execution>
Index: xerial-sqlite-jdbc/src/test/java/org/sqlite/PrepStmtTest.java
===================================================================
--- xerial-sqlite-jdbc.orig/src/test/java/org/sqlite/PrepStmtTest.java
+++ xerial-sqlite-jdbc/src/test/java/org/sqlite/PrepStmtTest.java
@@ -2,7 +2,7 @@ package org.sqlite;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
-import static org.assertj.core.api.Assertions.assertThatNoException;
+//import static org.assertj.core.api.Assertions.assertThatNoException;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.assertj.core.data.Offset.offset;
@@ -796,7 +796,7 @@ public class PrepStmtTest {
assertThat(rs.isClosed()).isTrue();
assertThat(ps.isClosed()).isFalse();
- assertThatNoException().isThrownBy(ps::clearParameters);
+ //assertThatNoException().isThrownBy(ps::clearParameters);
}
@Test
Index: xerial-sqlite-jdbc/src/test/java/org/sqlite/SQLiteJDBCLoaderTest.java
===================================================================
--- xerial-sqlite-jdbc.orig/src/test/java/org/sqlite/SQLiteJDBCLoaderTest.java
+++ xerial-sqlite-jdbc/src/test/java/org/sqlite/SQLiteJDBCLoaderTest.java
@@ -25,7 +25,7 @@
package org.sqlite;
import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatNoException;
+//import static org.assertj.core.api.Assertions.assertThatNoException;
import java.nio.file.Path;
import java.sql.*;
@@ -56,7 +56,7 @@ public class SQLiteJDBCLoaderTest {
}
}
- @Test
+ /*@Test
public void query() {
// if e.getMessage() is "out of memory", it probably means no
// database file is found
@@ -79,7 +79,7 @@ public class SQLiteJDBCLoaderTest {
rs.getString(2);
}
});
- }
+ }*/
@Test
public void function() throws SQLException {
@@ -120,7 +120,7 @@ public class SQLiteJDBCLoaderTest {
Thread.sleep(sleepMillis * 10);
} catch (InterruptedException ignored) {
}
- assertThatNoException()
+ /*assertThatNoException()
.isThrownBy(
() -> {
// Uncomment the synchronized block and everything
@@ -130,11 +130,11 @@ public class SQLiteJDBCLoaderTest {
conn.close();
// }
});
- completedThreads.incrementAndGet();
+ completedThreads.incrementAndGet();*/
});
}
pool.shutdown();
pool.awaitTermination(3, TimeUnit.SECONDS);
- assertThat(completedThreads.get()).isEqualTo(32);
+ //assertThat(completedThreads.get()).isEqualTo(32);
}
}
Index: xerial-sqlite-jdbc/src/test/java/org/sqlite/StatementTest.java
===================================================================
--- xerial-sqlite-jdbc.orig/src/test/java/org/sqlite/StatementTest.java
+++ xerial-sqlite-jdbc/src/test/java/org/sqlite/StatementTest.java
@@ -633,7 +633,7 @@ public class StatementTest {
rs.close();
}
- @Test
+ /*@Test
public void setEscapeProcessingToFalse() {
assertThatNoException().isThrownBy(() -> stat.setEscapeProcessing(false));
}
@@ -641,7 +641,7 @@ public class StatementTest {
@Test
public void setEscapeProcessingToTrue() {
assertThatNoException().isThrownBy(() -> stat.setEscapeProcessing(true));
- }
+ }*/
@Test
public void unwrapTest() throws SQLException {
|