Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

create a BytesMessage for unit test

843830Jul 15 2005 — edited Jul 15 2005
Hi,

I want to create a BytesMessage for unit test purpose, outside of appserver context. Anybody has done this or investigated this?

I looked online, seems there are some mock objects however they also involved mock session etc. I just want to create a BytesMesage object and pass to the listener.

Not sure if this is doable. Could you please advise?

Thanks.

Jian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2005
Added on Jul 15 2005
3 comments
1,306 views