Author: richard.opalka(a)jboss.com
Date: 2012-06-01 03:01:47 -0400 (Fri, 01 Jun 2012)
New Revision: 16338
Modified:
shared-testsuite/branches/jbossws-shared-testsuite-4.0.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws2259/EndpointImpl.java
Log:
fixing test case
Modified:
shared-testsuite/branches/jbossws-shared-testsuite-4.0.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws2259/EndpointImpl.java
===================================================================
---
shared-testsuite/branches/jbossws-shared-testsuite-4.0.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws2259/EndpointImpl.java 2012-05-31
15:51:26 UTC (rev 16337)
+++
shared-testsuite/branches/jbossws-shared-testsuite-4.0.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws2259/EndpointImpl.java 2012-06-01
07:01:47 UTC (rev 16338)
@@ -23,6 +23,7 @@
import java.awt.Image;
import java.io.IOException;
+import java.io.InputStream;
import javax.jws.WebService;
import javax.xml.ws.BindingType;
@@ -63,7 +64,7 @@
{
Object content = dh.getContent();
log.info("Content - " + content.toString());
- if (content instanceof Image == false)
+ if ( !(content instanceof Image) && !(content instanceof InputStream))
{
throw new WebServiceException("Unexpected content '" +
content.getClass().getName() + "'");
}