summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/contrib
diff options
context:
space:
mode:
authorscottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68>2011-02-15 14:52:59 +0000
committerscottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68>2011-02-15 14:52:59 +0000
commit70239a9382c582e6db0d2419b487745fd6672e75 (patch)
treeb3053c85cfd71d14e1c889cc5dc036ab88f179d7 /sca-java-2.x/contrib
parent5fa13700d2f3ffbdad03d772f2e2398bb3371a36 (diff)
Enable async bare test now that TUSCANY-3832 is fixed.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1070929 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/contrib')
-rw-r--r--sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/UpperSampleAsyncReferenceBareImpl.java9
-rw-r--r--sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/impl/SampleNativeAsyncBareTestCase.java3
-rw-r--r--sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/resources/testnativeasyncbare.composite5
3 files changed, 12 insertions, 5 deletions
diff --git a/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/UpperSampleAsyncReferenceBareImpl.java b/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/UpperSampleAsyncReferenceBareImpl.java
index ff1da8f8bf..cbddb7f235 100644
--- a/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/UpperSampleAsyncReferenceBareImpl.java
+++ b/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/UpperSampleAsyncReferenceBareImpl.java
@@ -74,4 +74,13 @@ public class UpperSampleAsyncReferenceBareImpl {
this.response = response;
latch.countDown();
}
+
+ public String upper2(String s) {
+ throw new UnsupportedOperationException();
+ }
+
+ public String upperVoid(String s) {
+ throw new UnsupportedOperationException();
+ }
+
}
diff --git a/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/impl/SampleNativeAsyncBareTestCase.java b/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/impl/SampleNativeAsyncBareTestCase.java
index d40fdbf6b3..40bda31cfb 100644
--- a/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/impl/SampleNativeAsyncBareTestCase.java
+++ b/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/java/sample/impl/SampleNativeAsyncBareTestCase.java
@@ -55,12 +55,11 @@ public class SampleNativeAsyncBareTestCase {
}
@Test
- @Ignore
public void testReference() {
System.out.println("SampleNaiveAsyncBareTestCase.testReference");
Upper upper = node.getService(Upper.class, "SampleNativeAsyncReference");
final String r = upper.upper("async");
System.out.println(r);
- assertEquals("ASYNC", r);
+ assertEquals("ARG0_ASYNCARG1_ASYNC", r);
}
}
diff --git a/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/resources/testnativeasyncbare.composite b/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/resources/testnativeasyncbare.composite
index 004ef13559..7ce5358981 100644
--- a/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/resources/testnativeasyncbare.composite
+++ b/sca-java-2.x/contrib/samples/extending-tuscany/implementation-sample/src/test/resources/testnativeasyncbare.composite
@@ -24,9 +24,8 @@
<component name="SampleNativeAsyncReference">
<t:implementation.sample class="sample.UpperSampleAsyncReferenceBareImpl"/>
- <reference name="upper" target="SampleNativeAsyncService">
- <interface.wsdl interface="http://sample/upper-async-wrapped#wsdl.interface(UpperWrapped)"/>
- </reference>
+ <!-- Removed interface.wsdl on reference config to show it was inconsequential -->
+ <reference name="upper" target="SampleNativeAsyncService"/>
</component>
<component name="SampleNativeAsyncService">