File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes JUNIT and writting test case for MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "JUNIT and writting test case for MDB" Watch "JUNIT and writting test case for MDB" New topic
Author

JUNIT and writting test case for MDB

Nila Shah
Greenhorn

Joined: Jun 04, 2007
Posts: 7
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

It sounds like you want to write an integration test that listens on the queue. Have you encountered a problem?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Nila Shah
Greenhorn

Joined: Jun 04, 2007
Posts: 7
Yes. you are correct. I want to write the test case in juint to test my listener(MDB) listen to the queue .
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

Ok. What do you have so far? Do you know how to get a message added to the queue?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JUNIT and writting test case for MDB