Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JUNIT and writting test case for MDB  RSS feed

 
Nila Shah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am new to JUnit.
I am trying to write a JUNIT test case to test my Message Driven bean.
Basically my MDB is working as a listener for the posted messages to one queue.
Please let me know if you have any sample code or examples.

Thanks,
Jolly
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36396
453
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you want to write an integration test that listens on the queue. Have you encountered a problem?
 
Nila Shah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. you are correct. I want to write the test case in juint to test my listener(MDB) listen to the queue .
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36396
453
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. What do you have so far? Do you know how to get a message added to the queue?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!