From a130ca46f0d6805c3d31f5f6818c8ec6924cac8c Mon Sep 17 00:00:00 2001 From: nash Date: Sun, 13 Sep 2009 22:43:33 +0000 Subject: Copy r810820, r810822 and r810850 changes from 1.5.1 branch to 1.x branch git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814415 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/composite/CompositeTestCase.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'branches/sca-java-1.x/itest/recursive/src/test/java/composite/CompositeTestCase.java') diff --git a/branches/sca-java-1.x/itest/recursive/src/test/java/composite/CompositeTestCase.java b/branches/sca-java-1.x/itest/recursive/src/test/java/composite/CompositeTestCase.java index 5482e47463..928cb3fea9 100644 --- a/branches/sca-java-1.x/itest/recursive/src/test/java/composite/CompositeTestCase.java +++ b/branches/sca-java-1.x/itest/recursive/src/test/java/composite/CompositeTestCase.java @@ -39,13 +39,12 @@ public class CompositeTestCase extends TestCase { } public void test() throws Exception { - try { - System.out.println("Main thread " + Thread.currentThread()); - source.clientMethod("Client.main"); - System.out.println("Sleeping ..."); - Thread.sleep(1000); - } catch (Throwable t) { - t.printStackTrace(); + System.out.println("Main thread " + Thread.currentThread()); + source.clientMethod("Client.main"); + System.out.println("Sleeping ..."); + Thread.sleep(1000); + if (SourceImpl.callbackCount != 2) { + throw new IllegalStateException("Expected callbacks not received"); } } } -- cgit v1.2.3