summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-02-07 23:07:58 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-02-07 23:07:58 +0000
commiteeaf84366a7e92085ffdec489f3a2efd3528aa76 (patch)
tree643312571fbbe399bc739774498bfc2a2c323891 /sca-java-2.x/trunk/testing
parent1523a8305daba91eb28d1fe65811b2a6bb41cc79 (diff)
Enable the allowsPassByReference support
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1068209 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/testing')
-rw-r--r--sca-java-2.x/trunk/testing/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java1
-rw-r--r--sca-java-2.x/trunk/testing/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java6
2 files changed, 4 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java b/sca-java-2.x/trunk/testing/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java
index 541b1f1508..efeb6f91fe 100644
--- a/sca-java-2.x/trunk/testing/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java
+++ b/sca-java-2.x/trunk/testing/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java
@@ -27,6 +27,7 @@ import org.oasisopen.sca.annotation.Service;
public class RemoteClientComponentImpl implements RemoteClientComponent, RemoteCallbackInterface {
@Reference
+ @AllowsPassByReference
protected RemoteServiceComponent aCallBackService;
private static String callbackValue;
private static String onewayValue;
diff --git a/sca-java-2.x/trunk/testing/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java b/sca-java-2.x/trunk/testing/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java
index d04351f51e..3936600cb7 100644
--- a/sca-java-2.x/trunk/testing/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java
+++ b/sca-java-2.x/trunk/testing/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java
@@ -105,9 +105,9 @@ public class InterfacesTestCase {
assertEquals("BBComponent1", remote.foo2(1, "B"));
// TODO: TUSCANY-3479, investigate Node/SCAClient pass by reference
-// // Test allowsPassByReference
-// assertEquals("BComponent", remote.foo3(po));
-// assertEquals("BComponent", po.field1);
+ // Test allowsPassByReference
+ assertEquals("BComponent", remote.foo3(po));
+ assertEquals("BComponent", po.field1);
} catch (Exception e) {
e.printStackTrace();
fail();