Author: alessio.soldano(a)jboss.com
Date: 2009-10-07 08:18:29 -0400 (Wed, 07 Oct 2009)
New Revision: 10848
Modified:
stack/native/branches/ropalka/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/endpoint/jse/UsecasesTestCase.java
Log:
Fixing invalid usecase (see
http://java.sun.com/javaee/5/docs/api/javax/activation/DataSource.html#ge...)
Modified:
stack/native/branches/ropalka/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/endpoint/jse/UsecasesTestCase.java
===================================================================
---
stack/native/branches/ropalka/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/endpoint/jse/UsecasesTestCase.java 2009-10-07
12:07:44 UTC (rev 10847)
+++
stack/native/branches/ropalka/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/endpoint/jse/UsecasesTestCase.java 2009-10-07
12:18:29 UTC (rev 10848)
@@ -38,11 +38,10 @@
import javax.xml.ws.soap.MTOMFeature;
import javax.xml.ws.soap.SOAPBinding;
-import org.jboss.test.ws.jaxws.endpoint.jse.endpoints.Endpoint1Iface;
-import org.jboss.test.ws.jaxws.endpoint.jse.endpoints.Endpoint1Impl;
import org.jboss.test.ws.jaxws.endpoint.jse.endpoints.DHRequest;
import org.jboss.test.ws.jaxws.endpoint.jse.endpoints.DHResponse;
-import org.jboss.ws.Constants;
+import org.jboss.test.ws.jaxws.endpoint.jse.endpoints.Endpoint1Iface;
+import org.jboss.test.ws.jaxws.endpoint.jse.endpoints.Endpoint1Impl;
import org.jboss.wsf.test.JBossWSTest;
/**
@@ -61,13 +60,13 @@
@Override
protected void setUp() throws Exception
{
- System.setProperty(Constants.HTTP_KEEP_ALIVE, "false");
+// System.setProperty(Constants.HTTP_KEEP_ALIVE, "false");
}
@Override
protected void tearDown() throws Exception
{
- System.getProperties().remove(Constants.HTTP_KEEP_ALIVE);
+// System.getProperties().remove(Constants.HTTP_KEEP_ALIVE);
}
public void testTwoPorts() throws Exception
@@ -210,7 +209,6 @@
{
Endpoint1Iface port = this.getProxy(publishURL, mtomEnabled);
- final InputStream is = new ByteArrayInputStream("some
string".getBytes());
DataSource ds = new DataSource()
{
@@ -221,7 +219,7 @@
public InputStream getInputStream() throws IOException
{
- return is;
+ return new ByteArrayInputStream("some string".getBytes());
}
public String getName()
@@ -235,6 +233,7 @@
}
};
+
DataHandler dh = new DataHandler(ds);
DHResponse response = port.echoDataHandler(new DHRequest(dh));
assertNotNull(response);