db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1057542 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java
Date Tue, 11 Jan 2011 09:35:38 GMT
Author: kahatlen
Date: Tue Jan 11 09:35:37 2011
New Revision: 1057542

URL: http://svn.apache.org/viewvc?rev=1057542&view=rev
Log:
DERBY-4874: TriggerTests should report why it cannot drop table

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java?rev=1057542&r1=1057541&r2=1057542&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memory/TriggerTests.java
Tue Jan 11 09:35:37 2011
@@ -270,19 +270,11 @@ public class TriggerTests extends BaseJD
 	 * @throws SQLException
 	 */
 	public void basicSetup() throws SQLException{
-        Statement s = createStatement();
-		try {
-			s.execute("drop table table1");
-		} catch (SQLException sqle) {}
-
-		try {
-			s.execute("drop table table2");
-		} catch (SQLException sqle) {}
-
-		try {
-			s.execute("drop table table3");
-		} catch (SQLException sqle) {}
+        dropTable("TABLE1");
+        dropTable("TABLE2");
+        dropTable("TABLE3");
 
+        Statement s = createStatement();
 		try {
 			s.execute("drop trigger trigger1");
 		} catch (SQLException sqle) {}



Mime
View raw message