[jboss-svn-commits] JBossWS SVN: r848 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/samples/jmstransport
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Aug 28 11:30:54 EDT 2006
Author: thomas.diesler at jboss.com
Date: 2006-08-28 11:30:49 -0400 (Mon, 28 Aug 2006)
New Revision: 848
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/samples/jmstransport/JMSTransportTestCase.java
Log:
Use Thread.sleep() instead of CountDown
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/samples/jmstransport/JMSTransportTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/samples/jmstransport/JMSTransportTestCase.java 2006-08-28 15:21:37 UTC (rev 847)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/samples/jmstransport/JMSTransportTestCase.java 2006-08-28 15:30:49 UTC (rev 848)
@@ -26,8 +26,6 @@
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.util.xml.DOMUtils;
-import EDU.oswego.cs.dl.util.concurrent.CountDown;
-
/**
* A web service client that connects to a MDB endpoint.
*
@@ -36,8 +34,6 @@
*/
public class JMSTransportTestCase extends JBossWSTest
{
- static CountDown done = new CountDown(1);
-
public static Test suite() throws Exception
{
return JBossWSTestSetup.newTestSetup(JMSTransportTestCase.class, "jbossws-samples-jmstransport.sar");
@@ -86,7 +82,8 @@
sender.send(message);
sender.close();
- done.acquire();
+ Thread.sleep(500);
+
assertNotNull("Expected response message", responseListener.resMessage);
assertEquals(DOMUtils.parse(resMessage), DOMUtils.parse(responseListener.resMessage));
@@ -101,7 +98,6 @@
public void onMessage(Message msg)
{
- done.release();
TextMessage textMessage = (TextMessage)msg;
try
{
More information about the jboss-svn-commits
mailing list