db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1523824 - in /db/derby/code/branches/10.9: ./ java/testing/org/apache/derbyTesting/functionTests/tests/lang/TriggerTest.java
Date Mon, 16 Sep 2013 22:24:57 GMT
Author: mamta
Date: Mon Sep 16 22:24:56 2013
New Revision: 1523824

URL: http://svn.apache.org/r1523824
Log:
DERBY-5866(testFiringConstraintOrder(org.apache.derbyTesting.functionTests.tests.lang.TriggerTest)junit.framework.AssertionFailedError:
matching triggers need to be fired in order creation:1,NO CASCADE BEFORE,DELETE,ROW)

Backporting more diagnostic info to 10.9 coeline from trunk


Modified:
    db/derby/code/branches/10.9/   (props changed)
    db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TriggerTest.java

Propchange: db/derby/code/branches/10.9/
------------------------------------------------------------------------------
  Merged /db/derby/code/trunk:r1523501,1523821

Modified: db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TriggerTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TriggerTest.java?rev=1523824&r1=1523823&r2=1523824&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TriggerTest.java
(original)
+++ db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TriggerTest.java
Mon Sep 16 22:24:56 2013
@@ -89,6 +89,16 @@ public class TriggerTest extends BaseJDB
     
     protected void setUp() throws Exception
     {
+        //DERBY-5866( testFiringConstraintOrder(
+        // org.apache.derbyTesting.functionTests.tests.lang.TriggerTest)
+        // junit.framework.AssertionFailedError: 
+        // matching triggers need to be fired in order creation:
+        // 1,NO CASCADE BEFORE,DELETE,ROW )
+        //Do the cleanup here rather than in tearDown. This way, if a test
+        // fixture fails, we will have the left over wombat database with
+        // the schema and data used by the failing fixture.
+        JDBC.dropSchema(getConnection().getMetaData(),
+                getTestConfiguration().getUserName());
         Statement s = createStatement();
         s.executeUpdate("CREATE PROCEDURE TRIGGER_LOG_INFO(" +
                 "O VARCHAR(255)) " +
@@ -98,16 +108,13 @@ public class TriggerTest extends BaseJDB
         s.close();
 
     }
-    
+
     protected void tearDown() throws Exception
     {
         TRIGGER_INFO.set(null);
-        JDBC.dropSchema(getConnection().getMetaData(),
-                getTestConfiguration().getUserName());
-
         super.tearDown();
     }
-    
+
     /**
      * Altering the column length should regenerate the trigger
      * action plan which is saved in SYSSTATEMENTS. DERBY-4874



Mime
View raw message