It's not a secret anymore!
The moose likes Testing and the fly likes testing MessageContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "testing MessageContext" Watch "testing MessageContext" New topic

testing MessageContext

AnilPrakash Raju
Ranch Hand

Joined: Jul 26, 2004
Posts: 137

I am writing some junit test cases that involves creating messageContext.
Can anyone give any suggestions about how i can creat and test meeageContext?

Thanks in advance

Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
What messageContext? Are we talking about some kind of application framework here?

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
I have no idea either what "MessageContext" you're referring to, but I'll still throw back a suggestion to look into "mock objects" and "test doubles".

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: testing MessageContext
It's not a secret anymore!