Author: richard.opalka(a)jboss.com
Date: 2012-10-04 06:40:34 -0400 (Thu, 04 Oct 2012)
New Revision: 16813
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionCA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionFA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionGA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionMA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectCA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectFA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectGA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectMA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectCA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectCAAdapter.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectFA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectFAAdapter.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectGA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectGAAdapter.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectMA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectMAAdapter.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/EndpointIface.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/EndpointImpl.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/JBWS3552TestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/package-info.java
Modified:
shared-testsuite/trunk/testsuite/src/test/ant-import/build-jars-jaxws.xml
Log:
[JBWS-3552] providing test case
Modified: shared-testsuite/trunk/testsuite/src/test/ant-import/build-jars-jaxws.xml
===================================================================
--- shared-testsuite/trunk/testsuite/src/test/ant-import/build-jars-jaxws.xml 2012-10-04
09:49:10 UTC (rev 16812)
+++ shared-testsuite/trunk/testsuite/src/test/ant-import/build-jars-jaxws.xml 2012-10-04
10:40:34 UTC (rev 16813)
@@ -1291,6 +1291,14 @@
</webinf>
</war>
+ <!-- jaxws-jbws3552 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws3552.war"
needxmlfile="false">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws3552/*.class"
/>
+ <exclude
name="org/jboss/test/ws/jaxws/jbws3552/*TestCase.class" />
+ </classes>
+ </war>
+
<war
warfile="${tests.output.dir}/test-libs/jaxws-jbws3367-usecase2.war"
needxmlfile="false">
<classes dir="${tests.output.dir}/test-classes">
<include
name="org/jboss/test/ws/jaxws/jbws3367/EndpointIface.class"/>
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionCA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionCA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionCA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+public class AdaptedExceptionCA extends Exception {
+ private String message;
+ private String description;
+ private int code;
+ private ComplexObjectCA complexObject;
+
+ public AdaptedExceptionCA() {
+ }
+
+ public AdaptedExceptionCA(String message, String description, int code,
ComplexObjectCA complexObject) {
+ this.message = message;
+ this.description = description;
+ this.code = code;
+ this.complexObject = complexObject;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public ComplexObjectCA getComplexObject() {
+ return complexObject;
+ }
+
+ public String toString() {
+ return message + "," + description + "," + code +
"," + complexObject;
+ }
+}
\ No newline at end of file
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionFA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionFA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionFA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+public class AdaptedExceptionFA extends Exception {
+ private String message;
+ private String description;
+ private int code;
+ @XmlJavaTypeAdapter(value = ComplexObjectFAAdapter.class)
+ private ComplexObjectFA complexObject;
+
+ public AdaptedExceptionFA() {
+ }
+
+ public AdaptedExceptionFA(String message, String description, int code,
ComplexObjectFA complexObject) {
+ this.message = message;
+ this.description = description;
+ this.code = code;
+ this.complexObject = complexObject;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public ComplexObjectFA getComplexObject() {
+ return complexObject;
+ }
+
+ public String toString() {
+ return message + "," + description + "," + code +
"," + complexObject;
+ }
+}
\ No newline at end of file
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionGA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionGA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionGA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+public class AdaptedExceptionGA extends Exception {
+ private String message;
+ private String description;
+ private int code;
+ private ComplexObjectGA complexObject;
+
+ public AdaptedExceptionGA() {
+ }
+
+ public AdaptedExceptionGA(String message, String description, int code,
ComplexObjectGA complexObject) {
+ this.message = message;
+ this.description = description;
+ this.code = code;
+ this.complexObject = complexObject;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public ComplexObjectGA getComplexObject() {
+ return complexObject;
+ }
+
+ public String toString() {
+ return message + "," + description + "," + code +
"," + complexObject;
+ }
+}
\ No newline at end of file
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionMA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionMA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedExceptionMA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,81 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+(a)XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
+public class AdaptedExceptionMA extends Exception {
+ private String message;
+ private String description;
+ private int code;
+ private ComplexObjectMA complexObject;
+
+ public AdaptedExceptionMA() {
+ }
+
+ public AdaptedExceptionMA(String message, String description, int code,
ComplexObjectMA complexObject) {
+ this.message = message;
+ this.description = description;
+ this.code = code;
+ this.complexObject = complexObject;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setCode(int code) {
+ this.code = code;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public void setComplexObject(ComplexObjectMA complexObject) {
+ this.complexObject = complexObject;
+ }
+
+ @XmlJavaTypeAdapter(value = ComplexObjectMAAdapter.class)
+ public ComplexObjectMA getComplexObject() {
+ return complexObject;
+ }
+
+ public String toString() {
+ return message + "," + description + "," + code +
"," + complexObject;
+ }
+}
\ No newline at end of file
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectCA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectCA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectCA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+public class AdaptedObjectCA {
+ private String message;
+ private String description;
+ private int code;
+ private ComplexObjectCA complexObject;
+
+ public AdaptedObjectCA() {
+ }
+
+ public AdaptedObjectCA(String message, String description, int code, ComplexObjectCA
complexObject) {
+ this.message = message;
+ this.description = description;
+ this.code = code;
+ this.complexObject = complexObject;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public ComplexObjectCA getComplexObject() {
+ return complexObject;
+ }
+
+ public String toString() {
+ return message + "," + description + "," + code +
"," + complexObject;
+ }
+}
\ No newline at end of file
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectFA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectFA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectFA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+public class AdaptedObjectFA {
+ private String message;
+ private String description;
+ private int code;
+ @XmlJavaTypeAdapter(value = ComplexObjectFAAdapter.class)
+ private ComplexObjectFA complexObject;
+
+ public AdaptedObjectFA() {
+ }
+
+ public AdaptedObjectFA(String message, String description, int code, ComplexObjectFA
complexObject) {
+ this.message = message;
+ this.description = description;
+ this.code = code;
+ this.complexObject = complexObject;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public ComplexObjectFA getComplexObject() {
+ return complexObject;
+ }
+
+ public String toString() {
+ return message + "," + description + "," + code +
"," + complexObject;
+ }
+}
\ No newline at end of file
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectGA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectGA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectGA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+public class AdaptedObjectGA {
+ private String message;
+ private String description;
+ private int code;
+ private ComplexObjectGA complexObject;
+
+ public AdaptedObjectGA() {
+ }
+
+ public AdaptedObjectGA(String message, String description, int code, ComplexObjectGA
complexObject) {
+ this.message = message;
+ this.description = description;
+ this.code = code;
+ this.complexObject = complexObject;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public ComplexObjectGA getComplexObject() {
+ return complexObject;
+ }
+
+ public String toString() {
+ return message + "," + description + "," + code +
"," + complexObject;
+ }
+}
\ No newline at end of file
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectMA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectMA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectMA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,81 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+(a)XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
+public class AdaptedObjectMA {
+ private String message;
+ private String description;
+ private int code;
+ private ComplexObjectMA complexObject;
+
+ public AdaptedObjectMA() {
+ }
+
+ public AdaptedObjectMA(String message, String description, int code, ComplexObjectMA
complexObject) {
+ this.message = message;
+ this.description = description;
+ this.code = code;
+ this.complexObject = complexObject;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setCode(int code) {
+ this.code = code;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public void setComplexObject(ComplexObjectMA complexObject) {
+ this.complexObject = complexObject;
+ }
+
+ @XmlJavaTypeAdapter(value = ComplexObjectMAAdapter.class)
+ public ComplexObjectMA getComplexObject() {
+ return complexObject;
+ }
+
+ public String toString() {
+ return message + "," + description + "," + code +
"," + complexObject;
+ }
+}
\ No newline at end of file
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectCA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectCA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectCA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+@XmlJavaTypeAdapter(value = ComplexObjectCAAdapter.class)
+public class ComplexObjectCA {
+
+ private String one;
+ private String two;
+
+ public ComplexObjectCA() {
+ }
+
+ public ComplexObjectCA(String one, String two) {
+ this.one = one;
+ this.two = two;
+ }
+
+ public String toString() {
+ return one + " " + two;
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectCAAdapter.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectCAAdapter.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectCAAdapter.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import java.util.StringTokenizer;
+
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+
+public class ComplexObjectCAAdapter extends XmlAdapter<String, ComplexObjectCA> {
+ @Override
+ public String marshal(ComplexObjectCA v) throws Exception {
+ return v.toString();
+ }
+
+ @Override
+ public ComplexObjectCA unmarshal(String v) throws Exception {
+ StringTokenizer st = new StringTokenizer(v, " ");
+ return new ComplexObjectCA(st.nextToken(), st.nextToken());
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectFA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectFA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectFA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+public class ComplexObjectFA {
+
+ private String one;
+ private String two;
+
+ public ComplexObjectFA() {
+ }
+
+ public ComplexObjectFA(String one, String two) {
+ this.one = one;
+ this.two = two;
+ }
+
+ public String toString() {
+ return one + " " + two;
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectFAAdapter.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectFAAdapter.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectFAAdapter.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import java.util.StringTokenizer;
+
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+
+public class ComplexObjectFAAdapter extends XmlAdapter<String, ComplexObjectFA> {
+ @Override
+ public String marshal(ComplexObjectFA v) throws Exception {
+ return v.toString();
+ }
+
+ @Override
+ public ComplexObjectFA unmarshal(String v) throws Exception {
+ StringTokenizer st = new StringTokenizer(v, " ");
+ return new ComplexObjectFA(st.nextToken(), st.nextToken());
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectGA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectGA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectGA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+public class ComplexObjectGA {
+
+ private String one;
+ private String two;
+
+ public ComplexObjectGA() {
+ }
+
+ public ComplexObjectGA(String one, String two) {
+ this.one = one;
+ this.two = two;
+ }
+
+ public String toString() {
+ return one + " " + two;
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectGAAdapter.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectGAAdapter.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectGAAdapter.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import java.util.StringTokenizer;
+
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+
+public class ComplexObjectGAAdapter extends XmlAdapter<String, ComplexObjectGA> {
+ @Override
+ public String marshal(ComplexObjectGA v) throws Exception {
+ return v.toString();
+ }
+
+ @Override
+ public ComplexObjectGA unmarshal(String v) throws Exception {
+ StringTokenizer st = new StringTokenizer(v, " ");
+ return new ComplexObjectGA(st.nextToken(), st.nextToken());
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectMA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectMA.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectMA.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+public class ComplexObjectMA {
+
+ private String one;
+ private String two;
+
+ public ComplexObjectMA() {
+ }
+
+ public ComplexObjectMA(String one, String two) {
+ this.one = one;
+ this.two = two;
+ }
+
+ public String toString() {
+ return one + " " + two;
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectMAAdapter.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectMAAdapter.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/ComplexObjectMAAdapter.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import java.util.StringTokenizer;
+
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+
+public class ComplexObjectMAAdapter extends XmlAdapter<String, ComplexObjectMA> {
+ @Override
+ public String marshal(ComplexObjectMA v) throws Exception {
+ return v.toString();
+ }
+
+ @Override
+ public ComplexObjectMA unmarshal(String v) throws Exception {
+ StringTokenizer st = new StringTokenizer(v, " ");
+ return new ComplexObjectMA(st.nextToken(), st.nextToken());
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/EndpointIface.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/EndpointIface.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/EndpointIface.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.jws.WebService;
+
+@WebService
+public interface EndpointIface {
+ AdaptedObjectCA echoCA(AdaptedObjectCA ao);
+
+ AdaptedObjectFA echoFA(AdaptedObjectFA ao);
+
+ AdaptedObjectGA echoGA(AdaptedObjectGA ao);
+
+ AdaptedObjectMA echoMA(AdaptedObjectMA ao);
+
+ void throwExceptionCA() throws AdaptedExceptionCA;
+
+ void throwExceptionFA() throws AdaptedExceptionFA;
+
+ void throwExceptionGA() throws AdaptedExceptionGA;
+
+ void throwExceptionMA() throws AdaptedExceptionMA;
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/EndpointImpl.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/EndpointImpl.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/EndpointImpl.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import javax.jws.WebService;
+
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.jbws3552.EndpointIface")
+public class EndpointImpl {
+ public AdaptedObjectCA echoCA(AdaptedObjectCA ao) {
+ return ao;
+ }
+
+ public AdaptedObjectFA echoFA(AdaptedObjectFA ao) {
+ return ao;
+ }
+
+ public AdaptedObjectGA echoGA(AdaptedObjectGA ao) {
+ return ao;
+ }
+
+ public AdaptedObjectMA echoMA(AdaptedObjectMA ao) {
+ return ao;
+ }
+
+ public void throwExceptionCA() throws AdaptedExceptionCA {
+ throw new AdaptedExceptionCA("exception message", "exception
description", 666, new ComplexObjectCA("c", "d"));
+ }
+
+ public void throwExceptionFA() throws AdaptedExceptionFA {
+ throw new AdaptedExceptionFA("exception message", "exception
description", 666, new ComplexObjectFA("c", "d"));
+ }
+
+ public void throwExceptionGA() throws AdaptedExceptionGA {
+ throw new AdaptedExceptionGA("exception message", "exception
description", 666, new ComplexObjectGA("c", "d"));
+ }
+
+ public void throwExceptionMA() throws AdaptedExceptionMA {
+ throw new AdaptedExceptionMA("exception message", "exception
description", 666, new ComplexObjectMA("c", "d"));
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/JBWS3552TestCase.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/JBWS3552TestCase.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/JBWS3552TestCase.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,105 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jbws3552;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-3552] @XmlJavaTypeAdapter ignored on exception classes.
+ *
+ * Suffixes abbreviations used in this test case in class names are:
+ * <ul>
+ * <li>CA - class level access</li>
+ * <li>FA - field level access</li>
+ * <li>MA - method level access</li>
+ * <li>GA - package level access</li>
+ * </ul>
+ * @author <a href="ropalka(a)redhat.com">Richard Opalka</a>
+ */
+public class JBWS3552TestCase extends JBossWSTest {
+ public static Test suite() {
+ return new JBossWSTestSetup(JBWS3552TestCase.class,
"jaxws-jbws3552.war");
+ }
+
+ private EndpointIface getProxy() throws Exception {
+ final URL wsdlURL = new URL("http://" + getServerHost() +
":8080/jaxws-jbws3552/EndpointImpl?wsdl");
+ final QName serviceName = new
QName("http://jbws3552.jaxws.ws.test.jboss.org/",
"EndpointImplService");
+ final Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(EndpointIface.class);
+ }
+
+ public void testEchoFA() throws Exception {
+ EndpointIface endpoint = getProxy();
+ AdaptedObjectFA aoFA = new AdaptedObjectFA("object message",
"object description", 444, new ComplexObjectFA("a", "b"));
+ assertEquals("object message,object description,444,a b",
endpoint.echoFA(aoFA).toString());
+ }
+
+ public void testEchoGA() throws Exception {
+ EndpointIface endpoint = getProxy();
+ AdaptedObjectGA aoGA = new AdaptedObjectGA("object message",
"object description", 444, new ComplexObjectGA("a", "b"));
+ assertEquals("object message,object description,444,a b",
endpoint.echoGA(aoGA).toString());
+ }
+
+ public void testEchoMA() throws Exception {
+ EndpointIface endpoint = getProxy();
+ AdaptedObjectMA aoMA = new AdaptedObjectMA("object message",
"object description", 444, new ComplexObjectMA("a", "b"));
+ assertEquals("object message,object description,444,a b",
endpoint.echoMA(aoMA).toString());
+ }
+
+ public void testExceptionFA() throws Exception {
+ EndpointIface endpoint = getProxy();
+ try {
+ endpoint.throwExceptionFA();
+ fail("Expected exception not thrown");
+ } catch (AdaptedExceptionFA e) {
+ assertEquals("exception message,exception description,666,c d",
e.toString());
+ }
+ }
+
+ public void testExceptionGA() throws Exception {
+ EndpointIface endpoint = getProxy();
+ try {
+ endpoint.throwExceptionGA();
+ fail("Expected exception not thrown");
+ } catch (AdaptedExceptionGA e) {
+ assertEquals("exception message,exception description,666,c d",
e.toString());
+ }
+ }
+
+ public void testExceptionMA() throws Exception {
+ EndpointIface endpoint = getProxy();
+ try {
+ endpoint.throwExceptionMA();
+ fail("Expected exception not thrown");
+ } catch (AdaptedExceptionMA e) {
+ assertEquals("exception message,exception description,666,c d",
e.toString());
+ }
+ }
+}
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/package-info.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/package-info.java
(rev 0)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/package-info.java 2012-10-04
10:40:34 UTC (rev 16813)
@@ -0,0 +1,27 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.
+ */
+@XmlJavaTypeAdapters({ @XmlJavaTypeAdapter(type = ComplexObjectGA.class, value =
ComplexObjectGAAdapter.class) })
+package org.jboss.test.ws.jaxws.jbws3552;
+
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapters;
+