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 ka...@apache.org on 2008/02/20 14:24:08 UTC
svn commit: r629452 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java
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);
}