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 my...@apache.org on 2013/03/28 22:14:25 UTC
svn commit: r1462304 - in /db/derby/code/branches/10.9: ./
java/testing/org/apache/derbyTesting/functionTests/master/
java/testing/org/apache/derbyTesting/functionTests/suites/
java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/
java/tes...
Author: myrnavl
Date: Thu Mar 28 21:14:25 2013
New Revision: 1462304
URL: http://svn.apache.org/r1462304
Log:
DERBY-3838; Convert derbynet/DerbyNetAutoStart to JUnit
backport of revision 1461415 from trunk. Required addition of getBasePort method
into TestConfiguration.
Added:
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStartTest.java
- copied unchanged from r1461415, db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStartTest.java
Removed:
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/master/DerbyNetAutoStart.out
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStart.java
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStart_app.properties
Modified:
db/derby/code/branches/10.9/ (props changed)
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientRemote.exclude
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientUseprocess.exclude
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetRemote.exclude
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetUseprocess.exclude
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/derbynetclientmats.runall
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/_Suite.java
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java
Propchange: db/derby/code/branches/10.9/
------------------------------------------------------------------------------
Merged /db/derby/code/trunk:r1461415
Modified: db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientRemote.exclude
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientRemote.exclude?rev=1462304&r1=1462303&r2=1462304&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientRemote.exclude (original)
+++ db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientRemote.exclude Thu Mar 28 21:14:25 2013
@@ -13,7 +13,6 @@
# started with specific property set - DERBY928 for reference
# thus not suitable for remote server testing in its current form. - DERBY-928
# derbynet/timeslice - tries to use NetworkServerControl statements
-# derbynet/DerbyNetAutoStart - tries to start networkserver
# lang/wisconsin - optimization is quite different when running remote server.
# junitTests/derbyNet/CompatibilityTest.java - tries to start and shutdown the server.
# stress/stress.multi - attempts to connect to localhost.
@@ -23,7 +22,6 @@ derbynet/dblook_test_net.java
derbynet/dblook_test_net_territory.java
derbynet/maxthreads.java
derbynet/timeslice.java
-derbynet/DerbyNetAutoStart.java
lang/wisconsin.java
junitTests/derbyNet/CompatibilityTest.java
stress/stress.multi
Modified: db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientUseprocess.exclude
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientUseprocess.exclude?rev=1462304&r1=1462303&r2=1462304&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientUseprocess.exclude (original)
+++ db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetClientUseprocess.exclude Thu Mar 28 21:14:25 2013
@@ -3,7 +3,6 @@
# jdbcapi/HoldabilityTest.junit - test causes subsequent tests to fail because of missing
# File permission
# junitTests/derbyNet/CompatibilityTest.java - exits the suite
-# derbynet/DerbyNetAutoStart.java - exits the suite...
# derbynet/dblook_test_net.java - expects different dir structure
# derbynet/dblook_test_net_territory.java - expects different dir structure
# stress/stress.multi - exits suite
@@ -13,7 +12,6 @@
#
jdbcapi/HoldabilityTest.junit
junitTests/derbyNet/CompatibilityTest.java
-derbynet/DerbyNetAutoStart.java
derbynet/dblook_test_net.java
derbynet/dblook_test_net_territory.java
stress/stress.multi
Modified: db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetRemote.exclude
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetRemote.exclude?rev=1462304&r1=1462303&r2=1462304&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetRemote.exclude (original)
+++ db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetRemote.exclude Thu Mar 28 21:14:25 2013
@@ -12,7 +12,6 @@
# derbynet/maxthreads - tries to use NetworkServerControl statements
# thus not suitable for remote server testing in its current form. - DERBY-928
# derbynet/timeslice - tries to use NetworkServerControl statements
-# derbynet/DerbyNetAutoStart - tries to start networkserver
# be started with a specific property. see DERBY-928 for reference
# lang/wisconsin - optimization is quite different when running remote server.
# junitTests/derbyNet/CompatibilityTest.java - tries to start and shutdown the server
@@ -22,6 +21,5 @@ derbynet/dblook_test_net.java
derbynet/dblook_test_net_territory.java
derbynet/maxthreads.java
derbynet/timeslice.java
-derbynet/DerbyNetAutoStart.java
lang/wisconsin.java
junitTests/derbyNet/CompatibilityTest.java
Modified: db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetUseprocess.exclude
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetUseprocess.exclude?rev=1462304&r1=1462303&r2=1462304&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetUseprocess.exclude (original)
+++ db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/DerbyNetUseprocess.exclude Thu Mar 28 21:14:25 2013
@@ -3,7 +3,6 @@
#
# jdbcapi/HoldabilityTest.junit - causes subsequent tests to fail because of missing
# File permissions
-# derbynet/DerbyNetAutoStart.java - exits suite...
# derbynet/dblook_test_net.java - fails, test misses properties
# derbynet/dblook_test_net_territory.java - fails, test misses properties
# derbynet/runtimeinfo.java - fails with already existing threads (maybe intermittent)
@@ -12,7 +11,6 @@
#
jdbcapi/maxfieldsize.java
jdbcapi/HoldabilityTest.junit
-derbynet/DerbyNetAutoStart.java
derbynet/dblook_test_net.java
derbynet/dblook_test_net_territory.java
derbynet/runtimeinfo.java
Modified: db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/derbynetclientmats.runall
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/derbynetclientmats.runall?rev=1462304&r1=1462303&r2=1462304&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/derbynetclientmats.runall (original)
+++ db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/suites/derbynetclientmats.runall Thu Mar 28 21:14:25 2013
@@ -1,5 +1,4 @@
junitTests/derbyNet/CompatibilityTest.java
derbynet/dblook_test_net.java
derbynet/dblook_test_net_territory.java
-derbynet/DerbyNetAutoStart.java
lang/wisconsin.java
Modified: db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/_Suite.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/_Suite.java?rev=1462304&r1=1462303&r2=1462304&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/_Suite.java (original)
+++ db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/_Suite.java Thu Mar 28 21:14:25 2013
@@ -65,6 +65,7 @@ public class _Suite extends BaseTestCase
suite.addTest(GetCurrentPropertiesTest.suite());
suite.addTest(Utf8CcsidManagerTest.suite());
suite.addTest(Utf8CcsidManagerClientTest.suite());
+ suite.addTest(DerbyNetAutoStartTest.suite());
// Disabled due to "java.sql.SQLSyntaxErrorException: The class
// 'org.apache.derbyTesting.functionTests.tests.derbynet.checkSecMgr'
Modified: db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java?rev=1462304&r1=1462303&r2=1462304&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java (original)
+++ db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java Thu Mar 28 21:14:25 2013
@@ -79,7 +79,7 @@ public final class TestConfiguration {
* page at http://wiki.apache.org/db-derby/DerbyJUnitTesting
* need to be updated.
*/
- private final static int MAX_PORTS_USED = 20;
+ private final static int MAX_PORTS_USED = 22;
/** This is the base port. This does NOT change EVER during the run of a suite.
* It is set using the property derby.tests.basePort and it is set to default when
@@ -1551,6 +1551,10 @@ public final class TestConfiguration {
return hostName;
}
+ public static int getBasePort() {
+ return basePort;
+ }
+
/**
* Get port number for network server.
*