Author: darran.lofthouse(a)jboss.com
Date: 2008-08-01 11:38:35 -0400 (Fri, 01 Aug 2008)
New Revision: 7989
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService.wsdl
Removed:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService14.wsdl
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService15.wsdl
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/java/org/jboss/test/ws/tools/enums/EnumTestCase.java
Log:
[JBPAPP-960] Fix testcase org.jboss.test.ws.tools.enums.EnumTestCase.
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/java/org/jboss/test/ws/tools/enums/EnumTestCase.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/java/org/jboss/test/ws/tools/enums/EnumTestCase.java 2008-08-01
15:06:07 UTC (rev 7988)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/java/org/jboss/test/ws/tools/enums/EnumTestCase.java 2008-08-01
15:38:35 UTC (rev 7989)
@@ -48,16 +48,7 @@
String[] args= new String[]{"-dest", "tools/enums",
"-config", config};
new WSTools().generate(args);
- Element exp;
- if (hasJDK15())
- {
- exp = DOMUtils.parse(new
FileInputStream("resources/tools/enums/EnumService15.wsdl"));
- }
- else
- {
- exp = DOMUtils.parse(new
FileInputStream("resources/tools/enums/EnumService14.wsdl"));
- }
-
+ Element exp = DOMUtils.parse(new
FileInputStream("resources/tools/enums/EnumService.wsdl"));
Element was = DOMUtils.parse(new
FileInputStream("tools/enums/wsdl/EnumService.wsdl"));
assertEquals(exp, was);
}
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService.wsdl
(from rev 7937,
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/tools/enums/EnumService.wsdl)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService.wsdl
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService.wsdl 2008-08-01
15:38:35 UTC (rev 7989)
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='EnumService'
targetNamespace='http://org.jboss.ws/enum'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:ns1='http://org.jboss.ws/enum/types'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://org.jboss.ws/enum'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types>
+ <schema targetNamespace='http://org.jboss.ws/enum/types'
xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:tns='http://org.jboss.ws/enum/types'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+ <simpleType name='EyeColor'>
+ <restriction base='string'>
+ <enumeration value='green'/>
+ <enumeration value='blue'/>
+ <enumeration value='hazel'/>
+ <enumeration value='brown'/>
+ </restriction>
+ </simpleType>
+ <simpleType name='PlanetMass'>
+ <restriction base='double'>
+ <enumeration value='3.303E23'/>
+ <enumeration value='4.869E24'/>
+ <enumeration value='5.976E24'/>
+ <enumeration value='6.421E23'/>
+ <enumeration value='1.9E27'/>
+ <enumeration value='5.688E26'/>
+ <enumeration value='8.686E25'/>
+ <enumeration value='1.0239999999999999E26'/>
+ <enumeration value='1.2700000000000001E22'/>
+ </restriction>
+ </simpleType>
+ <simpleType name='PlanetRadius'>
+ <restriction base='decimal'>
+ <enumeration value='2439700'/>
+ <enumeration value='6051800'/>
+ <enumeration value='6378140'/>
+ <enumeration value='3397200'/>
+ <enumeration value='71492000'/>
+ <enumeration value='60268000'/>
+ <enumeration value='25559000'/>
+ <enumeration value='24746000'/>
+ <enumeration value='1137000'/>
+ </restriction>
+ </simpleType>
+ </schema>
+ </types>
+ <message name='EnumEndpoint_echoEnum'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <part name='EyeColor_1' type='ns1:EyeColor'/>
+ </message>
+ <message name='EnumEndpoint_echoEnumResponse'>
+ <part name='result' type='ns1:EyeColor'/>
+ </message>
+ <message name='EnumEndpoint_echoPlanetMass'>
+ <part name='PlanetMass_1' type='ns1:PlanetMass'/>
+ </message>
+ <message name='EnumEndpoint_echoPlanetMassResponse'>
+ <part name='result' type='ns1:PlanetMass'/>
+ </message>
+ <message name='EnumEndpoint_echoPlanetRadius'>
+ <part name='PlanetRadius_1' type='ns1:PlanetRadius'/>
+ </message>
+ <message name='EnumEndpoint_echoPlanetRadiusResponse'>
+ <part name='result' type='ns1:PlanetMass'/>
+ </message>
+ <portType name='EnumEndpoint'>
+ <operation name='echoEnum' parameterOrder='EyeColor_1'>
+ <input message='tns:EnumEndpoint_echoEnum'/>
+ <output message='tns:EnumEndpoint_echoEnumResponse'/>
+ </operation>
+ <operation name='echoPlanetMass' parameterOrder='PlanetMass_1'>
+ <input message='tns:EnumEndpoint_echoPlanetMass'/>
+ <output message='tns:EnumEndpoint_echoPlanetMassResponse'/>
+ </operation>
+ <operation name='echoPlanetRadius'
parameterOrder='PlanetRadius_1'>
+ <input message='tns:EnumEndpoint_echoPlanetRadius'/>
+ <output message='tns:EnumEndpoint_echoPlanetRadiusResponse'/>
+ </operation>
+ </portType>
+ <binding name='EnumEndpointBinding' type='tns:EnumEndpoint'>
+ <soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='echoEnum'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
+ </input>
+ <output>
+ <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
+ </output>
+ </operation>
+ <operation name='echoPlanetMass'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
+ </input>
+ <output>
+ <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
+ </output>
+ </operation>
+ <operation name='echoPlanetRadius'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
+ </input>
+ <output>
+ <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='EnumService'>
+ <port binding='tns:EnumEndpointBinding' name='EnumEndpointPort'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService14.wsdl
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService14.wsdl 2008-08-01
15:06:07 UTC (rev 7988)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService14.wsdl 2008-08-01
15:38:35 UTC (rev 7989)
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions name='EnumService'
targetNamespace='http://org.jboss.ws/enum'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:ns1='http://org.jboss.ws/enum/types'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://org.jboss.ws/enum'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
- <types>
- <schema targetNamespace='http://org.jboss.ws/enum/types'
xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:tns='http://org.jboss.ws/enum/types'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
- <simpleType name='EyeColor'>
- <restriction base='string'>
- <enumeration value='green'/>
- <enumeration value='blue'/>
- <enumeration value='hazel'/>
- <enumeration value='brown'/>
- </restriction>
- </simpleType>
- <simpleType name='PlanetMass'>
- <restriction base='double'>
- <enumeration value='3.303E23'/>
- <enumeration value='4.869E24'/>
- <enumeration value='5.976E24'/>
- <enumeration value='6.421E23'/>
- <enumeration value='1.9E27'/>
- <enumeration value='5.688E26'/>
- <enumeration value='8.686E25'/>
- <enumeration value='1.0239999999999999E26'/>
- <enumeration value='1.2700000000000001E22'/>
- </restriction>
- </simpleType>
- <simpleType name='PlanetRadius'>
- <restriction base='decimal'>
- <enumeration value='2439700'/>
- <enumeration value='6051800'/>
- <enumeration value='6378140'/>
- <enumeration value='3397200'/>
- <enumeration value='71492000'/>
- <enumeration value='60268000'/>
- <enumeration value='25559000'/>
- <enumeration value='24746000'/>
- <enumeration value='1137000'/>
- </restriction>
- </simpleType>
- </schema>
- </types>
- <message name='EnumEndpoint_echoEnum'>
- <part name='EyeColor_1' type='ns1:EyeColor'/>
- </message>
- <message name='EnumEndpoint_echoEnumResponse'>
- <part name='result' type='ns1:EyeColor'/>
- </message>
- <message name='EnumEndpoint_echoPlanetMass'>
- <part name='PlanetMass_1' type='ns1:PlanetMass'/>
- </message>
- <message name='EnumEndpoint_echoPlanetMassResponse'>
- <part name='result' type='ns1:PlanetMass'/>
- </message>
- <message name='EnumEndpoint_echoPlanetRadius'>
- <part name='PlanetRadius_1' type='ns1:PlanetRadius'/>
- </message>
- <message name='EnumEndpoint_echoPlanetRadiusResponse'>
- <part name='result' type='ns1:PlanetMass'/>
- </message>
- <portType name='EnumEndpoint'>
- <operation name='echoEnum' parameterOrder='EyeColor_1'>
- <input message='tns:EnumEndpoint_echoEnum'/>
- <output message='tns:EnumEndpoint_echoEnumResponse'/>
- </operation>
- <operation name='echoPlanetMass' parameterOrder='PlanetMass_1'>
- <input message='tns:EnumEndpoint_echoPlanetMass'/>
- <output message='tns:EnumEndpoint_echoPlanetMassResponse'/>
- </operation>
- <operation name='echoPlanetRadius'
parameterOrder='PlanetRadius_1'>
- <input message='tns:EnumEndpoint_echoPlanetRadius'/>
- <output message='tns:EnumEndpoint_echoPlanetRadiusResponse'/>
- </operation>
- </portType>
- <binding name='EnumEndpointBinding' type='tns:EnumEndpoint'>
- <soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
- <operation name='echoEnum'>
- <soap:operation soapAction=''/>
- <input>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </input>
- <output>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </output>
- </operation>
- <operation name='echoPlanetMass'>
- <soap:operation soapAction=''/>
- <input>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </input>
- <output>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </output>
- </operation>
- <operation name='echoPlanetRadius'>
- <soap:operation soapAction=''/>
- <input>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </input>
- <output>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </output>
- </operation>
- </binding>
- <service name='EnumService'>
- <port binding='tns:EnumEndpointBinding' name='EnumEndpointPort'>
- <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
- </port>
- </service>
-</definitions>
\ No newline at end of file
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService15.wsdl
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService15.wsdl 2008-08-01
15:06:07 UTC (rev 7988)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/test/resources/tools/enums/EnumService15.wsdl 2008-08-01
15:38:35 UTC (rev 7989)
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions name='EnumService'
targetNamespace='http://org.jboss.ws/enum'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:ns1='http://org.jboss.ws/enum/types'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://org.jboss.ws/enum'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
- <types>
- <schema targetNamespace='http://org.jboss.ws/enum/types'
xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:tns='http://org.jboss.ws/enum/types'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
- <simpleType name='EyeColor'>
- <restriction base='string'>
- <enumeration value='green'/>
- <enumeration value='blue'/>
- <enumeration value='hazel'/>
- <enumeration value='brown'/>
- </restriction>
- </simpleType>
- <simpleType name='PlanetMass'>
- <restriction base='double'>
- <enumeration value='3.303E23'/>
- <enumeration value='4.869E24'/>
- <enumeration value='5.976E24'/>
- <enumeration value='6.421E23'/>
- <enumeration value='1.9E27'/>
- <enumeration value='5.688E26'/>
- <enumeration value='8.686E25'/>
- <enumeration value='1.0239999999999999E26'/>
- <enumeration value='1.2700000000000001E22'/>
- </restriction>
- </simpleType>
- <simpleType name='PlanetRadius'>
- <restriction base='decimal'>
- <enumeration value='2.4397E+6'/>
- <enumeration value='6.0518E+6'/>
- <enumeration value='6.37814E+6'/>
- <enumeration value='3.3972E+6'/>
- <enumeration value='7.1492E+7'/>
- <enumeration value='6.0268E+7'/>
- <enumeration value='2.5559E+7'/>
- <enumeration value='2.4746E+7'/>
- <enumeration value='1.137E+6'/>
- </restriction>
- </simpleType>
- </schema>
- </types>
- <message name='EnumEndpoint_echoEnum'>
- <part name='EyeColor_1' type='ns1:EyeColor'/>
- </message>
- <message name='EnumEndpoint_echoEnumResponse'>
- <part name='result' type='ns1:EyeColor'/>
- </message>
- <message name='EnumEndpoint_echoPlanetMass'>
- <part name='PlanetMass_1' type='ns1:PlanetMass'/>
- </message>
- <message name='EnumEndpoint_echoPlanetMassResponse'>
- <part name='result' type='ns1:PlanetMass'/>
- </message>
- <message name='EnumEndpoint_echoPlanetRadius'>
- <part name='PlanetRadius_1' type='ns1:PlanetRadius'/>
- </message>
- <message name='EnumEndpoint_echoPlanetRadiusResponse'>
- <part name='result' type='ns1:PlanetMass'/>
- </message>
- <portType name='EnumEndpoint'>
- <operation name='echoEnum' parameterOrder='EyeColor_1'>
- <input message='tns:EnumEndpoint_echoEnum'/>
- <output message='tns:EnumEndpoint_echoEnumResponse'/>
- </operation>
- <operation name='echoPlanetMass' parameterOrder='PlanetMass_1'>
- <input message='tns:EnumEndpoint_echoPlanetMass'/>
- <output message='tns:EnumEndpoint_echoPlanetMassResponse'/>
- </operation>
- <operation name='echoPlanetRadius'
parameterOrder='PlanetRadius_1'>
- <input message='tns:EnumEndpoint_echoPlanetRadius'/>
- <output message='tns:EnumEndpoint_echoPlanetRadiusResponse'/>
- </operation>
- </portType>
- <binding name='EnumEndpointBinding' type='tns:EnumEndpoint'>
- <soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
- <operation name='echoEnum'>
- <soap:operation soapAction=''/>
- <input>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </input>
- <output>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </output>
- </operation>
- <operation name='echoPlanetMass'>
- <soap:operation soapAction=''/>
- <input>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </input>
- <output>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </output>
- </operation>
- <operation name='echoPlanetRadius'>
- <soap:operation soapAction=''/>
- <input>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </input>
- <output>
- <soap:body namespace='http://org.jboss.ws/enum'
use='literal'/>
- </output>
- </operation>
- </binding>
- <service name='EnumService'>
- <port binding='tns:EnumEndpointBinding' name='EnumEndpointPort'>
- <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
- </port>
- </service>
-</definitions>
\ No newline at end of file