Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mocking JNDI

 
Andy Fisher
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to use Mockrunner in a container to stub some JMS call, but am running into problems with the JNDI lookups due to the fact that the Mockrunner classes aren't Serializable.

I'm therefore attempting to copy all of the "container-set" bindings into Mockrunner's "mock" InitialContext.

Does anyone know if this is possible?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic