Skip to content

Commit 3bfb617

Browse files
committed
Improved tests [skip ci]
1 parent 17f11b8 commit 3bfb617

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/test/groovy/com/pgvector/JDBCGroovyTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import static org.junit.jupiter.api.Assertions.*
99

1010
public class JDBCGroovyTest {
1111
@Test
12-
public void example() throws SQLException {
12+
void example() throws SQLException {
1313
Connection conn = DriverManager.getConnection("jdbc:postgresql://localhost:5432/pgvector_java_test")
1414

1515
Statement setupStmt = conn.createStatement()

src/test/java/com/pgvector/HibernateTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
public class HibernateTest {
1818
@Test
19-
public void example() throws SQLException {
19+
void example() throws SQLException {
2020
// disable logging
2121
System.setProperty("org.jboss.logging.provider", "slf4j");
2222

src/test/java/com/pgvector/JDBCJavaTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111

1212
public class JDBCJavaTest {
1313
@Test
14-
public void readText() throws SQLException {
14+
void readText() throws SQLException {
1515
example(false);
1616
}
1717

1818
@Test
19-
public void readBinary() throws SQLException {
19+
void readBinary() throws SQLException {
2020
example(true);
2121
}
2222

23-
private void example(boolean read_binary) throws SQLException {
23+
void example(boolean read_binary) throws SQLException {
2424
Connection conn = DriverManager.getConnection("jdbc:postgresql://localhost:5432/pgvector_java_test");
2525
if (read_binary) {
2626
conn.unwrap(PGConnection.class).setPrepareThreshold(-1);

src/test/java/com/pgvector/SpringJDBCTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
public class SpringJDBCTest {
1616
@Test
17-
public void example() throws SQLException {
17+
void example() throws SQLException {
1818
DriverManagerDataSource dataSource = new DriverManagerDataSource();
1919
dataSource.setUrl("jdbc:postgresql://localhost:5432/pgvector_java_test");
2020

0 commit comments

Comments
 (0)