summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/modules/binding-jsonp-runtime
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-1.x/trunk/modules/binding-jsonp-runtime')
-rw-r--r--sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldClient.java4
-rw-r--r--sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java5
-rw-r--r--sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldService.java2
-rw-r--r--sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java11
4 files changed, 22 insertions, 0 deletions
diff --git a/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldClient.java b/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldClient.java
index aca47c3d5f..c00815196c 100644
--- a/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldClient.java
+++ b/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldClient.java
@@ -58,4 +58,8 @@ public class HelloWorldClient implements HelloWorldService {
public void sayHello8(String name) {
ref.sayHello8(name);
}
+
+ public int sayHello9(int name) {
+ return ref.sayHello9(name);
+ }
}
diff --git a/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java b/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java
index 01d67757f9..f55f8a8994 100644
--- a/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java
+++ b/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java
@@ -72,4 +72,9 @@ public class HelloWorldImpl implements HelloWorldService {
public void sayHello8(String name) {
System.out.println("Hello void " + name);
}
+
+ public int sayHello9(int name) {
+ System.out.println("Hello void " + name);
+ return name;
+ }
}
diff --git a/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldService.java b/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldService.java
index 79cc293b97..b68d3d5874 100644
--- a/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldService.java
+++ b/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldService.java
@@ -39,5 +39,7 @@ public interface HelloWorldService {
void sayHello7();
void sayHello8(String name);
+
+ int sayHello9(int name);
}
diff --git a/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java b/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java
index bafd6ecd21..6e684c0ac7 100644
--- a/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java
+++ b/sca-java-1.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java
@@ -163,6 +163,17 @@ public class BindingTestCase {
}
@Test
+ public void testIntOut() throws MalformedURLException, IOException {
+ HelloWorldService client = ((SCAClient)node).getService(HelloWorldService.class, "HelloWorldClient");
+
+ try {
+ Assert.assertEquals(28, client.sayHello9(28));
+ } catch (Exception ex){
+ Assert.fail();
+ }
+ }
+
+ @Test
@Ignore
public void waitForInput(){
System.out.println("Press a key");