test messages on queue
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   pp_cc
Posted On:   Thursday, March 29, 2007 04:28 PM

I have 2 queues.One is "MessageIn" and the other is "MessageOut".I put a message in the "MessageIn" queue from a file and the same message is retrieved in "MessageOut" queue.I want to check whether I have got the same message on "MessageOut" queue using Junit.I am new to Junit tool.Please let me know which method to use for testing.

Re: test messages on queue

Posted By:   Dharma_S  
Posted On:   Wednesday, April 4, 2007 10:11 AM

Hi,

Before sending (putting) a msg into the "MessageIn" queue take that string into a varibale and once after your getting the messgae from the "MessageOut" queue test it with the one you already having with the one of the JUnit's class junit.framework.Assert 's method assertEquals()
About | Sitemap | Contact