You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2017/12/24 11:07:20 UTC

svn commit: r1819213 - in /axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration: UtilServer.java UtilServerBasedTestCase.java

Author: veithen
Date: Sun Dec 24 11:07:19 2017
New Revision: 1819213

URL: http://svn.apache.org/viewvc?rev=1819213&view=rev
Log:
Remove unused code.

Modified:
    axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServer.java
    axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServerBasedTestCase.java

Modified: axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServer.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServer.java?rev=1819213&r1=1819212&r2=1819213&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServer.java (original)
+++ axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServer.java Sun Dec 24 11:07:19 2017
@@ -104,30 +104,6 @@ public class UtilServer {
         count++;
     }
 
-    public static synchronized void start(String repository, String axis2xml) throws Exception {
-        if (count == 0) {
-            ConfigurationContext er = getNewConfigurationContext(repository, axis2xml);
-
-            receiver = new SimpleHTTPServer(er, TESTING_PORT);
-
-            try {
-                receiver.start();
-                System.out.print("Server started on port "
-                        + TESTING_PORT + ".....");
-            } catch (Exception e) {
-                throw AxisFault.makeFault(e);
-            }
-
-            try {
-                Thread.sleep(2000);
-            } catch (InterruptedException e1) {
-                throw new AxisFault("Thread interuptted", e1);
-            }
-
-        }
-        count++;
-    }
-
     public static ConfigurationContext getNewConfigurationContext(
             String repository) throws Exception {
         File file = new File(repository);

Modified: axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServerBasedTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServerBasedTestCase.java?rev=1819213&r1=1819212&r2=1819213&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServerBasedTestCase.java (original)
+++ axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServerBasedTestCase.java Sun Dec 24 11:07:19 2017
@@ -56,16 +56,4 @@ public class UtilServerBasedTestCase ext
             }
         };
     }
-
-    protected static Test getTestSetup3(Test test, final String param1, final String param2) {
-        return new TestSetup(test) {
-            public void setUp() throws Exception {
-                UtilServer.start(param1, param2);
-            }
-
-            public void tearDown() throws Exception {
-                UtilServer.stop();
-            }
-        };
-    }
 }