Skip to content

Commit c99b651

Browse files
committed
Recover Test
1 parent a092062 commit c99b651

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/java/org/apache/ibatis/jdbc/PooledDataSourceTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
*/
1616
package org.apache.ibatis.jdbc;
1717

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.*;
2019

2120
import java.sql.Connection;
2221
import java.sql.PreparedStatement;
@@ -139,10 +138,10 @@ void shouldReconnectWhenServerKilledLeakedConnection() throws Exception {
139138

140139
private void executeQuery(Connection con) throws SQLException {
141140
try (PreparedStatement st = con.prepareStatement("select 1");
142-
ResultSet rs = st.executeQuery()) {
141+
ResultSet rs = st.executeQuery()) {
143142
while (rs.next()) {
144143
assertEquals(1, rs.getInt(1));
145144
}
146145
}
147146
}
148-
}
147+
}

0 commit comments

Comments
 (0)