You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Alan Pearlman Spencer <Al...@Mobileaware.com> on 2001/11/21 11:19:52 UTC
Using JUnit or Cactus for testing JMS
Hi All,
I was wondering if you could help me with something...
I am trying to write Unit/System tests for a system based on JMS.
I am trying to test the mechanism that decides whether a message
should be sent and to where.
So, I would like to, in my test, create an object to receive a message,
configure the system, send the message and fail the test if the message
does not arrive.
I was thinking of having the test do a
for() {
sleep();
ok=checkreciept();
if(ok)
break;
}
if(!ok)
// fail.
With the for loop and the sleep adding up to some timeout...
This seems a bit dodgy,
Is this the only way?
Thanks,
Alan.
Alan Pearlman-Spencer
MobileAware Ltd.
3225 Lake Drive,
National Digital Park,
CityWest Business Campus,
Dublin 24.
Ireland.
Phone: +353 (0)1 2410 500
Fax: +353 (0)1 2410 501
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>