Author: richard.opalka(a)jboss.com
Date: 2012-11-30 04:37:23 -0500 (Fri, 30 Nov 2012)
New Revision: 17046
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectCA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectFA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectGA.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectMA.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/JBWS3552TestCase.java
Log:
[JBWS-3552] more meaning full method params test cases
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectCA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectCA.java 2012-11-29
12:20:24 UTC (rev 17045)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectCA.java 2012-11-30
09:37:23 UTC (rev 17046)
@@ -28,17 +28,15 @@
public class AbstractObjectCA {
private String message;
private String description;
- private int code;
private ComplexObjectCA complexObject;
public AbstractObjectCA() {
super();
}
- public AbstractObjectCA(String message, String description, int code, ComplexObjectCA
complexObject) {
+ public AbstractObjectCA(String message, String description, ComplexObjectCA
complexObject) {
this.message = message;
this.description = description;
- this.code = code;
this.complexObject = complexObject;
}
@@ -50,15 +48,11 @@
return description;
}
- public int getCode() {
- return code;
- }
-
public ComplexObjectCA getComplexObject() {
return complexObject;
}
public String toString() {
- return message + "," + description + "," + code +
"," + complexObject;
+ return message + "," + description + "," + complexObject;
}
}
\ No newline at end of file
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectFA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectFA.java 2012-11-29
12:20:24 UTC (rev 17045)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectFA.java 2012-11-30
09:37:23 UTC (rev 17046)
@@ -28,7 +28,6 @@
public class AbstractObjectFA {
private String message;
private String description;
- private int code;
@XmlJavaTypeAdapter(value = ComplexObjectFAAdapter.class)
private ComplexObjectFA complexObject;
@@ -36,10 +35,9 @@
super();
}
- public AbstractObjectFA(String message, String description, int code, ComplexObjectFA
complexObject) {
+ public AbstractObjectFA(String message, String description, ComplexObjectFA
complexObject) {
this.message = message;
this.description = description;
- this.code = code;
this.complexObject = complexObject;
}
@@ -51,15 +49,11 @@
return description;
}
- public int getCode() {
- return code;
- }
-
public ComplexObjectFA getComplexObject() {
return complexObject;
}
public String toString() {
- return message + "," + description + "," + code +
"," + complexObject;
+ return message + "," + description + "," + complexObject;
}
}
\ No newline at end of file
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectGA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectGA.java 2012-11-29
12:20:24 UTC (rev 17045)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectGA.java 2012-11-30
09:37:23 UTC (rev 17046)
@@ -28,17 +28,15 @@
public class AbstractObjectGA {
private String message;
private String description;
- private int code;
private ComplexObjectGA complexObject;
public AbstractObjectGA() {
super();
}
- public AbstractObjectGA(String message, String description, int code, ComplexObjectGA
complexObject) {
+ public AbstractObjectGA(String message, String description, ComplexObjectGA
complexObject) {
this.message = message;
this.description = description;
- this.code = code;
this.complexObject = complexObject;
}
@@ -50,15 +48,11 @@
return description;
}
- public int getCode() {
- return code;
- }
-
public ComplexObjectGA getComplexObject() {
return complexObject;
}
public String toString() {
- return message + "," + description + "," + code +
"," + complexObject;
+ return message + "," + description + "," + complexObject;
}
}
\ No newline at end of file
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectMA.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectMA.java 2012-11-29
12:20:24 UTC (rev 17045)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AbstractObjectMA.java 2012-11-30
09:37:23 UTC (rev 17046)
@@ -28,17 +28,15 @@
public class AbstractObjectMA {
private String message;
private String description;
- private int code;
private ComplexObjectMA complexObject;
public AbstractObjectMA() {
super();
}
- public AbstractObjectMA(String message, String description, int code, ComplexObjectMA
complexObject) {
+ public AbstractObjectMA(String message, String description, ComplexObjectMA
complexObject) {
this.message = message;
this.description = description;
- this.code = code;
this.complexObject = complexObject;
}
@@ -58,14 +56,6 @@
return description;
}
- public void setCode(int code) {
- this.code = code;
- }
-
- public int getCode() {
- return code;
- }
-
public void setComplexObject(ComplexObjectMA complexObject) {
this.complexObject = complexObject;
}
@@ -76,6 +66,6 @@
}
public String toString() {
- return message + "," + description + "," + code +
"," + complexObject;
+ return message + "," + description + "," + complexObject;
}
}
\ No newline at end of file
Modified:
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 2012-11-29
12:20:24 UTC (rev 17045)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectCA.java 2012-11-30
09:37:23 UTC (rev 17046)
@@ -26,12 +26,22 @@
@XmlAccessorType(XmlAccessType.FIELD)
public class AdaptedObjectCA extends AbstractObjectCA {
+ private int code;
public AdaptedObjectCA() {
super();
}
- public AdaptedObjectCA(String message, String description, int code, ComplexObjectCA
complexObject) {
- super(message, description, code, complexObject);
+ public AdaptedObjectCA(int code, String message, String description, ComplexObjectCA
complexObject) {
+ super(message, description, complexObject);
+ this.code = code;
}
+
+ public int getCode() {
+ return code;
+ }
+
+ public String toString() {
+ return code + "," + super.toString();
+ }
}
\ No newline at end of file
Modified:
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 2012-11-29
12:20:24 UTC (rev 17045)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectFA.java 2012-11-30
09:37:23 UTC (rev 17046)
@@ -26,12 +26,22 @@
@XmlAccessorType(XmlAccessType.FIELD)
public class AdaptedObjectFA extends AbstractObjectFA {
+ private int code;
public AdaptedObjectFA() {
super();
}
- public AdaptedObjectFA(String message, String description, int code, ComplexObjectFA
complexObject) {
- super(message, description, code, complexObject);
+ public AdaptedObjectFA(int code, String message, String description, ComplexObjectFA
complexObject) {
+ super(message, description, complexObject);
+ this.code = code;
}
+
+ public int getCode() {
+ return code;
+ }
+
+ public String toString() {
+ return code + "," + super.toString();
+ }
}
\ No newline at end of file
Modified:
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 2012-11-29
12:20:24 UTC (rev 17045)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectGA.java 2012-11-30
09:37:23 UTC (rev 17046)
@@ -26,12 +26,22 @@
@XmlAccessorType(XmlAccessType.FIELD)
public class AdaptedObjectGA extends AbstractObjectGA {
+ private int code;
public AdaptedObjectGA() {
super();
}
- public AdaptedObjectGA(String message, String description, int code, ComplexObjectGA
complexObject) {
- super(message, description, code, complexObject);
+ public AdaptedObjectGA(int code, String message, String description, ComplexObjectGA
complexObject) {
+ super(message, description, complexObject);
+ this.code = code;
}
+
+ public int getCode() {
+ return code;
+ }
+
+ public String toString() {
+ return code + "," + super.toString();
+ }
}
\ No newline at end of file
Modified:
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 2012-11-29
12:20:24 UTC (rev 17045)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/AdaptedObjectMA.java 2012-11-30
09:37:23 UTC (rev 17046)
@@ -26,12 +26,26 @@
@XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
public class AdaptedObjectMA extends AbstractObjectMA {
+ private int code;
public AdaptedObjectMA() {
super();
}
- public AdaptedObjectMA(String message, String description, int code, ComplexObjectMA
complexObject) {
- super(message, description, code, complexObject);
+ public AdaptedObjectMA(int code, String message, String description, ComplexObjectMA
complexObject) {
+ super(message, description, complexObject);
+ this.code = code;
}
+
+ public void setCode(int code) {
+ this.code = code;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public String toString() {
+ return code + "," + super.toString();
+ }
}
\ No newline at end of file
Modified:
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 2012-11-29
12:20:24 UTC (rev 17045)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3552/JBWS3552TestCase.java 2012-11-30
09:37:23 UTC (rev 17046)
@@ -57,50 +57,50 @@
public void testEchoCA() throws Exception {
EndpointIface endpoint = getProxy();
- AdaptedObjectCA aoCA = new AdaptedObjectCA("object message",
"object description", 444, new ComplexObjectCA("a", "b"));
- assertEquals("object message,object description,444,a b",
endpoint.echoCA(aoCA).toString());
+ AdaptedObjectCA aoCA = new AdaptedObjectCA(444, "object message",
"object description", new ComplexObjectCA("a", "b"));
+ assertEquals("444,object message,object description,a b",
endpoint.echoCA(aoCA).toString());
}
public void testEchoAbstractCA() throws Exception {
EndpointIface endpoint = getProxy();
- AdaptedObjectCA aoCA = new AdaptedObjectCA("object message",
"object description", 444, new ComplexObjectCA("a", "b"));
- assertEquals("object message,object description,444,a b",
endpoint.echoAbstractCA(aoCA).toString());
+ AbstractObjectCA aoCA = new AdaptedObjectCA(444, "object message",
"object description", new ComplexObjectCA("a", "b"));
+ assertEquals("444,object message,object description,a b",
endpoint.echoAbstractCA(aoCA).toString());
}
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());
+ AdaptedObjectFA aoFA = new AdaptedObjectFA(444, "object message",
"object description", new ComplexObjectFA("a", "b"));
+ assertEquals("444,object message,object description,a b",
endpoint.echoFA(aoFA).toString());
}
public void testEchoAbstractFA() 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.echoAbstractFA(aoFA).toString());
+ AbstractObjectFA aoFA = new AdaptedObjectFA(444, "object message",
"object description", new ComplexObjectFA("a", "b"));
+ assertEquals("444,object message,object description,a b",
endpoint.echoAbstractFA(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());
+ AdaptedObjectGA aoGA = new AdaptedObjectGA(444, "object message",
"object description", new ComplexObjectGA("a", "b"));
+ assertEquals("444,object message,object description,a b",
endpoint.echoGA(aoGA).toString());
}
public void testEchoAbstractGA() 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.echoAbstractGA(aoGA).toString());
+ AbstractObjectGA aoGA = new AdaptedObjectGA(444, "object message",
"object description", new ComplexObjectGA("a", "b"));
+ assertEquals("444,object message,object description,a b",
endpoint.echoAbstractGA(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());
+ AdaptedObjectMA aoMA = new AdaptedObjectMA(444, "object message",
"object description", new ComplexObjectMA("a", "b"));
+ assertEquals("444,object message,object description,a b",
endpoint.echoMA(aoMA).toString());
}
public void testEchoAbstractMA() 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.echoAbstractMA(aoMA).toString());
+ AbstractObjectMA aoMA = new AdaptedObjectMA(444, "object message",
"object description", new ComplexObjectMA("a", "b"));
+ assertEquals("444,object message,object description,a b",
endpoint.echoAbstractMA(aoMA).toString());
}
public void testExceptionCA() throws Exception {