Remove old test. This closes
@@ -44,7 +44,7 @@ import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
/**
* Statement test.
*/
-@SuppressWarnings("ThrowableNotThrown")
+@SuppressWarnings({"ThrowableNotThrown", "ThrowableResultOfMethodCallIgnored"})
public class JdbcThinStatementSelfTest extends JdbcThinAbstractSelfTest {
/** IP finder. */
private static final TcpDiscoveryIpFinder IP_FINDER = new TcpDiscoveryVmIpFinder(true);
@@ -948,25 +948,6 @@ public class JdbcThinStatementSelfTest extends JdbcThinAbstractSelfTest {
});
}
- /**
- * @throws Exception If failed.
- */
- public void testCloseOnCompletion() throws Exception {
- fail("https://issues.apache.org/jira/browse/IGNITE-5344");
-
- assert !stmt.isCloseOnCompletion() : "Default value of CloseOnCompletion is invalid";
-
- stmt.execute("select 1");
-
- stmt.closeOnCompletion();
-
- assert stmt.isCloseOnCompletion();
-
- stmt.getResultSet().close();
-
- assert stmt.isClosed() : "Must be closed on complete";
- }
-
/**
* @throws Exception If failed.
*/
@@ -1048,7 +1029,10 @@ public class JdbcThinStatementSelfTest extends JdbcThinAbstractSelfTest {
ResultSet rs = stmt.executeQuery("select val from test where _key=1");
- assert rs.next();
+ boolean next = rs.next();
+
+ assert next;
+
assert rs.getInt(1) == 1 : "The data must not be updated. " +
"Because update statement is executed via 'executeQuery' method." +
" Data [val=" + rs.getInt(1) + ']';
