db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r682531 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/OutBufferedStreamTest.java
Date Mon, 04 Aug 2008 22:34:21 GMT
Author: myrnavl
Date: Mon Aug  4 15:34:20 2008
New Revision: 682531

URL: http://svn.apache.org/viewvc?rev=682531&view=rev
Log:
DERBY-3812 - fix test regression in 
  NetworkServerMBeanTest.testAttributeDrdaStreamOutBufferSize caused by checkin
  of converted test OutBufferStreamTest (DERBY-3796).
  Patch contributed by Erlend Birkenes

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/OutBufferedStreamTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/OutBufferedStreamTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/OutBufferedStreamTest.java?rev=682531&r1=682530&r2=682531&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/OutBufferedStreamTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/OutBufferedStreamTest.java
Mon Aug  4 15:34:20 2008
@@ -32,10 +32,10 @@
 import java.util.Properties;
 
 import junit.framework.Test;
-import junit.framework.TestSuite;
 
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.CleanDatabaseTestSetup;
+import org.apache.derbyTesting.junit.SystemPropertyTestSetup;
 import org.apache.derbyTesting.junit.TestConfiguration;
 
 /**
@@ -68,14 +68,13 @@
      * @return the testsuite
      */
     public static Test suite() {
-        Properties sysprops = System.getProperties();
-        sysprops.put("derby.drda.streamOutBufferSize", "131072");
+        Properties properties = new Properties();
+        properties.setProperty("derby.drda.streamOutBufferSize", "131072");
 
-        TestSuite s = new TestSuite("OutBufferedStreamTest");
-        s.addTestSuite(OutBufferedStreamTest.class);
+        Test suite = TestConfiguration.clientServerSuite (OutBufferedStreamTest.class);
+        suite = new SystemPropertyTestSetup(suite, properties);
 
-        return new CleanDatabaseTestSetup(
-                                  TestConfiguration.clientServerDecorator(s)) {
+        return new CleanDatabaseTestSetup(suite) {
             /**
              * Creates the table used in the test case.
              *



Mime
View raw message