summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2011-04-20 09:08:04 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2011-04-20 09:08:04 +0000
commitd43336675e890ce50397909dda35e2dfd747eae7 (patch)
tree4ab1f319ce1d005a9c83f8fff32727ad0a8076a6 /sca-java-1.x/trunk
parentb826856dcf822f2fba52826c52ee6a26169da5e5 (diff)
Add test for ServiceReference type
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1095330 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk')
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/DataTypes.java3
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/impl/DataTypesImpl.java4
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-verify/src/test/java/wsdlgen/verify/DataTypesTestCase.java5
3 files changed, 12 insertions, 0 deletions
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/DataTypes.java b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/DataTypes.java
index 5715b24ebb..58c5f3df69 100644
--- a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/DataTypes.java
+++ b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/DataTypes.java
@@ -23,6 +23,7 @@ import java.util.List;
import javax.jws.WebParam;
import javax.jws.soap.SOAPBinding;
import commonj.sdo.DataObject;
+import org.osoa.sca.ServiceReference;
import org.osoa.sca.annotations.Remotable;
@Remotable
@@ -52,6 +53,8 @@ public interface DataTypes {
void testBaseExtension(ExtClass ext);
+ void testServiceReference(ServiceReference ref);
+
void testException() throws Exception;
DataObject testDynamicSDO();
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/impl/DataTypesImpl.java b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/impl/DataTypesImpl.java
index 9d9cf8ca73..cdb8c6e0a1 100644
--- a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/impl/DataTypesImpl.java
+++ b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/impl/DataTypesImpl.java
@@ -23,6 +23,7 @@ import java.util.List;
import javax.jws.WebParam;
import javax.jws.soap.SOAPBinding;
import commonj.sdo.DataObject;
+import org.osoa.sca.ServiceReference;
import wsdlgen.verify.BaseClass;
import wsdlgen.verify.ComplexNumber;
import wsdlgen.verify.DataTypes;
@@ -67,6 +68,9 @@ public class DataTypesImpl implements DataTypes {
public void testBaseExtension(ExtClass ext) {
}
+ public void testServiceReference(ServiceReference ref) {
+ }
+
public void testException() throws Exception {
}
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/test/java/wsdlgen/verify/DataTypesTestCase.java b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/test/java/wsdlgen/verify/DataTypesTestCase.java
index b6dbeecda5..2accda0a6a 100644
--- a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/test/java/wsdlgen/verify/DataTypesTestCase.java
+++ b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/test/java/wsdlgen/verify/DataTypesTestCase.java
@@ -114,6 +114,11 @@ public class DataTypesTestCase extends BaseFramework {
}
@Test
+ public void testServiceReference() throws Exception {
+ assertEquals("xs:anyType", parameterType("testServiceReference"));
+ }
+
+ @Test
public void testException() throws Exception {
assertEquals("xs:string", faultType("testException", "Exception"));
}