Test fix
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/790cd266 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/790cd266 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/790cd266 Branch: refs/heads/ignite-6022-proto Commit: 790cd266cfe77ee84a4887697179e946397792aa Parents: b30729e Author: Alexander Paschenko <[email protected]> Authored: Fri Dec 15 19:10:45 2017 +0300 Committer: Alexander Paschenko <[email protected]> Committed: Fri Dec 15 19:10:45 2017 +0300 ---------------------------------------------------------------------- .../java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/790cd266/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java index 5e2e39e..8609615 100644 --- a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java +++ b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinBatchSelfTest.java @@ -260,7 +260,8 @@ public class JdbcThinBatchSelfTest extends JdbcThinAbstractDmlStatementSelfTest pstmt.executeBatch(); fail("BatchUpdateException must be thrown"); - } catch(BatchUpdateException e) { + } + catch(BatchUpdateException e) { int [] updCnts = e.getUpdateCounts(); assertEquals("Invalid update counts size", BATCH_SIZE, updCnts.length); @@ -268,7 +269,7 @@ public class JdbcThinBatchSelfTest extends JdbcThinAbstractDmlStatementSelfTest for (int i = 0; i < BATCH_SIZE; ++i) assertEquals("Invalid update count",1, updCnts[i]); - if (!e.getMessage().contains("Failed to execute SQL query.")) { + if (!e.getMessage().contains("Value conversion failed")) { log.error("Invalid exception: ", e); fail();
