File tree 1 file changed +11
-4
lines changed
src/test/java/org/mariadb/jdbc/integration
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 6
6
import static org .junit .jupiter .api .Assertions .*;
7
7
8
8
import java .sql .*;
9
- import org .junit .jupiter .api .AfterAll ;
10
- import org .junit .jupiter .api .Assumptions ;
11
- import org .junit .jupiter .api .BeforeAll ;
12
- import org .junit .jupiter .api .Test ;
9
+
10
+ import org .junit .jupiter .api .*;
13
11
14
12
public class ErrorTest extends Common {
15
13
@@ -146,4 +144,13 @@ public void deadLockInformation() throws SQLException {
146
144
}
147
145
}
148
146
}
147
+ @ Test
148
+ public void connectionErrorFormat () throws SQLException {
149
+ try {
150
+ DriverManager .getConnection ("jdbc:mariadb://localhost:3000/db" );
151
+ fail ("Must have thrown an error" );
152
+ } catch (SQLException e ) {
153
+ assertEquals ("08000" , e .getSQLState ());
154
+ }
155
+ }
149
156
}
You can’t perform that action at this time.
0 commit comments