db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r629452 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java
Date Wed, 20 Feb 2008 13:24:08 GMT
Author: kahatlen
Date: Wed Feb 20 05:24:08 2008
New Revision: 629452

URL: http://svn.apache.org/viewvc?rev=629452&view=rev
Log:
Restore the verbosity level in UnsupportedVetter's tearDown() method.

Without this change, subsequent tests print messages to the console
when they start the network server.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java?rev=629452&r1=629451&r2=629452&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java
Wed Feb 20 05:24:08 2008
@@ -1074,7 +1074,20 @@
 		}
 		
 	}
-	
+
+    private boolean savedVerbosity;
+
+    protected void setUp() {
+        // testSupportedMethods() sets the verbosity, so we need to save the
+        // original verbosity here and restore it in tearDown.
+        savedVerbosity = getTestConfiguration().isVerbose();
+    }
+
+    protected void tearDown() throws Exception {
+        getTestConfiguration().setVerbosity(savedVerbosity);
+        super.tearDown();
+    }
+
     public static Test suite() {
         return TestConfiguration.defaultSuite(UnsupportedVetter.class);
     }



Mime
View raw message