db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r557424 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ReleaseCompileLocksTest.java
Date Wed, 18 Jul 2007 22:59:39 GMT
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"));
 



Mime
View raw message