Author: pmacik(a)redhat.com
Date: 2010-03-09 05:48:17 -0500 (Tue, 09 Mar 2010)
New Revision: 11738
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDoc.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDocImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPC.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPCImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDoc.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDocImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPC.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPCImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/ComplexType.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringRPCTest.java
Modified:
framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/Runner.java
Log:
[JBQA-3163] ws performance test set extended
Modified: framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-03-09 10:14:13 UTC
(rev 11737)
+++ framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-03-09 10:48:17 UTC
(rev 11738)
@@ -8,884 +8,885 @@
<project>
- <description>JBossWS test archive builder</description>
+ <description>JBossWS test archive builder</description>
- <!-- ================================================================== -->
- <!-- Building -->
- <!-- ================================================================== -->
+ <!-- ================================================================== -->
+ <!-- Building -->
+ <!-- ================================================================== -->
- <target name="build-jars-jaxws" description="Build the
deployments.">
-
- <mkdir dir="${tests.output.dir}/test-libs"/>
-
- <!-- jaxws-anonymous -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-anonymous.war"
webxml="${tests.output.dir}/test-resources/jaxws/anonymous/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/anonymous/Anonymous.class"/>
- <include
name="org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.class"/>
- <include
name="org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.class"/>
- <include
name="org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-benchmark-basic -->
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-basic.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/benchmark/test/basic/Endpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/benchmark/test/basic/EndpointImpl.class"/>
- </fileset>
- </jar>
+ <target name="build-jars-jaxws" description="Build the
deployments.">
- <!-- jaxws-benchmark-basicdoclit -->
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-basicdoclit.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/benchmark/test/basicdoclit/Endpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/benchmark/test/basicdoclit/EndpointImpl.class"/>
- </fileset>
- </jar>
+ <mkdir dir="${tests.output.dir}/test-libs" />
- <!-- jaxws-benchmark-complex -->
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-complex.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/benchmark/test/complex/types/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/benchmark/test/complex/RegistrationServiceImpl.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-anonymous -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-anonymous.war"
webxml="${tests.output.dir}/test-resources/jaxws/anonymous/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/anonymous/Anonymous.class" />
+ <include name="org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.class" />
+ <include name="org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.class"
/>
+ </classes>
+ </war>
- <!-- jaxws-binding -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-binding.war"
webxml="${tests.output.dir}/test-resources/jaxws/binding/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/binding/SOAPEndpointBean.class"/>
- <include
name="org/jboss/test/ws/jaxws/binding/SOAPEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/binding/ServerHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/binding/jaxws-server-handlers.xml"/>
- </classes>
- </war>
-
- <!-- jaxws-classloading-service -->
- <jar
destfile="${tests.output.dir}/test-libs/jaxws-classloading-service.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/smoke/tools/service/HelloWorld.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-classloading-types -->
- <jar
destfile="${tests.output.dir}/test-libs/jaxws-classloading-types.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/smoke/tools/service/Message.class"/>
- <include
name="org/jboss/test/ws/jaxws/smoke/tools/service/Echo.class"/>
- <include
name="org/jboss/test/ws/jaxws/smoke/tools/service/EchoResponse.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-complex -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-complex.war"
webxml="${tests.output.dir}/test-resources/jaxws/complex/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/complex/*.class"/>
- <include name="org/jboss/test/ws/jaxws/complex/extra/*.class"/>
- <include name="org/jboss/test/ws/jaxws/complex/types/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/complex/*TestCase.class"/>
- </classes>
- </war>
+ <!-- jaxws-benchmark-basic -->
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-basic.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/benchmark/test/basic/Endpoint.class" />
+ <include
name="org/jboss/test/ws/jaxws/benchmark/test/basic/EndpointImpl.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-endpointReference -->
- <jar
destfile="${tests.output.dir}/test-libs/jaxws-endpointReference.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/endpointReference/Endpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/endpointReference/EndpointImpl.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-handlerscope -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-handlerscope.war"
webxml="${tests.output.dir}/test-resources/jaxws/handlerscope/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/handlerscope/SOAPEndpointBean.class"/>
- <include
name="org/jboss/test/ws/jaxws/handlerscope/SOAPEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/handlerscope/*ServerHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/handlerscope/ProtocolHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/handlerscope/jaxws-server-handlers.xml"/>
- </classes>
- </war>
-
- <!-- jaxws-holder -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-holder.war"
webxml="${tests.output.dir}/test-resources/jaxws/holder/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/holder/HolderServiceImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws860 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws860.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws860/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws860/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws860/*TestCase.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws860/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws944 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws944.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteHome.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws981 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws981.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws981/EJB3Bean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws981/EJB3RemoteInterface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws981/EndpointInterface.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1178 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1178.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1178/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1178/EndpointImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1190 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1190.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1190/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1190/ConfidentialEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1190/Endpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1190/EndpointImpl*.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1190/JBWS1190Exception.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1283 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1283.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1283/*.*"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1357 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1357.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1357/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1357/JBWS1357.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1357/JBWS1357Impl.class"/>
- </classes>
- <fileset dir="${tests.output.dir}/test-resources/jaxws/jbws1357">
- <include name="hello.jsp"/>
- </fileset>
- </war>
-
- <!-- jaxws-jbws1422 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1422.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1422/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1422/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1446 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1446.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1446/EJB3Bean.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1505 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1505.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1505/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1505/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1529 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1529.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1529/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1529/UserException.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1529/JBWS1529.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1529/JBWS1529Impl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1556 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1556.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1556/EJB3Bean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1556/UserType.class"/>
- </fileset>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1556.ear">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws1556.jar"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1556/META-INF">
- <include name="application.xml"/>
- <include name="jboss-app.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1566-->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1566.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1566/**/*.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1581 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1581-pojo.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1581/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1581/EndpointBean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1581/EndpointInterface.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1581/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1581.ear">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws1581-pojo.war"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1581/META-INF">
- <include name="jboss-app.xml"/>
- </metainf>
- </jar>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws1581-ejb3.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1581/EJB3Bean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1581/EJB3Remote.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1581/EndpointInterface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1581/EndpointService.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1581/META-INF">
- <include name="wsdl/**"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1611 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1611.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1611/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1611/PingEndpointImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1665 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1665.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1665/**/*.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-benchmark-datatypes -->
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-datatypes.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/benchmark/test/datatypes/**/*.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws1666 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1666.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1666/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1666/TestEndpointImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1694 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1694.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1694/**/*.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1702 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1702.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1702/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1702/**/*.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1702/WEB-INF"/>
- </war>
-
- <!-- jaxws-jbws1733 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1733.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1733/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1733/JBWS1733.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1797 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1797.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1797/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1797/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1797/*TestCase.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1798 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1798.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1798/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1798/**/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1798/*TestCase.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1798/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws1799 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1799.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1799/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1799/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1807 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1807.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1807/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1807/ProviderImpl.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1807/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws1813 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1813.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1813/META-INF">
- <include name="jboss.xml"/>
- </metainf>
- </jar>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1813.ear">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws1813.jar"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1813/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1815 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1815.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1815/ProviderImpl.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1815/META-INF">
- <include name="wsdl/my-service.wsdl"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1822 -->
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-shared.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanIface.class"/>
- </fileset>
- </jar>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb3-inside.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3Bean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3RemoteIface.class"/>
- </fileset>
- </jar>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb3-inside.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanIface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3Bean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3RemoteIface.class"/>
- </fileset>
- </jar>
- <ear
appxml="${tests.output.dir}/test-resources/jaxws/jbws1822/two-ejb-modules/META-INF/application.xml"
-
earfile="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb-modules.ear">
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1822/two-ejb-modules/META-INF">
- <include name="jboss-app.xml"/><!-- this fixes the problem
-->
- </metainf>
- <fileset
file="${tests.output.dir}/test-libs/jaxws-jbws1822-shared.jar"/>
- <fileset
file="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb3-inside.jar"/>
- </ear>
- <ear
appxml="${tests.output.dir}/test-resources/jaxws/jbws1822/one-ejb-module/META-INF/application.xml"
-
earfile="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb-module.ear">
- <fileset
file="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb3-inside.jar"/>
- </ear>
-
- <!-- jaxws-jbws1841 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1841.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1841/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1841/*TestCase.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1841/META-INF">
- <include name="wsdl/*"/>
- <include name="ejb-jar.xml"/>
- <include name="jboss.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1843 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1843.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1843/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1843/**/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1843/*TestCase.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1843/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws1845 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1845.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1845/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1845/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1854 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1854.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1854/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws1854/EndpointImpl.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1854/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1854.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws1854.war"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1854/META-INF">
- <include name="jboss-service.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1872 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1872.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1872/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1872/*TestCase.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1872/Client*.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1904 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1904.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1904/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1904/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1969 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1969.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1969/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws1969/*TestCase.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1969/META-INF">
- <include name="wsdl/**"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws2000 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2000.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2000/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2000/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws2009 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2009.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2009/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2009/**/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2009/*TestCase.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2009/WEB-INF">
- <include name="wsdl/**"/>
- <include name="schema/**"/>
- </webinf>
- </war>
+ <!-- jaxws-benchmark-basicdoclit -->
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-basicdoclit.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/benchmark/test/basicdoclit/Endpoint.class" />
+ <include
name="org/jboss/test/ws/jaxws/benchmark/test/basicdoclit/EndpointImpl.class"
/>
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2074 -->
- <war
warfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase1.war"
-
webxml="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase1/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/POJOIface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/POJOImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/handler/DescriptorResourcesHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/handler/JavaResourcesHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/jaxws-service-handlers.xml"/>
- </classes>
- </war>
- <jar
destfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase2.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase2/service/EJB3Iface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase2/service/EJB3Impl.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase2/META-INF">
- <include name="ejb-jar.xml"/>
- </metainf>
- </jar>
- <war
warfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase3.war"
-
webxml="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase3/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase3/service/POJOIface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase3/service/POJOImpl.class"/>
- </classes>
- </war>
- <jar
destfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase4.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/EJB3Iface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/EJB3Impl.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/handler/DescriptorResourcesHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/handler/JavaResourcesHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/jaxws-service-handlers.xml"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase4/META-INF">
- <include name="ejb-jar.xml"/>
- </metainf>
- </jar>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase1.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2074-usecase1.war"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase1-sar/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase2.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2074-usecase2.jar"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase2-sar/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase3.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2074-usecase3.war"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase3-sar/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
- <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase4.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2074-usecase4.jar"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase4-sar/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
+ <!-- jaxws-benchmark-complex -->
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-complex.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/benchmark/test/complex/types/*.class" />
+ <include
name="org/jboss/test/ws/jaxws/benchmark/test/complex/RegistrationServiceImpl.class"
/>
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2150 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2150.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2150/*Service*.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2150-sec.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF/web-sec.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2150/*Service*.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
+ <!-- jaxws-binding -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-binding.war"
webxml="${tests.output.dir}/test-resources/jaxws/binding/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/binding/SOAPEndpointBean.class"
/>
+ <include name="org/jboss/test/ws/jaxws/binding/SOAPEndpoint.class"
/>
+ <include name="org/jboss/test/ws/jaxws/binding/ServerHandler.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/binding/jaxws-server-handlers.xml" />
+ </classes>
+ </war>
- <!-- jaxws-jbws2183 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2183.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2183/**/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2183/**/*TestCase.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-classloading-service -->
+ <jar
destfile="${tests.output.dir}/test-libs/jaxws-classloading-service.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/smoke/tools/service/HelloWorld.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2218 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2218.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2218/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2218/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws2241 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2241.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2241/EJB3Bean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2241/EJB3RemoteInterface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2241/EndpointInterface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2241/EndpointService.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2241/META-INF">
- <include name="jboss.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws2250 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2250.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2250/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2250/**/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2250/*TestCase.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2250/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
-
- <!-- jbws2257 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2257.jar" >
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2257/Service*.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2257/jaxws/*.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2257/META-INF">
- <include name="wsdl/**"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws2278 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2278.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2278/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2278/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2278/JBWS2278TestCase.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2278/WEB-INF">
- <include name="jboss-web.xml"/>
- <include name="wsdl/*"/>
- </webinf>
- </war>
-
- <!-- jbws2307 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2307-client.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-client/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2307/ClientServlet.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2307/Hello.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2307/HelloService.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-client">
- <include name="wsdl/**"/>
- <include name="*.xml"/>
- </webinf>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2307-service.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-service/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2307/Hello.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2307/HelloImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2307/HelloService.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-service">
- <include name="wsdl/**"/>
- <include name="*.xml"/>
- </webinf>
- </war>
+ <!-- jaxws-classloading-types -->
+ <jar
destfile="${tests.output.dir}/test-libs/jaxws-classloading-types.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/smoke/tools/service/Message.class" />
+ <include name="org/jboss/test/ws/jaxws/smoke/tools/service/Echo.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/smoke/tools/service/EchoResponse.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2412 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2412.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2412/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2412/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2412/*TestCase.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2412/WEB-INF">
- <include name="wsdl/*"/>
- </webinf>
- </war>
+ <!-- jaxws-complex -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-complex.war"
webxml="${tests.output.dir}/test-resources/jaxws/complex/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/complex/*.class" />
+ <include name="org/jboss/test/ws/jaxws/complex/extra/*.class" />
+ <include name="org/jboss/test/ws/jaxws/complex/types/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/complex/*TestCase.class" />
+ </classes>
+ </war>
- <!-- jaxws-jbws2419 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2419.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2419/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2419/WEB-INF">
- <include name="wsdl/*"/>
- </webinf>
- </war>
+ <!-- jaxws-endpointReference -->
+ <jar
destfile="${tests.output.dir}/test-libs/jaxws-endpointReference.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/endpointReference/Endpoint.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/endpointReference/EndpointImpl.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2449 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2449.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2449/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2449/*TestCase.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2449/META-INF">
- <include name="wsdl/*"/>
- </metainf>
- </jar>
-
- <!-- jbws2527 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2527-client.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-client/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2527/ClientServlet.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2527/Hello.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2527/HelloService.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-client">
- <include name="wsdl/**"/>
- <include name="*.xml"/>
- </webinf>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2527-service.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-service/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2527/Hello.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2527/HelloImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2527/HelloService.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-service">
- <include name="wsdl/**"/>
- <include name="*.xml"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws2630 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2630-service.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2630/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2630/Endpoint*.class"/>
- </classes>
- </war>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2630.jar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2630-service.war"/>
- </fileset>
- </jar>
+ <!-- jaxws-handlerscope -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-handlerscope.war"
webxml="${tests.output.dir}/test-resources/jaxws/handlerscope/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/handlerscope/SOAPEndpointBean.class" />
+ <include name="org/jboss/test/ws/jaxws/handlerscope/SOAPEndpoint.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/handlerscope/*ServerHandler.class" />
+ <include
name="org/jboss/test/ws/jaxws/handlerscope/ProtocolHandler.class" />
+ <include
name="org/jboss/test/ws/jaxws/handlerscope/jaxws-server-handlers.xml" />
+ </classes>
+ </war>
- <!-- jaxws-jbws2634 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2634.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2634/shared/*.class"/>
- </fileset>
- </jar>
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2634-pojo.war"
-
webxml="${tests.output.dir}/test-resources/jaxws/jbws2634/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/POJOBean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/EndpointIface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/AbstractEndpointImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2634/shared/handlers/TestHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/jaxws-handler.xml"/>
- </classes>
- </war>
- <jar
destfile="${tests.output.dir}/test-libs/jaxws-jbws2634-ejb3.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/EJB3Bean.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/EndpointIface.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/AbstractEndpointImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2634/shared/handlers/TestHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/jaxws-handler.xml"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2634/META-INF">
- <include name="ejb-jar.xml"/>
- </metainf>
- </jar>
- <ear
appxml="${tests.output.dir}/test-resources/jaxws/jbws2634/META-INF/application.xml"
- earfile="${tests.output.dir}/test-libs/jaxws-jbws2634.ear">
- <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634.jar"/>
- <fileset
file="${tests.output.dir}/test-libs/jaxws-jbws2634-ejb3.jar"/>
- <fileset
file="${tests.output.dir}/test-libs/jaxws-jbws2634-pojo.war"/>
- </ear>
-
- <!-- jaxws-jbws2701 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2701.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2701/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2701/*TestCase.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-holder -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-holder.war"
webxml="${tests.output.dir}/test-resources/jaxws/holder/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/holder/HolderServiceImpl.class"
/>
+ </classes>
+ </war>
- <!-- jaxws-jbws2717 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2717.war"
-
webxml="${tests.output.dir}/test-resources/jaxws/jbws2717/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2717/EndpointImpl.class"/>
- </classes>
- </war>
+ <!-- jaxws-jbws860 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws860.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws860/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws860/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws860/*TestCase.class" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws860/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
- <!-- jaxws-jbws2718 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2718.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2718/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2718/**/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2718/*TestCase.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2718/WEB-INF">
- <include name="wsdl1/**"/>
- </webinf>
- </war>
+ <!-- jaxws-jbws944 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws944.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteHome.class"
/>
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2934 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2934.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2934/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2934/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2934/EndpointEJB.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2934/*TestCase*.class"/>
- </classes>
- </war>
+ <!-- jaxws-jbws981 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws981.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws981/EJB3Bean.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws981/EJB3RemoteInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws981/EndpointInterface.class"
/>
+ </fileset>
+ </jar>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2934.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2934/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2934/EndpointJSE.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2934/*TestCase*.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-jbws1178 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1178.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1178/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1178/EndpointImpl.class"
/>
+ </classes>
+ </war>
- <!-- jaxws-jbws2937 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2937.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/jbws2937/EndpointImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/jbws2937/UserType.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-jbws1190 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1190.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1190/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws1190/ConfidentialEndpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1190/Endpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1190/EndpointImpl*.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws1190/JBWS1190Exception.class"
/>
+ </classes>
+ </war>
- <jar
destfile="${tests.output.dir}/test-libs/jaxws-jbws2937-client.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2937/*.class"/>
- <exclude
name="org/jboss/test/ws/jaxws/jbws2937/EndpointImpl.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-jbws1283 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1283.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1283/*.*" />
+ </fileset>
+ </jar>
- <!-- jaxws namespace -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-namespace.war"
webxml="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/namespace/CustomHandler.class"/>
- <include
name="org/jboss/test/ws/jaxws/namespace/EndpointBean.class"/>
- <include
name="org/jboss/test/ws/jaxws/namespace/EndpointInterface.class"/>
- <include name="org/jboss/test/ws/jaxws/namespace/*.xml"/>
- </classes>
- <webinf
dir="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
-
- <!-- jaxws-webfault -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-webfault.war"
webxml="${tests.output.dir}/test-resources/jaxws/webfault/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/webfault/Endpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/webfault/EndpointImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/webfault/CustomException.class"/>
- <include
name="org/jboss/test/ws/jaxws/webfault/SimpleException.class"/>
- </classes>
- </war>
-
- <!-- jaxws-wrapped-accessor -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-wrapped-accessor.war"
webxml="${tests.output.dir}/test-resources/jaxws/wrapped/accessor/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include
name="org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.class"/>
- <include
name="org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/*"/>
- </classes>
- </war>
-
- <!-- Please add alphabetically -->
+ <!-- jaxws-jbws1357 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1357.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1357/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1357/JBWS1357.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1357/JBWS1357Impl.class"
/>
+ </classes>
+ <fileset dir="${tests.output.dir}/test-resources/jaxws/jbws1357">
+ <include name="hello.jsp" />
+ </fileset>
+ </war>
- </target>
+ <!-- jaxws-jbws1422 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1422.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1422/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1422/*TestCase.class" />
+ </fileset>
+ </jar>
+ <!-- jaxws-jbws1446 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1446.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1446/EJB3Bean.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1505 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1505.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1505/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1505/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1529 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1529.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1529/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1529/UserException.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws1529/JBWS1529.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1529/JBWS1529Impl.class"
/>
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1556 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1556.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1556/EJB3Bean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1556/UserType.class" />
+ </fileset>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1556.ear">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws1556.jar" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1556/META-INF">
+ <include name="application.xml" />
+ <include name="jboss-app.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1566-->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1566.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1566/**/*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1581 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1581-pojo.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1581/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointBean.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointInterface.class"
/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1581/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1581.ear">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws1581-pojo.war" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1581/META-INF">
+ <include name="jboss-app.xml" />
+ </metainf>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1581-ejb3.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EJB3Bean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EJB3Remote.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointInterface.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointService.class"
/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1581/META-INF">
+ <include name="wsdl/**" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1611 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1611.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1611/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1611/PingEndpointImpl.class"
/>
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1665 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1665.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1665/**/*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1666 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1666.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1666/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1666/TestEndpointImpl.class"
/>
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1694 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1694.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1694/**/*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1702 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1702.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1702/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1702/**/*.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1702/WEB-INF"
/>
+ </war>
+
+ <!-- jaxws-jbws1733 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1733.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1733/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1733/JBWS1733.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.class"
/>
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1797 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1797.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1797/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1797/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1797/*TestCase.class" />
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1798 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1798.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1798/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1798/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1798/*TestCase.class" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1798/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws1799 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1799.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1799/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1799/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1807 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1807.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1807/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1807/ProviderImpl.class"
/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1807/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws1813 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1813.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.class"
/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1813/META-INF">
+ <include name="jboss.xml" />
+ </metainf>
+ </jar>
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1813.ear">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws1813.jar" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1813/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1815 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1815.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1815/ProviderImpl.class"
/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1815/META-INF">
+ <include name="wsdl/my-service.wsdl" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1822 -->
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-shared.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanImpl.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanIface.class"
/>
+ </fileset>
+ </jar>
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb3-inside.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3Bean.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3RemoteIface.class" />
+ </fileset>
+ </jar>
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb3-inside.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanImpl.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanIface.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3Bean.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3RemoteIface.class" />
+ </fileset>
+ </jar>
+ <ear
appxml="${tests.output.dir}/test-resources/jaxws/jbws1822/two-ejb-modules/META-INF/application.xml"
earfile="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb-modules.ear">
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1822/two-ejb-modules/META-INF">
+ <include name="jboss-app.xml" />
+ <!-- this fixes the problem -->
+ </metainf>
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws1822-shared.jar"
/>
+ <fileset
file="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb3-inside.jar" />
+ </ear>
+ <ear
appxml="${tests.output.dir}/test-resources/jaxws/jbws1822/one-ejb-module/META-INF/application.xml"
earfile="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb-module.ear">
+ <fileset
file="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb3-inside.jar" />
+ </ear>
+
+ <!-- jaxws-jbws1841 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1841.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1841/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1841/*TestCase.class" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1841/META-INF">
+ <include name="wsdl/*" />
+ <include name="ejb-jar.xml" />
+ <include name="jboss.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1843 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1843.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1843/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1843/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1843/*TestCase.class" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1843/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws1845 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1845.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1845/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1845/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1854 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1854.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws1854/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1854/EndpointImpl.class"
/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws1854/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1854.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws1854.war" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1854/META-INF">
+ <include name="jboss-service.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1872 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1872.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1872/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1872/*TestCase.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1872/Client*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1904 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1904.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1904/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1904/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1969 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1969.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1969/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1969/*TestCase.class" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1969/META-INF">
+ <include name="wsdl/**" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws2000 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2000.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2000/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2000/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2009 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2009.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2009/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2009/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2009/*TestCase.class" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2009/WEB-INF">
+ <include name="wsdl/**" />
+ <include name="schema/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2074 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase1.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase1/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/POJOIface.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/POJOImpl.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/handler/DescriptorResourcesHandler.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/handler/JavaResourcesHandler.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/jaxws-service-handlers.xml"
/>
+ </classes>
+ </war>
+ <jar
destfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase2.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase2/service/EJB3Iface.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase2/service/EJB3Impl.class" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase2/META-INF">
+ <include name="ejb-jar.xml" />
+ </metainf>
+ </jar>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase3.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase3/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase3/service/POJOIface.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase3/service/POJOImpl.class" />
+ </classes>
+ </war>
+ <jar
destfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase4.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/EJB3Iface.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/EJB3Impl.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/handler/DescriptorResourcesHandler.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/handler/JavaResourcesHandler.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/jaxws-service-handlers.xml"
/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase4/META-INF">
+ <include name="ejb-jar.xml" />
+ </metainf>
+ </jar>
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase1.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2074-usecase1.war" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase1-sar/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase2.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2074-usecase2.jar" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase2-sar/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase3.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2074-usecase3.war" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase3-sar/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase4.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2074-usecase4.jar" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase4-sar/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws2150 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2150.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2150/*Service*.class" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2150-sec.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF/web-sec.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2150/*Service*.class" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2183 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2183.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2183/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2183/**/*TestCase.class"
/>
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2218 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2218.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2218/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2218/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2241 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2241.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2241/EJB3Bean.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2241/EJB3RemoteInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2241/EndpointInterface.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws2241/EndpointService.class"
/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2241/META-INF">
+ <include name="jboss.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws2250 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2250.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2250/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2250/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2250/*TestCase.class" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2250/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
+
+ <!-- jbws2257 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2257.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2257/Service*.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2257/jaxws/*.class" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2257/META-INF">
+ <include name="wsdl/**" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws2278 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2278.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2278/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2278/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2278/JBWS2278TestCase.class"
/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2278/WEB-INF">
+ <include name="jboss-web.xml" />
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
+ <!-- jbws2307 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2307-client.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-client/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2307/ClientServlet.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws2307/Hello.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2307/HelloService.class"
/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-client">
+ <include name="wsdl/**" />
+ <include name="*.xml" />
+ </webinf>
+ </war>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2307-service.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-service/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2307/Hello.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2307/HelloImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2307/HelloService.class"
/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-service">
+ <include name="wsdl/**" />
+ <include name="*.xml" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2412 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2412.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2412/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2412/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2412/*TestCase.class" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2412/WEB-INF">
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2419 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2419.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2419/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2419/WEB-INF">
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2449 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2449.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2449/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2449/*TestCase.class" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2449/META-INF">
+ <include name="wsdl/*" />
+ </metainf>
+ </jar>
+
+ <!-- jbws2527 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2527-client.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-client/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2527/ClientServlet.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws2527/Hello.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2527/HelloService.class"
/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-client">
+ <include name="wsdl/**" />
+ <include name="*.xml" />
+ </webinf>
+ </war>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2527-service.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-service/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2527/Hello.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2527/HelloImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2527/HelloService.class"
/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-service">
+ <include name="wsdl/**" />
+ <include name="*.xml" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2630 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2630-service.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2630/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2630/Endpoint*.class" />
+ </classes>
+ </war>
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2630.jar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2630-service.war" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2634 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2634.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2634/shared/*.class" />
+ </fileset>
+ </jar>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2634-pojo.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2634/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/POJOBean.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/EndpointIface.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/AbstractEndpointImpl.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/shared/handlers/TestHandler.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/jaxws-handler.xml" />
+ </classes>
+ </war>
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2634-ejb3.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/EJB3Bean.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/EndpointIface.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/AbstractEndpointImpl.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/shared/handlers/TestHandler.class" />
+ <include
name="org/jboss/test/ws/jaxws/jbws2634/webservice/jaxws-handler.xml" />
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws2634/META-INF">
+ <include name="ejb-jar.xml" />
+ </metainf>
+ </jar>
+ <ear
appxml="${tests.output.dir}/test-resources/jaxws/jbws2634/META-INF/application.xml"
earfile="${tests.output.dir}/test-libs/jaxws-jbws2634.ear">
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634.jar" />
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634-ejb3.jar"
/>
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634-pojo.war"
/>
+ </ear>
+
+ <!-- jaxws-jbws2701 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2701.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2701/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2701/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2717 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2717.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2717/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2717/EndpointImpl.class"
/>
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws2718 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2718.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2718/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2718/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2718/*TestCase.class" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2718/WEB-INF">
+ <include name="wsdl1/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2934 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2934.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2934/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2934/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2934/EndpointEJB.class"
/>
+ <exclude name="org/jboss/test/ws/jaxws/jbws2934/*TestCase*.class" />
+ </classes>
+ </war>
+
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2934.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2934/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2934/EndpointJSE.class"
/>
+ <exclude name="org/jboss/test/ws/jaxws/jbws2934/*TestCase*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2937 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2937.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2937/EndpointImpl.class"
/>
+ <include name="org/jboss/test/ws/jaxws/jbws2937/UserType.class" />
+ </fileset>
+ </jar>
+
+ <jar
destfile="${tests.output.dir}/test-libs/jaxws-jbws2937-client.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2937/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2937/EndpointImpl.class"
/>
+ </fileset>
+ </jar>
+
+ <!-- jaxws namespace -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-namespace.war"
webxml="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/namespace/CustomHandler.class"
/>
+ <include name="org/jboss/test/ws/jaxws/namespace/EndpointBean.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/namespace/EndpointInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/namespace/*.xml" />
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-webfault -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-webfault.war"
webxml="${tests.output.dir}/test-resources/jaxws/webfault/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/webfault/Endpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/webfault/EndpointImpl.class"
/>
+ <include name="org/jboss/test/ws/jaxws/webfault/CustomException.class"
/>
+ <include name="org/jboss/test/ws/jaxws/webfault/SimpleException.class"
/>
+ </classes>
+ </war>
+
+ <!-- jaxws-wrapped-accessor -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-wrapped-accessor.war"
webxml="${tests.output.dir}/test-resources/jaxws/wrapped/accessor/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.class"
/>
+ <include
name="org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/*" />
+ </classes>
+ </war>
+
+ <!-- Please add alphabetically -->
+
+ </target>
+
</project>
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/Runner.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/Runner.java 2010-03-09
10:14:13 UTC (rev 11737)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/Runner.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -25,6 +25,8 @@
import gnu.getopt.LongOpt;
import java.io.PrintStream;
+import java.text.DecimalFormat;
+import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -43,32 +45,35 @@
*/
public class Runner
{
-
+
private static int threadCount = 5;
private static int runs = 10;
private static int iterations = 10;
-
+
private static long sleep = 1500;
-
+
private static boolean verbose = false;
-
+
private static String address = "localhost:8080";
-
-
- public static class BenchmarkCallable implements Callable<Result> {
+ public static class BenchmarkCallable implements Callable<Result>
+ {
+
private final BenchmarkTest test;
+
private int iterations;
+
private String id;
-
- public BenchmarkCallable(String id, BenchmarkTest test, int iterations) {
+
+ public BenchmarkCallable(String id, BenchmarkTest test, int iterations)
+ {
this.test = test;
this.iterations = iterations;
this.id = id;
}
-
+
public Result call() throws Exception
{
Result result = new Result(id);
@@ -93,21 +98,18 @@
return result;
}
}
-
+
private static BenchmarkTest parseArguments(String[] args) throws Exception
{
String shortOpts = "t:r:s:i:a:vh";
LongOpt[] longOpts =
- {
- new LongOpt("deployment", LongOpt.REQUIRED_ARGUMENT, null,
'd'),
- new LongOpt("threads", LongOpt.REQUIRED_ARGUMENT, null, 't'),
- new LongOpt("runs", LongOpt.REQUIRED_ARGUMENT, null, 'r'),
- new LongOpt("sleep", LongOpt.REQUIRED_ARGUMENT, null, 's'),
- new LongOpt("iterations", LongOpt.REQUIRED_ARGUMENT, null,
'i'),
- new LongOpt("address", LongOpt.REQUIRED_ARGUMENT, null, 'a'),
- new LongOpt("verbose", LongOpt.NO_ARGUMENT, null, 'v'),
- new LongOpt("help", LongOpt.NO_ARGUMENT, null, 'h')
- };
+ {new LongOpt("deployment", LongOpt.REQUIRED_ARGUMENT, null,
'd'),
+ new LongOpt("threads", LongOpt.REQUIRED_ARGUMENT, null,
't'),
+ new LongOpt("runs", LongOpt.REQUIRED_ARGUMENT, null, 'r'),
+ new LongOpt("sleep", LongOpt.REQUIRED_ARGUMENT, null,
's'),
+ new LongOpt("iterations", LongOpt.REQUIRED_ARGUMENT, null,
'i'),
+ new LongOpt("address", LongOpt.REQUIRED_ARGUMENT, null,
'a'),
+ new LongOpt("verbose", LongOpt.NO_ARGUMENT, null, 'v'), new
LongOpt("help", LongOpt.NO_ARGUMENT, null, 'h')};
Getopt getopt = new Getopt("Benchmark-runner", args, shortOpts,
longOpts);
int c;
@@ -115,32 +117,32 @@
{
switch (c)
{
- case 't':
+ case 't' :
threadCount = Integer.parseInt(getopt.getOptarg());
break;
- case 'r':
+ case 'r' :
runs = Integer.parseInt(getopt.getOptarg());
break;
- case 's':
+ case 's' :
sleep = Long.parseLong(getopt.getOptarg());
break;
- case 'i':
+ case 'i' :
iterations = Integer.parseInt(getopt.getOptarg());
break;
- case 'a':
+ case 'a' :
address = getopt.getOptarg();
break;
- case 'v':
+ case 'v' :
verbose = true;
break;
- case 'h':
+ case 'h' :
printHelp();
System.exit(0);
- case '?':
+ case '?' :
System.exit(1);
}
}
-
+
int classPos = getopt.getOptind();
if (classPos >= args.length)
{
@@ -148,14 +150,14 @@
printHelp();
System.exit(1);
}
-
+
try
{
Class<?> clazz = Class.forName(args[classPos]);
System.out.println(BenchmarkTest.class.isAssignableFrom(clazz));
System.out.println(clazz.isAssignableFrom(BenchmarkTest.class));
- return (BenchmarkTest)clazz.newInstance();
+ return (BenchmarkTest) clazz.newInstance();
}
catch (Exception e)
{
@@ -163,7 +165,7 @@
throw e;
}
}
-
+
private static void printHelp()
{
PrintStream out = System.out;
@@ -185,8 +187,10 @@
*/
public static void main(String[] args) throws Exception
{
+ NumberFormat speedForm = new DecimalFormat("0.00");
+
BenchmarkTest test = parseArguments(args);
-
+
// Workaround for JBWS-2681
test.prepare();
@@ -231,15 +235,17 @@
failed = failed + result.getFailures();
if (verbose)
{
- System.out.println(result.getId() + " -> " +
result.getAverageProcessingTime() + " ms/iteration, " + subtotal + "
iterations, " + result.getFailures()
- + " failures, " + result.getPreparationTime() + " ms
of preparation.");
+ System.out.println(result.getId() + " -> " +
result.getAverageProcessingTime() + " ms/iteration, "
+ + subtotal + " iterations, " + result.getFailures() +
" failures, " + result.getPreparationTime()
+ + " ms of preparation.");
}
}
+
System.out.println();
System.out.println("----------- RUN STATS -------------");
System.out.println("Iterations: " + currentRunIterations);
System.out.println("Total processing time: " + currentRunProcTime +
" ms");
- System.out.println("Iterations/sec: " + 1000 * currentRunIterations /
currentRunProcTime);
+ System.out.println("Iterations/sec: " + speedForm.format(1000f *
currentRunIterations / currentRunProcTime));
System.out.println("------------------------------------");
System.out.println();
}
@@ -247,11 +253,11 @@
System.out.println("Iterations: " + total);
System.out.println("Failures: " + failed);
System.out.println("Total processing time: " + procTime + "
ms");
- System.out.println("Iterations/sec: " + 1000 * total / procTime);
+ System.out.println("Iterations/sec: " + speedForm.format(1000f * total /
procTime));
System.out.println("------------------------------------");
-
+
}
-
+
public static String getServerAddress()
{
return address;
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.Runner;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public abstract class DataTypesDocTest implements BenchmarkTest
+{
+ protected String endpointURL = "http://" + Runner.getServerAddress() +
"/jaxws-benchmark-datatypes/EndpointDocImpl";
+
+ protected String targetNS =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/";
+
+ public Object prepare() throws Exception
+ {
+ URL wsdlURL = new URL(endpointURL + "?wsdl");
+ QName serviceName = new QName(targetNS, "EndpointDocService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(EndpointDoc.class);
+ }
+
+ public abstract void performIteration(Object port) throws Exception;
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.Runner;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public abstract class DataTypesRPCTest implements BenchmarkTest
+{
+ protected String endpointURL = "http://" + Runner.getServerAddress() +
"/jaxws-benchmark-datatypes/EndpointRPCImpl";
+
+ protected String targetNS =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/";
+
+ public Object prepare() throws Exception
+ {
+ URL wsdlURL = new URL(endpointURL + "?wsdl");
+ QName serviceName = new QName(targetNS, "EndpointRPCService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(EndpointRPC.class);
+ }
+
+ public abstract void performIteration(Object port) throws Exception;
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.Runner;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public abstract class DataTypesWrappedDocTest implements BenchmarkTest
+{
+ protected String endpointURL = "http://" + Runner.getServerAddress()
+ + "/jaxws-benchmark-datatypes/EndpointWrappedDocImpl";
+
+ protected String targetNS =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/";
+
+ public Object prepare() throws Exception
+ {
+ URL wsdlURL = new URL(endpointURL + "?wsdl");
+ QName serviceName = new QName(targetNS, "EndpointWrappedDocService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(EndpointWrappedDoc.class);
+ }
+
+ public abstract void performIteration(Object port) throws Exception;
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.Runner;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public abstract class DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ protected String endpointURL = "http://" + Runner.getServerAddress()
+ + "/jaxws-benchmark-datatypes/EndpointWrappedRPCImpl";
+
+ protected String targetNS =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/";
+
+ public Object prepare() throws Exception
+ {
+ URL wsdlURL = new URL(endpointURL + "?wsdl");
+ QName serviceName = new QName(targetNS, "EndpointWrappedRPCService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(EndpointWrappedRPC.class);
+ }
+
+ public abstract void performIteration(Object port) throws Exception;
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDoc.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDoc.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDoc.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(name = "EndpointDoc", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
+public interface EndpointDoc
+{
+
+ @WebMethod(operationName = "sayHello", action = "urn:SayHello")
+ public String sayHello(String toWhom);
+
+ @WebMethod(operationName = "increaseBigDecimal", action =
"urn:IncreaseBigDecimal")
+ public BigDecimal increaseBigDecimal(BigDecimal value);
+
+ @WebMethod(operationName = "negateBoolean", action =
"urn:NegateBoolean")
+ public boolean negateBoolean(boolean value);
+
+ @WebMethod(operationName = "increaseByte", action =
"urn:IncreaseByte")
+ public byte increaseByte(byte value);
+
+ @WebMethod(operationName = "reverseByteOrder", action =
"urn:ReverseByteOrder")
+ public byte[] reverseByteOrder(byte[] data);
+
+ @WebMethod(operationName = "getCalendarPlusDay", action =
"urn:GetCalendarPlusDay")
+ public Calendar getCalendarPlusDay(Calendar calendar);
+
+ @WebMethod(operationName = "getDatePlusDay", action =
"urn:GetDatePlusDay")
+ public Date getDatePlusDay(Date date);
+
+ @WebMethod(operationName = "increaseDouble", action =
"urn:IncreaseDouble")
+ public double increaseDouble(double value);
+
+ @WebMethod(operationName = "increaseFloat", action =
"urn:IncreaseFloat")
+ public float increaseFloat(float value);
+
+ @WebMethod(operationName = "increaseInt", action =
"urn:IncreaseInt")
+ public int increaseInt(int value);
+
+ @WebMethod(operationName = "increaseLong", action =
"urn:IncreaseLong")
+ public long increaseLong(long value);
+
+ @WebMethod(operationName = "modifyQName", action =
"urn:ModifyQName")
+ public QName modifyQName(QName value);
+
+ @WebMethod(operationName = "increaseShort", action =
"urn:IncreaseShort")
+ public short increaseShort(short value);
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDocImpl.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDocImpl.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDocImpl.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,127 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.io.IOException;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+import javax.jws.WebParam;
+import javax.jws.WebService; //import javax.jws.soap.SOAPBinding;
+import javax.xml.namespace.QName;
+
+//import org.jboss.logging.Logger;
+
+import javax.ejb.Stateless;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(serviceName = "EndpointDocService", portName =
"EndpointDocPort", endpointInterface =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc")
+@Stateless
+public class EndpointDocImpl
+{
+ // Provide logging
+ // private static Logger log = Logger.getLogger(EndpointRPCImpl.class);
+
+ public String sayHello(@WebParam(name = "toWhom") String toWhom)
+ {
+ String greeting = "Hello World Greeting for '" + toWhom + "'
today";
+ return greeting;
+ }
+
+ public BigDecimal increaseBigDecimal(@WebParam(name = "value") BigDecimal
value)
+ {
+ return value.add(new BigDecimal(1));
+ }
+
+ public boolean negateBoolean(@WebParam(name = "value") boolean value)
+ {
+ return !value;
+ }
+
+ public byte increaseByte(@WebParam(name = "value") byte value)
+ {
+ return (byte) (value + 1);
+ }
+
+ public byte[] reverseByteOrder(@WebParam(name = "data") byte[] data) throws
IOException
+ {
+ byte[] retVal = new byte[data.length];
+ for (int i = 0; i < data.length; i++)
+ {
+ retVal[i] = data[data.length - 1 - i];
+ }
+ return retVal;
+ }
+
+ public Calendar getCalendarPlusDay(@WebParam(name = "calendar") Calendar
calendar)
+ {
+ Calendar retVal = new GregorianCalendar();
+ retVal.setTimeInMillis(calendar.getTimeInMillis() + 86400000L);
+ return retVal;
+ }
+
+ public Date getDatePlusDay(@WebParam(name = "date") Date date)
+ {
+ return new Date(date.getTime() + 86400000L);
+ }
+
+ public double increaseDouble(@WebParam(name = "value") double value)
+ {
+ return value + 1;
+ }
+
+ public float increaseFloat(@WebParam(name = "value") float value)
+ {
+ return value + 1;
+ }
+
+ public int increaseInt(@WebParam(name = "value") int value)
+ {
+ return value + 1;
+ }
+
+ public long increaseLong(@WebParam(name = "value") long value)
+ {
+ return value + 1L;
+ }
+
+ public QName modifyQName(@WebParam(name = "value") QName value)
+ {
+ String modString = "_modified";
+ String prefix = value.getPrefix();
+ String uri = value.getNamespaceURI();
+ String localPart = value.getLocalPart() + modString;
+ QName retVal = new QName(uri, localPart, prefix);
+ return retVal;
+ }
+
+ public short increaseShort(@WebParam(name = "value") short value)
+ {
+ return (short) (value + 1);
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPC.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPC.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPC.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(name = "EndpointRPC", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface EndpointRPC
+{
+
+ @WebMethod(operationName = "sayHello", action = "urn:SayHello")
+ public String sayHello(String toWhom);
+
+ @WebMethod(operationName = "increaseBigDecimal", action =
"urn:IncreaseBigDecimal")
+ public BigDecimal increaseBigDecimal(BigDecimal value);
+
+ @WebMethod(operationName = "negateBoolean", action =
"urn:NegateBoolean")
+ public boolean negateBoolean(boolean value);
+
+ @WebMethod(operationName = "increaseByte", action =
"urn:IncreaseByte")
+ public byte increaseByte(byte value);
+
+ @WebMethod(operationName = "reverseByteOrder", action =
"urn:ReverseByteOrder")
+ public byte[] reverseByteOrder(byte[] data);
+
+ @WebMethod(operationName = "getCalendarPlusDay", action =
"urn:GetCalendarPlusDay")
+ public Calendar getCalendarPlusDay(Calendar calendar);
+
+ @WebMethod(operationName = "getDatePlusDay", action =
"urn:GetDatePlusDay")
+ public Date getDatePlusDay(Date date);
+
+ @WebMethod(operationName = "increaseDouble", action =
"urn:IncreaseDouble")
+ public double increaseDouble(double value);
+
+ @WebMethod(operationName = "increaseFloat", action =
"urn:IncreaseFloat")
+ public float increaseFloat(float value);
+
+ @WebMethod(operationName = "increaseInt", action =
"urn:IncreaseInt")
+ public int increaseInt(int value);
+
+ @WebMethod(operationName = "increaseLong", action =
"urn:IncreaseLong")
+ public long increaseLong(long value);
+
+ @WebMethod(operationName = "modifyQName", action =
"urn:ModifyQName")
+ public QName modifyQName(QName value);
+
+ @WebMethod(operationName = "increaseShort", action =
"urn:IncreaseShort")
+ public short increaseShort(short value);
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPCImpl.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPCImpl.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPCImpl.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,126 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+import javax.jws.WebParam;
+import javax.jws.WebService; //import javax.jws.soap.SOAPBinding;
+import javax.xml.namespace.QName;
+
+//import org.jboss.logging.Logger;
+
+import javax.ejb.Stateless;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(serviceName = "EndpointRPCService", portName =
"EndpointRPCPort", endpointInterface =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC")
+@Stateless
+public class EndpointRPCImpl
+{
+ // Provide logging
+ // private static Logger log = Logger.getLogger(EndpointRPCImpl.class);
+
+ public String sayHello(@WebParam(name = "toWhom") String toWhom)
+ {
+ String greeting = "Hello World Greeting for '" + toWhom + "'
today";
+ return greeting;
+ }
+
+ public BigDecimal increaseBigDecimal(@WebParam(name = "value") BigDecimal
value)
+ {
+ return value.add(new BigDecimal(1));
+ }
+
+ public boolean negateBoolean(@WebParam(name = "value") boolean value)
+ {
+ return !value;
+ }
+
+ public byte increaseByte(@WebParam(name = "value") byte value)
+ {
+ return (byte) (value + 1);
+ }
+
+ public byte[] reverseByteOrder(@WebParam(name = "data") byte[] data) throws
IOException
+ {
+ byte[] retVal = new byte[data.length];
+ for (int i = 0; i < data.length; i++)
+ {
+ retVal[i] = data[data.length - 1 - i];
+ }
+ return retVal;
+ }
+
+ public Calendar getCalendarPlusDay(@WebParam(name = "calendar") Calendar
calendar)
+ {
+ Calendar retVal = new GregorianCalendar();
+ retVal.setTimeInMillis(calendar.getTimeInMillis() + 86400000L);
+ return retVal;
+ }
+
+ public Date getDatePlusDay(@WebParam(name = "date") Date date)
+ {
+ return new Date(date.getTime() + 86400000L);
+ }
+
+ public double increaseDouble(@WebParam(name = "value") double value)
+ {
+ return value + 1;
+ }
+
+ public float increaseFloat(@WebParam(name = "value") float value)
+ {
+ return value + 1;
+ }
+
+ public int increaseInt(@WebParam(name = "value") int value)
+ {
+ return value + 1;
+ }
+
+ public long increaseLong(@WebParam(name = "value") long value)
+ {
+ return value + 1L;
+ }
+
+ public QName modifyQName(@WebParam(name = "value") QName value)
+ {
+ String modString = "_modified";
+ String prefix = value.getPrefix();
+ String uri = value.getNamespaceURI();
+ String localPart = value.getLocalPart() + modString;
+ QName retVal = new QName(uri, localPart, prefix);
+ return retVal;
+ }
+
+ public short increaseShort(@WebParam(name = "value") short value)
+ {
+ return (short) (value + 1);
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDoc.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDoc.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDoc.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,180 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(name = "EndpointWrappedDoc", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
+public interface EndpointWrappedDoc
+{
+
+ @WebMethod(operationName = "sayHello", action = "urn:SayHello")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "SayHello", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.SayHello")
+ @ResponseWrapper(localName = "SayHelloResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.SayHelloResponse")
+ public String sayHello(
+ @WebParam(name = "ToWhom", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String toWhom);
+
+ @WebMethod(operationName = "increaseBigDecimal", action =
"urn:IncreaseBigDecimal")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseBigDecimal", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseBigDecimal")
+ @ResponseWrapper(localName = "IncreaseBigDecimalResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseBigDecimalResponse")
+ public BigDecimal increaseBigDecimal(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") BigDecimal value);
+
+ @WebMethod(operationName = "negateBoolean", action =
"urn:NegateBoolean")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "NegateBoolean", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.NegateBoolean")
+ @ResponseWrapper(localName = "NegateBooleanResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.NegateBooleanResponse")
+ public boolean negateBoolean(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") boolean value);
+
+ @WebMethod(operationName = "increaseByte", action =
"urn:IncreaseByte")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseByte", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseByte")
+ @ResponseWrapper(localName = "IncreaseByteResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseByteResponse")
+ public byte increaseByte(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte value);
+
+ @WebMethod(operationName = "reverseByteOrder", action =
"urn:ReverseByteOrder")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ReverseByteOrder", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ReverseByteOrder")
+ @ResponseWrapper(localName = "ReverseByteOrderResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ReverseByteOrderResponse")
+ public byte[] reverseByteOrder(
+ @WebParam(name = "Data", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[] data);
+
+ @WebMethod(operationName = "getCalendarPlusDay", action =
"urn:GetCalendarPlusDay")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "GetCalendarPlusDay", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetCalendarPlusDay")
+ @ResponseWrapper(localName = "GetCalendarPlusDayResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetCalendarPlusDayResponse")
+ public Calendar getCalendarPlusDay(
+ @WebParam(name = "Calendar", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar calendar);
+
+ @WebMethod(operationName = "getDatePlusDay", action =
"urn:GetDatePlusDay")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "GetDatePlusDay", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetDatePlusDay")
+ @ResponseWrapper(localName = "GetDatePlusDayResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetDatePlusDayResponse")
+ public Date getDatePlusDay(
+ @WebParam(name = "Date", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date date);
+
+ @WebMethod(operationName = "increaseDouble", action =
"urn:IncreaseDouble")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseDouble", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseDouble")
+ @ResponseWrapper(localName = "IncreaseDoubleResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseDoubleResponse")
+ public double increaseDouble(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double value);
+
+ @WebMethod(operationName = "increaseFloat", action =
"urn:IncreaseFloat")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseFloat", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseFloat")
+ @ResponseWrapper(localName = "IncreaseFloatResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseFloatResponse")
+ public float increaseFloat(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float value);
+
+ @WebMethod(operationName = "increaseInt", action =
"urn:IncreaseInt")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseInt", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseInt")
+ @ResponseWrapper(localName = "IncreaseIntResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseIntResponse")
+ public int increaseInt(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int value);
+
+ @WebMethod(operationName = "increaseLong", action =
"urn:IncreaseLong")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseLong", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseLong")
+ @ResponseWrapper(localName = "IncreaseLongResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseLongResponse")
+ public long increaseLong(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long value);
+
+ @WebMethod(operationName = "modifyQName", action =
"urn:ModifyQName")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ModifyQName", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyQName")
+ @ResponseWrapper(localName = "ModifyQNameResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyQNameResponse")
+ public QName modifyQName(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName value);
+
+ @WebMethod(operationName = "increaseShort", action =
"urn:IncreaseShort")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseShort", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseShort")
+ @ResponseWrapper(localName = "IncreaseShortResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseShortResponse")
+ public short increaseShort(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short value);
+
+ @WebMethod(operationName = "valuesToString", action =
"urn:ValuesToString")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ValuesToString", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToString")
+ @ResponseWrapper(localName = "ValuesToStringResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToStringResponse")
+ public String valuesToString(
+ @WebParam(name = "ByteValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte byteValue,
+ @WebParam(name = "ByteArrayValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[]
byteArrayValue,
+ @WebParam(name = "ShortValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short shortValue,
+ @WebParam(name = "IntValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int intValue,
+ @WebParam(name = "LongValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long longValue,
+ @WebParam(name = "FloatValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float floatValue,
+ @WebParam(name = "DoubleValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double doubleValue,
+ @WebParam(name = "StringValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String stringValue,
+ @WebParam(name = "QNameValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName qNameValue,
+ @WebParam(name = "DateValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date dateValue,
+ @WebParam(name = "CalendarValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar
calendarValue);
+
+ @WebMethod(operationName = "valuesToComplexType", action =
"urn:ValuesToComplexType")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ValuesToComplexType", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToComplexType")
+ @ResponseWrapper(localName = "ValuesToComplexTypeResponse", targetNamespace
= "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToComplexTypeResponse")
+ public ComplexType valuesToComplexType(
+ @WebParam(name = "ByteValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte byteValue,
+ @WebParam(name = "ByteArrayValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[]
byteArrayValue,
+ @WebParam(name = "ShortValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short shortValue,
+ @WebParam(name = "IntValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int intValue,
+ @WebParam(name = "LongValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long longValue,
+ @WebParam(name = "FloatValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float floatValue,
+ @WebParam(name = "DoubleValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double doubleValue,
+ @WebParam(name = "StringValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String stringValue,
+ @WebParam(name = "QNameValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName qNameValue,
+ @WebParam(name = "DateValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date dateValue,
+ @WebParam(name = "CalendarValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar
calendarValue);
+
+ @WebMethod(operationName = "modifyComplexType", action =
"urn:ModifyComplexType")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ModifyComplexType", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyComplexType")
+ @ResponseWrapper(localName = "ModifyComplexTypeResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyComplexTypeResponse")
+ public ComplexType modifyComplexType(
+ @WebParam(name = "ComplexTypeValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") ComplexType
complexTypeValue);
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDocImpl.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDocImpl.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDocImpl.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,193 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.io.IOException;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Calendar;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService; //import javax.jws.soap.SOAPBinding;
+import javax.xml.namespace.QName;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+//import org.jboss.logging.Logger;
+
+import javax.ejb.Stateless;
+
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(serviceName = "EndpointWrappedDocService", portName =
"EndpointWrappedDocPort", endpointInterface =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc")
+@Stateless
+public class EndpointWrappedDocImpl
+{
+
+ private static final List<String> stringList;
+
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+ }
+
+ public String sayHello(String toWhom)
+ {
+ String greeting = "Hello World Greeting for '" + toWhom + "'
today";
+ return greeting;
+ }
+
+ public BigDecimal increaseBigDecimal(BigDecimal value)
+ {
+ return value.add(new BigDecimal(1));
+ }
+
+ public boolean negateBoolean(boolean value)
+ {
+ return !value;
+ }
+
+ public byte increaseByte(byte value)
+ {
+ return (byte) (value + 1);
+ }
+
+ public byte[] reverseByteOrder(byte[] data)
+ {
+ byte[] retVal = new byte[data.length];
+ for (int i = 0; i < data.length; i++)
+ {
+ retVal[i] = data[data.length - 1 - i];
+ }
+ return retVal;
+ }
+
+ public Calendar getCalendarPlusDay(Calendar calendar)
+ {
+ Calendar retVal = new GregorianCalendar();
+ retVal.setTimeInMillis(calendar.getTimeInMillis() + 86400000L);
+ return retVal;
+ }
+
+ public Date getDatePlusDay(Date date)
+ {
+ return new Date(date.getTime() + 86400000L);
+ }
+
+ public double increaseDouble(double value)
+ {
+ return value + 1;
+ }
+
+ public float increaseFloat(float value)
+ {
+ return value + 1;
+ }
+
+ public int increaseInt(int value)
+ {
+ return value + 1;
+ }
+
+ public long increaseLong(long value)
+ {
+ return value + 1L;
+ }
+
+ public QName modifyQName(QName value)
+ {
+ String modString = "_modified";
+ String prefix = value.getPrefix();
+ String uri = value.getNamespaceURI();
+ String localPart = value.getLocalPart() + modString;
+ QName retVal = new QName(uri, localPart, prefix);
+ return retVal;
+ }
+
+ public short increaseShort(short value)
+ {
+ return (short) (value + 1);
+ }
+
+ public String valuesToString(byte byteValue, byte[] byteArrayValue, short shortValue,
int intValue, long longValue,
+ float floatValue, double doubleValue, String stringValue, QName qNameValue, Date
dateValue,
+ Calendar calendarValue)
+ {
+ StringBuffer sb = new StringBuffer();
+ sb.append("[byteValue=" + byteValue);
+ sb.append(" byteArrayValue=" + new String(byteArrayValue));
+ sb.append(" shortValue=" + shortValue);
+ sb.append(" intValue=" + intValue);
+ sb.append(" longValue=" + longValue);
+ sb.append(" floatValue=" + floatValue);
+ sb.append(" doubleValue=" + doubleValue);
+ sb.append(" stringValue=" + stringValue);
+ sb.append(" qNameValue=" + qNameValue);
+ sb.append(" dateValue=" + dateValue);
+ sb.append(" calendarValue=" + calendarValue);
+ sb.append("]");
+ return sb.toString();
+ }
+
+ public ComplexType valuesToComplexType(byte byteValue, byte[] byteArrayValue, short
shortValue, int intValue,
+ long longValue, float floatValue, double doubleValue, String stringValue, QName
qNameValue, Date dateValue,
+ Calendar calendarValue)
+ {
+
+ return new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue,
floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+ }
+
+ public ComplexType modifyComplexType(ComplexType complexTypeValue)
+ {
+ complexTypeValue.setByteValue(increaseByte(complexTypeValue.getByteValue()));
+
complexTypeValue.setByteArrayValue(reverseByteOrder(complexTypeValue.getByteArrayValue()));
+ complexTypeValue.setShortValue(increaseShort(complexTypeValue.getShortValue()));
+ complexTypeValue.setIntValue(increaseInt(complexTypeValue.getIntValue()));
+ complexTypeValue.setLongValue(increaseLong(complexTypeValue.getLongValue()));
+ complexTypeValue.setFloatValue(increaseFloat(complexTypeValue.getFloatValue()));
+
complexTypeValue.setDoubleValue(increaseDouble(complexTypeValue.getDoubleValue()));
+ complexTypeValue.setStringValue(sayHello(complexTypeValue.getStringValue()));
+ Collections.sort(complexTypeValue.getStringList());
+ complexTypeValue.setqNameValue(modifyQName(complexTypeValue.getqNameValue()));
+ complexTypeValue.setDateValue(getDatePlusDay(complexTypeValue.getDateValue()));
+
complexTypeValue.setCalendarValue(getCalendarPlusDay(complexTypeValue.getCalendarValue()));
+ return complexTypeValue;
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPC.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPC.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPC.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,180 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(name = "EndpointWrappedRPC", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface EndpointWrappedRPC
+{
+
+ @WebMethod(operationName = "sayHello", action = "urn:SayHello")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "SayHello", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.SayHello")
+ @ResponseWrapper(localName = "SayHelloResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.SayHelloResponse")
+ public String sayHello(
+ @WebParam(name = "ToWhom", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String toWhom);
+
+ @WebMethod(operationName = "increaseBigDecimal", action =
"urn:IncreaseBigDecimal")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseBigDecimal", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseBigDecimal")
+ @ResponseWrapper(localName = "IncreaseBigDecimalResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseBigDecimalResponse")
+ public BigDecimal increaseBigDecimal(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") BigDecimal value);
+
+ @WebMethod(operationName = "negateBoolean", action =
"urn:NegateBoolean")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "NegateBoolean", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.NegateBoolean")
+ @ResponseWrapper(localName = "NegateBooleanResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.NegateBooleanResponse")
+ public boolean negateBoolean(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") boolean value);
+
+ @WebMethod(operationName = "increaseByte", action =
"urn:IncreaseByte")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseByte", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseByte")
+ @ResponseWrapper(localName = "IncreaseByteResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseByteResponse")
+ public byte increaseByte(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte value);
+
+ @WebMethod(operationName = "reverseByteOrder", action =
"urn:ReverseByteOrder")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ReverseByteOrder", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ReverseByteOrder")
+ @ResponseWrapper(localName = "ReverseByteOrderResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ReverseByteOrderResponse")
+ public byte[] reverseByteOrder(
+ @WebParam(name = "Data", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[] data);
+
+ @WebMethod(operationName = "getCalendarPlusDay", action =
"urn:GetCalendarPlusDay")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "GetCalendarPlusDay", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetCalendarPlusDay")
+ @ResponseWrapper(localName = "GetCalendarPlusDayResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetCalendarPlusDayResponse")
+ public Calendar getCalendarPlusDay(
+ @WebParam(name = "Calendar", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar calendar);
+
+ @WebMethod(operationName = "getDatePlusDay", action =
"urn:GetDatePlusDay")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "GetDatePlusDay", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetDatePlusDay")
+ @ResponseWrapper(localName = "GetDatePlusDayResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetDatePlusDayResponse")
+ public Date getDatePlusDay(
+ @WebParam(name = "Date", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date date);
+
+ @WebMethod(operationName = "increaseDouble", action =
"urn:IncreaseDouble")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseDouble", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseDouble")
+ @ResponseWrapper(localName = "IncreaseDoubleResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseDoubleResponse")
+ public double increaseDouble(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double value);
+
+ @WebMethod(operationName = "increaseFloat", action =
"urn:IncreaseFloat")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseFloat", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseFloat")
+ @ResponseWrapper(localName = "IncreaseFloatResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseFloatResponse")
+ public float increaseFloat(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float value);
+
+ @WebMethod(operationName = "increaseInt", action =
"urn:IncreaseInt")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseInt", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseInt")
+ @ResponseWrapper(localName = "IncreaseIntResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseIntResponse")
+ public int increaseInt(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int value);
+
+ @WebMethod(operationName = "increaseLong", action =
"urn:IncreaseLong")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseLong", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseLong")
+ @ResponseWrapper(localName = "IncreaseLongResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseLongResponse")
+ public long increaseLong(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long value);
+
+ @WebMethod(operationName = "modifyQName", action =
"urn:ModifyQName")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ModifyQName", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyQName")
+ @ResponseWrapper(localName = "ModifyQNameResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyQNameResponse")
+ public QName modifyQName(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName value);
+
+ @WebMethod(operationName = "increaseShort", action =
"urn:IncreaseShort")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseShort", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseShort")
+ @ResponseWrapper(localName = "IncreaseShortResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseShortResponse")
+ public short increaseShort(
+ @WebParam(name = "Value", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short value);
+
+ @WebMethod(operationName = "valuesToString", action =
"urn:ValuesToString")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ValuesToString", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToString")
+ @ResponseWrapper(localName = "ValuesToStringResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToStringResponse")
+ public String valuesToString(
+ @WebParam(name = "ByteValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte byteValue,
+ @WebParam(name = "ByteArrayValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[]
byteArrayValue,
+ @WebParam(name = "ShortValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short shortValue,
+ @WebParam(name = "IntValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int intValue,
+ @WebParam(name = "LongValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long longValue,
+ @WebParam(name = "FloatValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float floatValue,
+ @WebParam(name = "DoubleValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double doubleValue,
+ @WebParam(name = "StringValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String stringValue,
+ @WebParam(name = "QNameValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName qNameValue,
+ @WebParam(name = "DateValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date dateValue,
+ @WebParam(name = "CalendarValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar
calendarValue);
+
+ @WebMethod(operationName = "valuesToComplexType", action =
"urn:ValuesToComplexType")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ValuesToComplexType", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToComplexType")
+ @ResponseWrapper(localName = "ValuesToComplexTypeResponse", targetNamespace
= "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToComplexTypeResponse")
+ public ComplexType valuesToComplexType(
+ @WebParam(name = "ByteValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte byteValue,
+ @WebParam(name = "ByteArrayValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[]
byteArrayValue,
+ @WebParam(name = "ShortValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short shortValue,
+ @WebParam(name = "IntValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int intValue,
+ @WebParam(name = "LongValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long longValue,
+ @WebParam(name = "FloatValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float floatValue,
+ @WebParam(name = "DoubleValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double doubleValue,
+ @WebParam(name = "StringValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String stringValue,
+ @WebParam(name = "QNameValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName qNameValue,
+ @WebParam(name = "DateValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date dateValue,
+ @WebParam(name = "CalendarValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar
calendarValue);
+
+ @WebMethod(operationName = "modifyComplexType", action =
"urn:ModifyComplexType")
+ @WebResult(name = "Response", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ModifyComplexType", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyComplexType")
+ @ResponseWrapper(localName = "ModifyComplexTypeResponse", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyComplexTypeResponse")
+ public ComplexType modifyComplexType(
+ @WebParam(name = "ComplexTypeValue", targetNamespace =
"http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") ComplexType
complexTypeValue);
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPCImpl.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPCImpl.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPCImpl.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,186 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes;
+
+import java.io.IOException;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Collections;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.jws.WebParam;
+import javax.jws.WebService; //import javax.jws.soap.SOAPBinding;
+import javax.xml.namespace.QName;
+
+//import org.jboss.logging.Logger;
+
+import javax.ejb.Stateless;
+
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(serviceName = "EndpointWrappedRPCService", portName =
"EndpointWrappedRPCPort", endpointInterface =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC")
+@Stateless
+public class EndpointWrappedRPCImpl
+{
+ private static final List<String> stringList;
+
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+ }
+
+ public String sayHello(String toWhom)
+ {
+ String greeting = "Hello World Greeting for '" + toWhom + "'
today";
+ return greeting;
+ }
+
+ public BigDecimal increaseBigDecimal(BigDecimal value)
+ {
+ return value.add(new BigDecimal(1));
+ }
+
+ public boolean negateBoolean(boolean value)
+ {
+ return !value;
+ }
+
+ public byte increaseByte(byte value)
+ {
+ return (byte) (value + 1);
+ }
+
+ public byte[] reverseByteOrder(byte[] data)
+ {
+ byte[] retVal = new byte[data.length];
+ for (int i = 0; i < data.length; i++)
+ {
+ retVal[i] = data[data.length - 1 - i];
+ }
+ return retVal;
+ }
+
+ public Calendar getCalendarPlusDay(Calendar calendar)
+ {
+ Calendar retVal = new GregorianCalendar();
+ retVal.setTimeInMillis(calendar.getTimeInMillis() + 86400000L);
+ return retVal;
+ }
+
+ public Date getDatePlusDay(Date date)
+ {
+ return new Date(date.getTime() + 86400000L);
+ }
+
+ public double increaseDouble(double value)
+ {
+ return value + 1;
+ }
+
+ public float increaseFloat(float value)
+ {
+ return value + 1;
+ }
+
+ public int increaseInt(int value)
+ {
+ return value + 1;
+ }
+
+ public long increaseLong(long value)
+ {
+ return value + 1L;
+ }
+
+ public QName modifyQName(QName value)
+ {
+ String modString = "_modified";
+ String prefix = value.getPrefix();
+ String uri = value.getNamespaceURI();
+ String localPart = value.getLocalPart() + modString;
+ QName retVal = new QName(uri, localPart, prefix);
+ return retVal;
+ }
+
+ public short increaseShort(short value)
+ {
+ return (short) (value + 1);
+ }
+
+ public String valuesToString(byte byteValue, byte[] byteArrayValue, short shortValue,
int intValue, long longValue,
+ float floatValue, double doubleValue, String stringValue, QName qNameValue, Date
dateValue,
+ Calendar calendarValue)
+ {
+ StringBuffer sb = new StringBuffer();
+ sb.append("[byteValue=" + byteValue);
+ sb.append(" byteArrayValue=" + new String(byteArrayValue));
+ sb.append(" shortValue=" + shortValue);
+ sb.append(" intValue=" + intValue);
+ sb.append(" longValue=" + longValue);
+ sb.append(" floatValue=" + floatValue);
+ sb.append(" doubleValue=" + doubleValue);
+ sb.append(" stringValue=" + stringValue);
+ sb.append(" qNameValue=" + qNameValue);
+ sb.append(" dateValue=" + dateValue);
+ sb.append(" calendarValue=" + calendarValue);
+ sb.append("]");
+ return sb.toString();
+ }
+
+ public ComplexType valuesToComplexType(byte byteValue, byte[] byteArrayValue, short
shortValue, int intValue,
+ long longValue, float floatValue, double doubleValue, String stringValue, QName
qNameValue, Date dateValue,
+ Calendar calendarValue)
+ {
+
+ return new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue,
floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+ }
+
+ public ComplexType modifyComplexType(ComplexType complexTypeValue)
+ {
+ complexTypeValue.setByteValue(increaseByte(complexTypeValue.getByteValue()));
+
complexTypeValue.setByteArrayValue(reverseByteOrder(complexTypeValue.getByteArrayValue()));
+ complexTypeValue.setShortValue(increaseShort(complexTypeValue.getShortValue()));
+ complexTypeValue.setIntValue(increaseInt(complexTypeValue.getIntValue()));
+ complexTypeValue.setLongValue(increaseLong(complexTypeValue.getLongValue()));
+ complexTypeValue.setFloatValue(increaseFloat(complexTypeValue.getFloatValue()));
+
complexTypeValue.setDoubleValue(increaseDouble(complexTypeValue.getDoubleValue()));
+ complexTypeValue.setStringValue(sayHello(complexTypeValue.getStringValue()));
+ Collections.sort(complexTypeValue.getStringList());
+ complexTypeValue.setqNameValue(modifyQName(complexTypeValue.getqNameValue()));
+ complexTypeValue.setDateValue(getDatePlusDay(complexTypeValue.getDateValue()));
+
complexTypeValue.setCalendarValue(getCalendarPlusDay(complexTypeValue.getCalendarValue()));
+ return complexTypeValue;
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/ComplexType.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/ComplexType.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/ComplexType.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,301 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.types;
+
+import java.util.Arrays;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ComplexType
+{
+
+ private byte byteValue;
+
+ private byte[] byteArrayValue;
+
+ private short shortValue;
+
+ private int intValue;
+
+ private long longValue;
+
+ private float floatValue;
+
+ private double doubleValue;
+
+ private String stringValue;
+
+ private List<String> stringList;
+
+ private QName qNameValue;
+
+ private Date dateValue;
+
+ private Calendar calendarValue;
+
+ public ComplexType()
+ {
+ super();
+ }
+
+ public ComplexType(byte byteValue, byte[] byteArrayValue, short shortValue, int
intValue, long longValue,
+ float floatValue, double doubleValue, String stringValue, List<String>
stringList, QName qNameValue,
+ Date dateValue, Calendar calendarValue)
+ {
+ super();
+ this.byteValue = byteValue;
+ this.byteArrayValue = byteArrayValue;
+ this.shortValue = shortValue;
+ this.intValue = intValue;
+ this.longValue = longValue;
+ this.floatValue = floatValue;
+ this.doubleValue = doubleValue;
+ this.stringValue = stringValue;
+ this.stringList = stringList;
+ this.qNameValue = qNameValue;
+ this.dateValue = dateValue;
+ this.calendarValue = calendarValue;
+ }
+
+ public byte getByteValue()
+ {
+ return byteValue;
+ }
+
+ public void setByteValue(byte byteValue)
+ {
+ this.byteValue = byteValue;
+ }
+
+ public byte[] getByteArrayValue()
+ {
+ return byteArrayValue;
+ }
+
+ public void setByteArrayValue(byte[] byteArrayValue)
+ {
+ this.byteArrayValue = byteArrayValue;
+ }
+
+ public short getShortValue()
+ {
+ return shortValue;
+ }
+
+ public void setShortValue(short shortValue)
+ {
+ this.shortValue = shortValue;
+ }
+
+ public int getIntValue()
+ {
+ return intValue;
+ }
+
+ public void setIntValue(int intValue)
+ {
+ this.intValue = intValue;
+ }
+
+ public long getLongValue()
+ {
+ return longValue;
+ }
+
+ public void setLongValue(long longValue)
+ {
+ this.longValue = longValue;
+ }
+
+ public float getFloatValue()
+ {
+ return floatValue;
+ }
+
+ public void setFloatValue(float floatValue)
+ {
+ this.floatValue = floatValue;
+ }
+
+ public double getDoubleValue()
+ {
+ return doubleValue;
+ }
+
+ public void setDoubleValue(double doubleValue)
+ {
+ this.doubleValue = doubleValue;
+ }
+
+ public String getStringValue()
+ {
+ return stringValue;
+ }
+
+ public void setStringValue(String stringValue)
+ {
+ this.stringValue = stringValue;
+ }
+
+ public List<String> getStringList()
+ {
+ return stringList;
+ }
+
+ public void setStringList(List<String> stringList)
+ {
+ this.stringList = stringList;
+ }
+
+ public QName getqNameValue()
+ {
+ return qNameValue;
+ }
+
+ public void setqNameValue(QName qNameValue)
+ {
+ this.qNameValue = qNameValue;
+ }
+
+ public Date getDateValue()
+ {
+ return dateValue;
+ }
+
+ public void setDateValue(Date dateValue)
+ {
+ this.dateValue = dateValue;
+ }
+
+ public Calendar getCalendarValue()
+ {
+ return calendarValue;
+ }
+
+ public void setCalendarValue(Calendar calendarValue)
+ {
+ this.calendarValue = calendarValue;
+ }
+
+ @Override
+ public int hashCode()
+ {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + Arrays.hashCode(byteArrayValue);
+ result = prime * result + byteValue;
+ result = prime * result + ((calendarValue == null) ? 0 :
calendarValue.hashCode());
+ result = prime * result + ((dateValue == null) ? 0 : dateValue.hashCode());
+ long temp;
+ temp = Double.doubleToLongBits(doubleValue);
+ result = prime * result + (int) (temp ^ (temp >>> 32));
+ result = prime * result + Float.floatToIntBits(floatValue);
+ result = prime * result + intValue;
+ result = prime * result + (int) (longValue ^ (longValue >>> 32));
+ result = prime * result + ((qNameValue == null) ? 0 : qNameValue.hashCode());
+ result = prime * result + shortValue;
+ result = prime * result + ((stringList == null) ? 0 : stringList.hashCode());
+ result = prime * result + ((stringValue == null) ? 0 : stringValue.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj)
+ {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ ComplexType other = (ComplexType) obj;
+ if (!Arrays.equals(byteArrayValue, other.byteArrayValue))
+ return false;
+ if (byteValue != other.byteValue)
+ return false;
+ if (calendarValue == null)
+ {
+ if (other.calendarValue != null)
+ return false;
+ }
+ else if (!calendarValue.equals(other.calendarValue))
+ return false;
+ if (dateValue == null)
+ {
+ if (other.dateValue != null)
+ return false;
+ }
+ else if (!dateValue.equals(other.dateValue))
+ return false;
+ if (Double.doubleToLongBits(doubleValue) !=
Double.doubleToLongBits(other.doubleValue))
+ return false;
+ if (Float.floatToIntBits(floatValue) != Float.floatToIntBits(other.floatValue))
+ return false;
+ if (intValue != other.intValue)
+ return false;
+ if (longValue != other.longValue)
+ return false;
+ if (qNameValue == null)
+ {
+ if (other.qNameValue != null)
+ return false;
+ }
+ else if (!qNameValue.equals(other.qNameValue))
+ return false;
+ if (shortValue != other.shortValue)
+ return false;
+ if (stringList == null)
+ {
+ if (other.stringList != null)
+ return false;
+ }
+ else if (!stringList.equals(other.stringList))
+ return false;
+ if (stringValue == null)
+ {
+ if (other.stringValue != null)
+ return false;
+ }
+ else if (!stringValue.equals(other.stringValue))
+ return false;
+ return true;
+ }
+
+ @Override
+ public String toString()
+ {
+ return "ComplexType [byteArrayValue=" + Arrays.toString(byteArrayValue) +
", byteValue=" + byteValue
+ + ", calendarValue=" + calendarValue + ", dateValue=" +
dateValue + ", doubleValue=" + doubleValue
+ + ", floatValue=" + floatValue + ", intValue=" + intValue
+ ", longValue=" + longValue + ", qNameValue="
+ + qNameValue + ", shortValue=" + shortValue + ",
stringList=" + stringList + ", stringValue=" + stringValue
+ + "]";
+ }
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class BooleanDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ boolean ret = ((EndpointDoc) port).negateBoolean(true);
+ boolean exp = false;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class BooleanRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ boolean ret = ((EndpointRPC) port).negateBoolean(true);
+ boolean exp = false;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteArrayDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+ private static final byte[] tested =
+ {1, 2, 4, 8, 16, 32, 64};
+
+ private static final byte[] exp =
+ {64, 32, 16, 8, 4, 2, 1};
+
+ public void performIteration(Object port) throws Exception
+ {
+ byte[] ret = ((EndpointDoc) port).reverseByteOrder(tested);
+ for (int i = 0; i < ret.length; i++)
+ {
+ if (ret[i] != exp[i])
+ {
+ throw new Exception("Unexpected result: [" + i + "] " +
ret);
+ }
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteArrayRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+ private static final byte[] tested =
+ {1, 2, 4, 8, 16, 32, 64};
+
+ private static final byte[] exp =
+ {64, 32, 16, 8, 4, 2, 1};
+
+ public void performIteration(Object port) throws Exception
+ {
+ byte[] ret = ((EndpointRPC) port).reverseByteOrder(tested);
+ for (int i = 0; i < ret.length; i++)
+ {
+ if (ret[i] != exp[i])
+ {
+ throw new Exception("Unexpected result: [" + i + "] " +
ret);
+ }
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointDoc) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointRPC) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class CalendarDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+ private static final Calendar tested;
+
+ private static final Calendar exp;
+
+ static
+ {
+ tested = new GregorianCalendar();
+ tested.setTimeInMillis(1234567890L);
+
+ exp = new GregorianCalendar();
+ exp.setTimeInMillis(tested.getTimeInMillis() + 86400000L);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ Calendar ret = ((EndpointDoc) port).getCalendarPlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class CalendarRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ private static final Calendar tested;
+
+ private static final Calendar exp;
+
+ static
+ {
+ tested = new GregorianCalendar();
+ tested.setTimeInMillis(1234567890L);
+
+ exp = new GregorianCalendar();
+ exp.setTimeInMillis(tested.getTimeInMillis() + 86400000L);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ Calendar ret = ((EndpointRPC) port).getCalendarPlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import java.util.Date;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DateDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+ private static final Date tested = new Date(1234567890L);;
+
+ private static final Date exp = new Date(tested.getTime() + 86400000L);;
+
+ public void performIteration(Object port) throws Exception
+ {
+ Date ret = ((EndpointDoc) port).getDatePlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import java.util.Date;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DateRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+ private static final Date tested = new Date(1234567890L);;
+
+ private static final Date exp = new Date(tested.getTime() + 86400000L);;
+
+ public void performIteration(Object port) throws Exception
+ {
+ Date ret = ((EndpointRPC) port).getDatePlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DoubleDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ double ret = ((EndpointDoc) port).increaseDouble(123456.0);
+ double exp = 123457.0;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DoubleRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ double ret = ((EndpointRPC) port).increaseDouble(123456.0);
+ double exp = 123457.0;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class FloatDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ float ret = ((EndpointDoc) port).increaseFloat(123456f);
+ float exp = 123457f;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class FloatRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ float ret = ((EndpointRPC) port).increaseFloat(123456f);
+ float exp = 123457f;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class IntegerDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointDoc) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class IntegerRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointRPC) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class LongDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ long ret = ((EndpointDoc) port).increaseLong(1234567890L);
+ long exp = 1234567891L;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class LongRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ long ret = ((EndpointRPC) port).increaseLong(1234567890L);
+ long exp = 1234567891L;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class QNameDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public static final QName exp = new QName("qname_value_modified");
+
+ public void performIteration(Object port) throws Exception
+ {
+ QName ret = ((EndpointDoc) port).modifyQName(new QName("qname_value"));
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class QNameRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+ public static final QName exp = new QName("qname_value_modified");
+
+ public void performIteration(Object port) throws Exception
+ {
+ QName ret = ((EndpointRPC) port).modifyQName(new QName("qname_value"));
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ShortDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ short ret = ((EndpointDoc) port).increaseShort((short) 123);
+ short exp = 124;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ShortRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ short ret = ((EndpointRPC) port).increaseShort((short) 124);
+ short exp = 124;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.apache.tools.ant.filters.StringInputStream;
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class StringDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+ private static final String MESSAGE = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>!
\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <Ord!
erLine position=\"11\" quantity=\"1\">\n <Product
p!
roductId
=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"16\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"17\"
quantity=\"1\">\n <Product pr!
oductId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"18\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"19\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"20\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"21\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"22\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"23\"
quantity=\"1\">\n <Pr!
oduct productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"24\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"25\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"26\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"27\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"28\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"29\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"30\" quantity=\"1\">\n
<Product productId=\"299\" title=\"Pulp Fiction\"
price=\"29.99\" />\n </OrderLine>\n <OrderLine
position=\"31\" quantity=\"1\">\n <Product
productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"32\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"33\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"34\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"35\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin !
\"\n price=\"29.98\" />\n </OrderLine>\n !
<Mem
o>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ public void performIteration(Object port) throws Exception
+ {
+ String ret = ((EndpointDoc) port).sayHello(MESSAGE);
+ String exp = "Hello World Greeting for '" + MESSAGE + "'
today";
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+import com.sun.corba.se.impl.protocol.giopmsgheaders.Message;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class StringRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ private static final String MESSAGE = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>!
\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <Ord!
erLine position=\"11\" quantity=\"1\">\n <Product
p!
roductId
=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"16\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"17\"
quantity=\"1\">\n <Product pr!
oductId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"18\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"19\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"20\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"21\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"22\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"23\"
quantity=\"1\">\n <Pr!
oduct productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"24\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"25\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"26\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"27\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"28\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"29\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"30\" quantity=\"1\">\n
<Product productId=\"299\" title=\"Pulp Fiction\"
price=\"29.99\" />\n </OrderLine>\n <OrderLine
position=\"31\" quantity=\"1\">\n <Product
productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"32\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"33\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"34\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"35\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin !
\"\n price=\"29.98\" />\n </OrderLine>\n !
<Mem
o>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ public void performIteration(Object port) throws Exception
+ {
+ String ret = ((EndpointRPC) port).sayHello(MESSAGE);
+ String exp = "Hello World Greeting for '" + MESSAGE + "'
today";
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class BooleanDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ boolean ret = ((EndpointWrappedDoc) port).negateBoolean(true);
+ boolean exp = false;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class BooleanRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ boolean ret = ((EndpointWrappedRPC) port).negateBoolean(true);
+ boolean exp = false;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteArrayDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final byte[] tested =
+ {1, 2, 4, 8, 16, 32, 64};
+
+ private static final byte[] exp =
+ {64, 32, 16, 8, 4, 2, 1};
+
+ public void performIteration(Object port) throws Exception
+ {
+ byte[] ret = ((EndpointWrappedDoc) port).reverseByteOrder(tested);
+ for (int i = 0; i < ret.length; i++)
+ {
+ if (ret[i] != exp[i])
+ {
+ throw new Exception("Unexpected result: [" + i + "] " +
ret);
+ }
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteArrayRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ private static final byte[] tested =
+ {1, 2, 4, 8, 16, 32, 64};
+
+ private static final byte[] exp =
+ {64, 32, 16, 8, 4, 2, 1};
+
+ public void performIteration(Object port) throws Exception
+ {
+ byte[] ret = ((EndpointWrappedRPC) port).reverseByteOrder(tested);
+ for (int i = 0; i < ret.length; i++)
+ {
+ if (ret[i] != exp[i])
+ {
+ throw new Exception("Unexpected result: [" + i + "] " +
ret);
+ }
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointWrappedDoc) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointWrappedRPC) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class CalendarDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final Calendar tested;
+
+ private static final Calendar exp;
+
+ static
+ {
+ tested = new GregorianCalendar();
+ tested.setTimeInMillis(1234567890L);
+
+ exp = new GregorianCalendar();
+ exp.setTimeInMillis(tested.getTimeInMillis() + 86400000L);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ Calendar ret = ((EndpointWrappedDoc) port).getCalendarPlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class CalendarRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ private static final Calendar tested;
+
+ private static final Calendar exp;
+
+ static
+ {
+ tested = new GregorianCalendar();
+ tested.setTimeInMillis(1234567890L);
+
+ exp = new GregorianCalendar();
+ exp.setTimeInMillis(tested.getTimeInMillis() + 86400000L);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ Calendar ret = ((EndpointWrappedRPC) port).getCalendarPlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,111 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ComplexTypeDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n
<Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n <Memo>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue =
"!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final byte[] modifiedByteArrayValue;
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue, modifiedCalendarValue;
+
+ private static final ComplexType tested, exp;
+
+ private static final List<String> stringList;
+
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+
+ int length = byteArrayValue.length;
+ modifiedByteArrayValue = new byte[length];
+ for (int i = 0; i < length; i++)
+ {
+ modifiedByteArrayValue[i] = byteArrayValue[length - i - 1];
+ }
+
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ modifiedCalendarValue = new GregorianCalendar();
+ modifiedCalendarValue.setTimeInMillis(calendarValue.getTimeInMillis() +
86400000L);
+
+ tested = new ComplexType(byteValue, byteArrayValue, shortValue, intValue,
longValue, floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+
+ exp = new ComplexType((byte) (byteValue + 1), modifiedByteArrayValue, (short)
(shortValue + 1), intValue + 1,
+ longValue + 1, floatValue + 1, doubleValue + 1, "Hello World Greeting
for '" + stringValue + "' today",
+ stringList, new QName(qNameValue.getNamespaceURI(), qNameValue.getLocalPart()
+ "_modified", qNameValue
+ .getPrefix()), new Date(dateValue.getTime() + 86400000L),
modifiedCalendarValue);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+
+ ComplexType ret = ((EndpointWrappedDoc) port).modifyComplexType(tested);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,111 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ComplexTypeRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n
<Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n <Memo>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue =
"!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final byte[] modifiedByteArrayValue;
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue, modifiedCalendarValue;
+
+ private static final ComplexType tested, exp;
+
+ private static final List<String> stringList;
+
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+
+ int length = byteArrayValue.length;
+ modifiedByteArrayValue = new byte[length];
+ for (int i = 0; i < length; i++)
+ {
+ modifiedByteArrayValue[i] = byteArrayValue[length - i - 1];
+ }
+
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ modifiedCalendarValue = new GregorianCalendar();
+ modifiedCalendarValue.setTimeInMillis(calendarValue.getTimeInMillis() +
86400000L);
+
+ tested = new ComplexType(byteValue, byteArrayValue, shortValue, intValue,
longValue, floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+
+ exp = new ComplexType((byte) (byteValue + 1), modifiedByteArrayValue, (short)
(shortValue + 1), intValue + 1,
+ longValue + 1, floatValue + 1, doubleValue + 1, "Hello World Greeting
for '" + stringValue + "' today",
+ stringList, new QName(qNameValue.getNamespaceURI(), qNameValue.getLocalPart()
+ "_modified", qNameValue
+ .getPrefix()), new Date(dateValue.getTime() + 86400000L),
modifiedCalendarValue);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+
+ ComplexType ret = ((EndpointWrappedRPC) port).modifyComplexType(tested);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.Date;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DateDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final Date tested = new Date(1234567890L);;
+
+ private static final Date exp = new Date(tested.getTime() + 86400000L);;
+
+ public void performIteration(Object port) throws Exception
+ {
+ Date ret = ((EndpointWrappedDoc) port).getDatePlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.Date;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DateRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ private static final Date tested = new Date(1234567890L);;
+
+ private static final Date exp = new Date(tested.getTime() + 86400000L);;
+
+ public void performIteration(Object port) throws Exception
+ {
+ Date ret = ((EndpointWrappedRPC) port).getDatePlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DoubleDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ double ret = ((EndpointWrappedDoc) port).increaseDouble(123456.0);
+ double exp = 123457.0;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DoubleRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ double ret = ((EndpointWrappedRPC) port).increaseDouble(123456.0);
+ double exp = 123457.0;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class FloatDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ float ret = ((EndpointWrappedDoc) port).increaseFloat(123456f);
+ float exp = 123457f;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class FloatRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ float ret = ((EndpointWrappedRPC) port).increaseFloat(123456f);
+ float exp = 123457f;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class IntegerDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointWrappedDoc) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class IntegerRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointWrappedRPC) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class LongDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ long ret = ((EndpointWrappedDoc) port).increaseLong(1234567890L);
+ long exp = 1234567891L;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class LongRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ long ret = ((EndpointWrappedRPC) port).increaseLong(1234567890L);
+ long exp = 1234567891L;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class QNameDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public static final QName exp = new QName("qname_value_modified");
+
+ public void performIteration(Object port) throws Exception
+ {
+ QName ret = ((EndpointWrappedDoc) port).modifyQName(new
QName("qname_value"));
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class QNameRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ public static final QName exp = new QName("qname_value_modified");
+
+ public void performIteration(Object port) throws Exception
+ {
+ QName ret = ((EndpointWrappedRPC) port).modifyQName(new
QName("qname_value"));
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ShortDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ short ret = ((EndpointWrappedDoc) port).increaseShort((short) 123);
+ short exp = 124;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ShortRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ short ret = ((EndpointWrappedRPC) port).increaseShort((short) 124);
+ short exp = 124;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class StringDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final String MESSAGE = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>!
\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <Ord!
erLine position=\"11\" quantity=\"1\">\n <Product
p!
roductId
=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"16\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"17\"
quantity=\"1\">\n <Product pr!
oductId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"18\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"19\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"20\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"21\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"22\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"23\"
quantity=\"1\">\n <Pr!
oduct productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"24\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"25\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"26\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"27\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"28\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"29\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"30\" quantity=\"1\">\n
<Product productId=\"299\" title=\"Pulp Fiction\"
price=\"29.99\" />\n </OrderLine>\n <OrderLine
position=\"31\" quantity=\"1\">\n <Product
productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"32\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"33\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"34\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"35\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin !
\"\n price=\"29.98\" />\n </OrderLine>\n !
<Mem
o>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ public void performIteration(Object port) throws Exception
+ {
+ String ret = ((EndpointWrappedDoc) port).sayHello(MESSAGE);
+ String exp = "Hello World Greeting for '" + MESSAGE + "'
today";
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class StringRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ private static final String MESSAGE = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>!
\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <Ord!
erLine position=\"11\" quantity=\"1\">\n <Product
p!
roductId
=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"16\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"17\"
quantity=\"1\">\n <Product pr!
oductId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"18\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"19\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"20\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"21\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"22\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"23\"
quantity=\"1\">\n <Pr!
oduct productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"24\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"25\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"26\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"27\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"28\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"29\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"30\" quantity=\"1\">\n
<Product productId=\"299\" title=\"Pulp Fiction\"
price=\"29.99\" />\n </OrderLine>\n <OrderLine
position=\"31\" quantity=\"1\">\n <Product
productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"32\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"33\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"34\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"35\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin !
\"\n price=\"29.98\" />\n </OrderLine>\n !
<Mem
o>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ public void performIteration(Object port) throws Exception
+ {
+ String ret = ((EndpointWrappedRPC) port).sayHello(MESSAGE);
+ String exp = "Hello World Greeting for '" + MESSAGE + "'
today";
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,93 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ValuesToComplexTypeDocTest extends DataTypesWrappedDocTest implements
BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n
<Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n <Memo>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue =
"!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue;
+
+ private static final ComplexType exp;
+
+ private static final List<String> stringList;
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ exp = new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue,
floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ ComplexType ret = ((EndpointWrappedDoc) port).valuesToComplexType(byteValue,
byteArrayValue, shortValue,
+ intValue, longValue, floatValue, doubleValue, stringValue, qNameValue,
dateValue, calendarValue);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,96 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ValuesToComplexTypeRPCTest extends DataTypesWrappedRPCTest implements
BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n
<Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n <Memo>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue =
"!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue, modifiedCalendarValue;
+
+ private static final ComplexType exp;
+
+ private static final List<String> stringList;
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ modifiedCalendarValue = new GregorianCalendar();
+ modifiedCalendarValue.setTimeInMillis(calendarValue.getTimeInMillis() +
86400000L);
+
+ exp = new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue,
floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ ComplexType ret = ((EndpointWrappedRPC) port).valuesToComplexType(byteValue,
byteArrayValue, shortValue,
+ intValue, longValue, floatValue, doubleValue, stringValue, qNameValue,
dateValue, calendarValue);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringDocTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringDocTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringDocTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ValuesToStringDocTest extends DataTypesWrappedDocTest implements
BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n
<Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n <Memo>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue =
"!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue;
+
+ private static final String exp;
+
+ static
+ {
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ StringBuffer sb = new StringBuffer();
+ sb.append("[byteValue=" + byteValue);
+ sb.append(" byteArrayValue=" + new String(byteArrayValue));
+ sb.append(" shortValue=" + shortValue);
+ sb.append(" intValue=" + intValue);
+ sb.append(" longValue=" + longValue);
+ sb.append(" floatValue=" + floatValue);
+ sb.append(" doubleValue=" + doubleValue);
+ sb.append(" stringValue=" + stringValue);
+ sb.append(" qNameValue=" + qNameValue);
+ sb.append(" dateValue=" + dateValue);
+ sb.append(" calendarValue=" + calendarValue);
+ sb.append("]");
+
+ exp = sb.toString();
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+
+ String ret = ((EndpointWrappedDoc) port).valuesToString(byteValue, byteArrayValue,
shortValue, intValue,
+ longValue, floatValue, doubleValue, stringValue, qNameValue, dateValue,
calendarValue);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringRPCTest.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringRPCTest.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringRPCTest.java 2010-03-09
10:48:17 UTC (rev 11738)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrapped;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ValuesToStringRPCTest extends DataTypesWrappedRPCTest implements
BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed
Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\"
totalAmount=\"64.92\" tax=\"4.95\">\n <Customer
userName=\"user1\" firstName=\"Harry\"
lastName=\"Fletcher\"\n state=\"SD\" />\n
<OrderLines>\n <OrderLine position=\"1\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"2\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"3\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"4\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n
<Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n
<OrderLine position=\"6\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"7\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"8\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"9\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"10\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n
<Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n
price=\"29.98\" />\n </OrderLine>\n <OrderLine
position=\"12\" quantity=\"1\">\n <Product
productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\"
/>\n </OrderLine>\n <OrderLine position=\"13\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n </OrderLine>\n <OrderLine position=\"14\"
quantity=\"1\">\n <Product productId=\"299\"
title=\"Pulp Fiction\" price=\"29.99\" />\n
</OrderLine>\n <OrderLine position=\"15\"
quantity=\"1\">\n <Product productId=\"364\"
title=\"The 40-Year-Old Virgin \"\n price=\"29.98\"
/>\n <Memo>\n
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n
</Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue =
"!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue;
+
+ private static final String exp;
+
+ static
+ {
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ StringBuffer sb = new StringBuffer();
+ sb.append("[byteValue=" + byteValue);
+ sb.append(" byteArrayValue=" + new String(byteArrayValue));
+ sb.append(" shortValue=" + shortValue);
+ sb.append(" intValue=" + intValue);
+ sb.append(" longValue=" + longValue);
+ sb.append(" floatValue=" + floatValue);
+ sb.append(" doubleValue=" + doubleValue);
+ sb.append(" stringValue=" + stringValue);
+ sb.append(" qNameValue=" + qNameValue);
+ sb.append(" dateValue=" + dateValue);
+ sb.append(" calendarValue=" + calendarValue);
+ sb.append("]");
+
+ exp = sb.toString();
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+
+ String ret = ((EndpointWrappedRPC) port).valuesToString(byteValue, byteArrayValue,
shortValue, intValue,
+ longValue, floatValue, doubleValue, stringValue, qNameValue, dateValue,
calendarValue);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret +
"\nExpected:" + exp);
+ }
+ }
+}