From 99356bb73f6291ad798dfb579809c355c6db71e4 Mon Sep 17 00:00:00 2001 From: rfeng Date: Fri, 10 Sep 2010 01:12:21 +0000 Subject: Fix the self reference with explicit bindings git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@995627 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/test/BindingTestCase.java | 6 ++-- .../src/test/resources/helloworld.composite | 39 -------------------- .../src/test/resources/jsonp/helloworld.composite | 41 ++++++++++++++++++++++ 3 files changed, 44 insertions(+), 42 deletions(-) delete mode 100644 sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/helloworld.composite create mode 100644 sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/jsonp/helloworld.composite (limited to 'sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test') 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/helloworld.composite deleted file mode 100644 index 065e888bb7..0000000000 --- a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/helloworld.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/jsonp/helloworld.composite b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/jsonp/helloworld.composite new file mode 100644 index 0000000000..c1061147a8 --- /dev/null +++ b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/test/resources/jsonp/helloworld.composite @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3