Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

junit and HttpServletRequest  RSS feed

 
Adam Sykes
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to emulate an HttpServletRequest for the purposes of testing someing in a junit fixture. I have created a dummy unit test HttpServletRequest by implementing the interface. Can anyone give me quick pointers on setting up the basic attributes which would be sent to the server i.e pathInfo etc.....?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!