ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [14/26] ignite git commit: IGNITE-6395: Remove old test. This closes #2673.
Date Mon, 18 Sep 2017 08:43:14 GMT
IGNITE-6395: Remove old test. This closes #2673.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/8bcd69dd
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/8bcd69dd
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/8bcd69dd

Branch: refs/heads/ignite-6149
Commit: 8bcd69dd4ef14f747b7d7c582b89b14fda961348
Parents: 4a88ec3
Author: tledkov-gridgain <tledkov@gridgain.com>
Authored: Fri Sep 15 17:25:26 2017 +0300
Committer: devozerov <vozerov@gridgain.com>
Committed: Fri Sep 15 17:25:26 2017 +0300

----------------------------------------------------------------------
 .../jdbc/thin/JdbcThinStatementSelfTest.java    | 26 ++++----------------
 1 file changed, 5 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8bcd69dd/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
index 234a319..16f118c 100644
--- a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
@@ -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);
@@ -951,25 +951,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.
-     */
     public void testCancel() throws Exception {
         fail("https://issues.apache.org/jira/browse/IGNITE-5439");
 
@@ -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) + ']';


Mime
View raw message