Author: alessio.soldano(a)jboss.com
Date: 2009-01-26 10:28:01 -0500 (Mon, 26 Jan 2009)
New Revision: 9119
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2449/JBWS2449TestCase.java
Log:
Minor changes
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2449/JBWS2449TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2449/JBWS2449TestCase.java 2009-01-26
15:27:08 UTC (rev 9118)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2449/JBWS2449TestCase.java 2009-01-26
15:28:01 UTC (rev 9119)
@@ -41,12 +41,12 @@
public class JBWS2449TestCase extends JBossWSTest
{
public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-jbws2449";
-
+
public static Test suite()
{
return new JBossWSTestSetup(JBWS2449TestCase.class,
"jaxws-jbws2449.jar");
}
-
+
public void test() throws Exception
{
URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
@@ -55,22 +55,23 @@
String retObj = port.echo("Hello");
assertEquals("Hello", retObj);
}
-
+
public void testWithRespectBinding() throws Exception
{
URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
QName serviceName = new QName("http://org.jboss.ws/jbws2449",
"EndpointService");
try
{
- Service.create(wsdlURL, serviceName).getPort(Endpoint.class, new
RespectBindingFeature(true));
- fail("Exception expected, the wsdl has an understood required extensibility
element!");
+ Endpoint ep = Service.create(wsdlURL, serviceName).getPort(Endpoint.class, new
RespectBindingFeature(true));
+ ep.echo("hi");
+ fail("Exception expected, the wsdl has a not understood required
extensibility element!");
}
catch (Exception e)
{
- //NOOP
+ //NOOP
}
}
-
+
public void testWithRespectBinding2() throws Exception
{
URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");