[jbossws-commits] JBossWS SVN: r12896 - in stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws: jbws2206 and 1 other directory.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Fri Sep 3 07:47:58 EDT 2010


Author: richard.opalka at jboss.com
Date: 2010-09-03 07:47:58 -0400 (Fri, 03 Sep 2010)
New Revision: 12896

Modified:
   stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2087/JBWS2087TestCase.java
   stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2206/JBWS2206TestCase.java
Log:
[JBWS-2957] fixing tests to be aligned with new URL pattern scheme

Modified: stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2087/JBWS2087TestCase.java
===================================================================
--- stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2087/JBWS2087TestCase.java	2010-09-03 11:37:17 UTC (rev 12895)
+++ stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2087/JBWS2087TestCase.java	2010-09-03 11:47:58 UTC (rev 12896)
@@ -41,7 +41,7 @@
    public void testClientProxy() throws Exception
    {
       Service service = Service.create(
-         new URL("http://"+getServerHost()+":8080/jaxws-jbws2087/MetroTestServiceBean?wsdl"),
+         new URL("http://"+getServerHost()+":8080/jaxws-jbws2087/MetroTestService/MetroTestServiceBean?wsdl"),
          new QName("http://com.acme.metroexceptiontest/", "MetroTestService")
       );
       MetroTestPortType port = service.getPort(MetroTestPortType.class);

Modified: stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2206/JBWS2206TestCase.java
===================================================================
--- stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2206/JBWS2206TestCase.java	2010-09-03 11:37:17 UTC (rev 12895)
+++ stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2206/JBWS2206TestCase.java	2010-09-03 11:47:58 UTC (rev 12896)
@@ -51,7 +51,7 @@
 
    public void testClientProxy() throws Exception
    {
-      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws2206/MetroTestServiceBean?wsdl");
+      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws2206/MetroTestService/MetroTestServiceBean?wsdl");
       Service service = Service.create(wsdlURL, new QName("http://com.acme.metroexceptiontest/", "MetroTestService"));
       MetroTestPortType port = service.getPort(MetroTestPortType.class);
 
@@ -61,7 +61,7 @@
 
    public void testImportedDocument() throws Exception
    {
-      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws2206/MetroTestServiceBean?wsdl");
+      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws2206/MetroTestService/MetroTestServiceBean?wsdl");
       WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
       Definition wsdlDefinition = wsdlReader.readWSDL(wsdlURL.toString());
       assertNotNull(wsdlDefinition);
@@ -80,8 +80,7 @@
       String schemaLocation = schemaImport.getSchemaLocationURI();
       assertNotNull(schemaLocation);
       assertTrue(schemaLocation.startsWith("http://" + getServerHost())); //check absolute url
-      
-      
+
       HttpURLConnection con = (HttpURLConnection)new URL(schemaLocation).openConnection();
       BufferedReader isr = new BufferedReader(new InputStreamReader(con.getInputStream()));
       String s = isr.readLine();



More information about the jbossws-commits mailing list