File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/test/java/org/apache/ibatis/jdbc Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .apache .ibatis .jdbc ;
17
17
18
- import static org .junit .jupiter .api .Assertions .assertEquals ;
19
- import static org .junit .jupiter .api .Assertions .assertNotNull ;
18
+ import static org .junit .jupiter .api .Assertions .*;
20
19
21
20
import java .sql .Connection ;
22
21
import java .sql .PreparedStatement ;
@@ -139,10 +138,10 @@ void shouldReconnectWhenServerKilledLeakedConnection() throws Exception {
139
138
140
139
private void executeQuery (Connection con ) throws SQLException {
141
140
try (PreparedStatement st = con .prepareStatement ("select 1" );
142
- ResultSet rs = st .executeQuery ()) {
141
+ ResultSet rs = st .executeQuery ()) {
143
142
while (rs .next ()) {
144
143
assertEquals (1 , rs .getInt (1 ));
145
144
}
146
145
}
147
146
}
148
- }
147
+ }
You can’t perform that action at this time.
0 commit comments