From bfe29fcad456cb9ee98b542358eefca659faf66d Mon Sep 17 00:00:00 2001 From: Luc Boudreau Date: Thu, 21 Aug 2008 16:21:25 +0000 Subject: [PATCH] Fixed a faulty condition. git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@113 c6a108a4-781c-0410-a6c6-c2d559e19af0 --- testsrc/org/olap4j/ConnectionTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/testsrc/org/olap4j/ConnectionTest.java b/testsrc/org/olap4j/ConnectionTest.java index f97419a..382a428 100644 --- a/testsrc/org/olap4j/ConnectionTest.java +++ b/testsrc/org/olap4j/ConnectionTest.java @@ -1786,7 +1786,7 @@ public void run() { fail("expected exception indicating stmt had been canceled," + " got cellSet " + cellSet); } catch (OlapException e) { - assertTrue(e.getMessage().indexOf("The statement execution was canceled") >= 0); + assertTrue(e.getMessage().indexOf("canceled") >= 0); } if (exceptions[0] != null) { throw exceptions[0]; @@ -1803,8 +1803,7 @@ public void testStatementTimeout() throws Throwable { olapStatement.setQueryTimeout(-1); fail("expected exception"); } catch (SQLException e) { - assertTrue(e.getMessage().indexOf("The timeout value you provided") >= 0 - && e.getMessage().indexOf("is not valid. It needs to be a positive non-zero integer") >= 0); + assertTrue(e.getMessage().indexOf("timeout") >= 0); } olapStatement.setQueryTimeout(1); try {