diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java | 6 | ||||
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/jsonp/helloworld.composite (renamed from sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/helloworld.composite) | 6 |
2 files changed, 7 insertions, 5 deletions
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 27b8cec2f1..3a5aaedbc3 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 @@ -62,7 +62,7 @@ public class BindingTestCase { @Test public void testReference() throws MalformedURLException, IOException { - HelloWorldService client = node.getService(HelloWorldService.class, "HelloWorldClient"); + HelloWorldService client = node.getService(HelloWorldService.class, "HelloWorldClient/HelloWorldService/sca"); Assert.assertEquals("Hello beate", client.sayHello("beate")); Assert.assertEquals("Hello beate arnold", client.sayHello2("beate", "arnold")); @@ -73,7 +73,7 @@ public class BindingTestCase { //@Ignore("TUSCANY-3635") public void testComplexParams() throws MalformedURLException, IOException { - HelloWorldService client = node.getService(HelloWorldService.class, "HelloWorldClient"); + HelloWorldService client = node.getService(HelloWorldService.class, "HelloWorldClient/HelloWorldService/sca"); BeanA bean = new BeanA(); bean.setB(true); @@ -103,7 +103,7 @@ public class BindingTestCase { @BeforeClass public static void init() throws Exception { JettyServer.portDefault = 8085; - node = NodeFactory.newInstance().createNode("helloworld.composite").start(); + node = NodeFactory.newInstance().createNode("jsonp/helloworld.composite").start(); } @AfterClass diff --git a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/helloworld.composite b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/jsonp/helloworld.composite index 065e888bb7..c1061147a8 100644 --- a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/helloworld.composite +++ b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/jsonp/helloworld.composite @@ -25,14 +25,16 @@ <component name="HelloWorldComponent"> <implementation.java class="helloworld.HelloWorldImpl"/> <service name="HelloWorldService" > - <tuscany:binding.jsonp /> + <binding.sca name="sca"/> + <tuscany:binding.jsonp name="HelloWorldService"/> </service> </component> <component name="HelloWorldClient"> <implementation.java class="helloworld.HelloWorldClient"/> <reference name="ref" > - <tuscany:binding.jsonp uri="http://localhost:8085/HelloWorldComponent/HelloWorldService"/> + <binding.sca name="sca"/> + <tuscany:binding.jsonp name="HelloWorldService" uri="http://localhost:8085/HelloWorldComponent/HelloWorldService"/> </reference> </component> |