Author: veithen
Date: Mon Dec 19 06:45:59 2011
New Revision: 1220625
URL: http://svn.apache.org/viewvc?rev=1220625&view=rev
Log:
Fixed a test case that starts an Axis2 server but fails to stop it.
Modified:
axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/map/MapServiceTest.java
Modified:
axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/map/MapServiceTest.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/map/MapServiceTest.java?rev=1220625&r1=1220624&r2=1220625&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/map/MapServiceTest.java
(original)
+++
axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/map/MapServiceTest.java
Mon Dec 19 06:45:59 2011
@@ -38,7 +38,8 @@ import org.apache.axis2.engine.AxisServe
* The Class MapServiceTest.
*/
public class MapServiceTest extends TestCase {
-
+ private AxisServer server;
+
/** The service. */
protected AxisService service;
@@ -48,9 +49,15 @@ public class MapServiceTest extends Test
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
- new AxisServer().deployService(MapService.class.getName());
+ server = new AxisServer();
+ server.deployService(MapService.class.getName());
}
+ @Override
+ protected void tearDown() throws Exception {
+ server.stop();
+ }
+
/**
* Test string generics map service.
*