diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-10 14:25:06 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-10 14:25:06 +0000 |
commit | 6405423f004f4b809c092d717ce0e32aefe8e3e0 (patch) | |
tree | af32bf2f60f9ec55c014cefe2439c9662f8f8ee7 | |
parent | 88c1f28d1e27edc235bb8d601e18c46a79539ee1 (diff) |
Fix testcase to check if the service has been invoked before waiting to shave 10 seconds off the build time
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@693851 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/sca/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/sca/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java b/java/sca/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java index 94581876fd..55e5a84c1c 100644 --- a/java/sca/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java +++ b/java/sca/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java @@ -55,11 +55,13 @@ public class NonSCAClientTestCase { synchronized (OneWayServiceImpl.mutex) { - sendTextMessage("dynamicQueues/OneWayService", "<arg0>Petra</arg0>"); + sendTextMessage("dynamicQueues/OneWayService", "<ns2:sayHello xmlns:ns2=\"http://jms.binding.sca.tuscany.apache.org/\"><arg0>Petra</arg0></ns2:sayHello>"); // wait up to 10 seconds but it will likely be a lot less // as the service invocation will wake this up earlier - OneWayServiceImpl.mutex.wait(10000); + if (OneWayServiceImpl.name == null) { + OneWayServiceImpl.mutex.wait(10000); + } } assertEquals("Petra", OneWayServiceImpl.name); } |