You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by my...@apache.org on 2007/07/19 00:59:39 UTC
svn commit: r557424 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ReleaseCompileLocksTest.java
Author: myrnavl
Date: Wed Jul 18 15:59:38 2007
New Revision: 557424
URL: http://svn.apache.org/viewvc?view=rev&rev=557424
Log:
DERBY-2518 - remove unnecessary try/catch blocks - JDBC.assertFullResultSet
will take care of failing the test if there is different behavior.
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ReleaseCompileLocksTest.java
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ReleaseCompileLocksTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ReleaseCompileLocksTest.java?view=diff&rev=557424&r1=557423&r2=557424
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ReleaseCompileLocksTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ReleaseCompileLocksTest.java Wed Jul 18 15:59:38 2007
@@ -103,13 +103,9 @@
Statement stmt = createStatement();
- try {
- JDBC.assertFullResultSet(stmt.executeQuery(
- "select (dmlstatic()) from sys.systables where " +
- "tablename = 'SYSCONGLOMERATES'"), new String[][] {{"1"}});
- } catch (Throwable ie) {
- fail("unexpected problem, cause: " +ie.getCause());
- }
+ JDBC.assertFullResultSet(stmt.executeQuery(
+ "select (dmlstatic()) from sys.systables where " +
+ "tablename = 'SYSCONGLOMERATES'"), new String[][] {{"1"}});
JDBC.assertEmpty(stmt.executeQuery("select TYPE, MODE, TABLENAME, LOCKNAME, STATE from syscs_diag.lock_table order by 1"));
commit();
@@ -118,13 +114,9 @@
stmt.execute("create table t1 (s int)");
commit();
- try {
- JDBC.assertFullResultSet(stmt.executeQuery(
- "select (insertstatic()) from sys.systables where " +
- "tablename = 'SYSCONGLOMERATES'"), new String[][] {{"1"}});
- } catch (Throwable ie) {
- fail("unexpected problem; cause: " + ie.getCause());
- }
+ JDBC.assertFullResultSet(stmt.executeQuery(
+ "select (insertstatic()) from sys.systables where " +
+ "tablename = 'SYSCONGLOMERATES'"), new String[][] {{"1"}});
JDBC.assertEmpty(stmt.executeQuery("select TYPE, MODE, TABLENAME, LOCKNAME, STATE from syscs_diag.lock_table order by 1"));