Skip to content

Commit 93d1800

Browse files
committed
FIX: row.getData()
1 parent dcdaa8e commit 93d1800

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
<artifactId>maven-compiler-plugin</artifactId>
6363
<version>3.11.0</version>
6464
<configuration>
65-
<source>${java.version}</source>
66-
<target>${java.version}</target>
65+
<source>17</source>
66+
<target>17</target>
6767
</configuration>
6868
</plugin>
6969
<plugin>

src/test/java/de/goldendeveloper/mysql/MYSQLTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package de.goldendeveloper.mysql;
22

3+
import de.goldendeveloper.mysql.exceptions.NoConnectionException;
34
import org.junit.jupiter.api.Test;
45

56
import java.io.FileInputStream;
67
import java.io.IOException;
8+
import java.sql.SQLException;
79
import java.util.Properties;
810

911
import static org.junit.jupiter.api.Assertions.*;
@@ -71,7 +73,7 @@ void getUsers() {
7173
}
7274

7375
@Test
74-
void existsDatabase() {
76+
void existsDatabase() throws NoConnectionException, SQLException {
7577
if (!setupTest().existsDatabase("test_mysql_api"))
7678
setupTest().createDatabase("test_mysql_api");
7779
assertTrue(setupTest().existsDatabase("test_mysql_api"));
@@ -88,14 +90,14 @@ void customExecute() {
8890
}
8991

9092
@Test
91-
void getDatabase() {
93+
void getDatabase() throws NoConnectionException, SQLException {
9294
if (!setupTest().existsDatabase("test_mysql_api"))
9395
setupTest().createDatabase("test_mysql_api");
9496
assertNotNull(setupTest().getDatabase("test_mysql_api"));
9597
}
9698

9799
@Test
98-
void createDatabase() {
100+
void createDatabase() throws NoConnectionException, SQLException {
99101
if (!setupTest().existsDatabase("test_mysql_api"))
100102
setupTest().createDatabase("test_mysql_api");
101103
assertTrue(setupTest().existsDatabase("test_mysql_api"));
@@ -107,7 +109,7 @@ void onFlushPrivileges() {
107109
}
108110

109111
@Test
110-
void switchDatabase() {
112+
void switchDatabase() throws NoConnectionException, SQLException {
111113
MYSQL mysql = setupTest();
112114
if (!mysql.existsDatabase("test_mysql_api"))
113115
mysql.createDatabase("test_mysql_api");
@@ -123,7 +125,7 @@ void createUser() {
123125
}
124126

125127
@Test
126-
void getDatabases() {
128+
void getDatabases() throws NoConnectionException, SQLException {
127129
MYSQL mysql = setupTest();
128130
if (!mysql.existsDatabase("test_mysql_api"))
129131
mysql.createDatabase("test_mysql_api");

0 commit comments

Comments
 (0)