Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 817645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:01:31+00:00 2026-05-15T02:01:31+00:00

How to do unit testing with JMS ? Is it some de-facto for this

  • 0

How to do unit testing with JMS ? Is it some de-facto for this ?

I googled something
– Unit testing for JMS: http://activemq.apache.org/how-to-unit-test-jms-code.html
– jmsTemplate: activemq.apache.org/jmstemplate-gotchas.html
– mockRunner : mockrunner.sourceforge.net/

Do you have any good experience on those and suggestion for me ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T02:01:32+00:00Added an answer on May 15, 2026 at 2:01 am

    In my experience (after trying to do the same thing) when you are using JMS you are doing something like

    1) Get JMS Message
    2) Extract Object from Message
    3) Do something with Object

    From that point of view I would suggest you unit test #3 but don’t bother unit testing #1 or #2 — don’t test the framework — focus on testing your code. I think it’s of little benefit to (unit) test your infrastructure (similarly EJB infrastructure etc.). Things like that are better left to integration / system testing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Unit testing is, roughly speaking, testing bits of your code in isolation with test
I use Test::Unit::Lite for unit testing in Perl. Now, this module looks for .pm
This certainly presupposes that unit testing is a good thing. Our projects have some
How are people unit testing code that uses Linq to SQL?
Duplicate: Unit Testing the Views? Is there any way to unit test View? I
I was doing some unit testing at work and a peculiar error popped up
I am new in unit testing and need some book or tutorial. I have
I have not used Unit Testing so far, and I intend to adopt this
How do you do unit testing when you have some general unit tests more
NOTE: Unit testing is a lot easier to setup nowadays. This tutorial is not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.