This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JUNIT and writting test case for MDB

 
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
Marshal
Posts: 34973
379
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
Marshal
Posts: 34973
379
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