axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davidills...@apache.org
Subject svn commit: r494096 - /webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/groovy/GroovyServiceTest.java
Date Mon, 08 Jan 2007 15:38:42 GMT
Author: davidillsley
Date: Mon Jan  8 07:38:41 2007
New Revision: 494096

URL: http://svn.apache.org/viewvc?view=rev&rev=494096
Log:
Fix another integration test failure on ws.zones (Solaris x86) which don't occur on Linux
x86.
Again, I'm not entirely sure why this fix works... but it brings this test into line with
the others and seems to let them pass.

Modified:
    webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/groovy/GroovyServiceTest.java

Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/groovy/GroovyServiceTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/groovy/GroovyServiceTest.java?view=diff&rev=494096&r1=494095&r2=494096
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/groovy/GroovyServiceTest.java
(original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/groovy/GroovyServiceTest.java
Mon Jan  8 07:38:41 2007
@@ -16,7 +16,10 @@
 
 package org.apache.axis2.groovy;
 
+import junit.framework.Test;
 import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
@@ -31,6 +34,7 @@
 import org.apache.axis2.description.AxisService;
 import org.apache.axis2.engine.EchoRawXMLTest;
 import org.apache.axis2.integration.UtilServer;
+import org.apache.axis2.integration.UtilServerBasedTestCase;
 
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLInputFactory;
@@ -39,7 +43,7 @@
 import java.io.ByteArrayInputStream;
 import java.io.StringWriter;
 
-public class GroovyServiceTest extends TestCase {
+public class GroovyServiceTest extends UtilServerBasedTestCase {
 
 
     private EndpointReference targetEPR =
@@ -51,30 +55,22 @@
 
 
     public GroovyServiceTest() {
-        super(EchoRawXMLTest.class.getName());
+        super(GroovyServiceTest.class.getName());
     }
 
     public GroovyServiceTest(String testName) {
         super(testName);
     }
 
-    protected void setUp() throws Exception {
-        String repository = "target/groovyRepo";
-        UtilServer.start(repository);
-    }
-
-    protected void tearDown() throws Exception {
-        UtilServer.unDeployService(serviceName);
-        UtilServer.stop();
+    public static Test suite() {
+        return getTestSetup2(new TestSuite(GroovyServiceTest.class),"target/groovyRepo");
     }
-
-
+    
     public void testServiceExists() throws Exception {
         AxisService desc = UtilServer.getConfigurationContext().
                 getAxisConfiguration().getService(serviceName.getLocalPart());
         assertNotNull(desc);
     }
-
 
     public void testEchoXMLSync() throws Exception {
         OMElement payload = getpayLoad();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message