diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-12 15:19:00 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-12 15:19:00 +0000 |
commit | 44d63af7498f462eeb20a4b480be8eeb8a3dd45c (patch) | |
tree | 6db1a21dac9a8cd7560b4dc537be5fe89de85b27 /sca-java-2.x/trunk/modules/binding-jsonp-runtime | |
parent | 9ae31fa0636d330098fd0be9e4d9a5b0e8c490c6 (diff) |
Make component implementation change a value in the ban to prove that it's processed it
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@984828 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jsonp-runtime')
2 files changed, 19 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java index 8e7f0ae271..94b7c64dba 100644 --- a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java +++ b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java @@ -30,6 +30,7 @@ public class HelloWorldImpl implements HelloWorldService { } public BeanA sayHello3(BeanA bean) { + bean.setS("XYZ"); return bean; } diff --git a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java index 4e7bca0144..6923243d1a 100644 --- a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java +++ b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java @@ -80,8 +80,24 @@ public class BindingTestCase { bean.setX(2); bean.setX(5); - Assert.assertEquals("Fred", client.sayHello3(bean).getS()); - } + Assert.assertEquals("XYZ", client.sayHello3(bean).getS()); + } + + /* + * Uncomment to keep the server running so you can ping it manually from a browser + * try: + * http://localhost:8085/HelloWorldComponent/HelloWorldService/sayHello3?bean={%22b%22:%22true%22,%22s%22:%22a%20string%22,%22x%22:%2227%22,%22y%22:%2213%22}&callback=submitSucess + */ + @Test + @Ignore + public void waitForInput(){ + System.out.println("Press a key"); + try { + System.in.read(); + } catch (Exception ex){ + // do nothing + } + } @BeforeClass public static void init() throws Exception { |