Bookmark Topic Watch Topic
  • New Topic

Simulate real servlet container in unit test

 
Sky Loi
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi, java experts,

I have to make unit test of servlet which acted as the same as in real container. The requirements are:
1. Setup a test servlet container working as real one (e.g. Jboss).
2. Make multithreaded unit test servlet calls to this test container.
3. Anyway, simulate everything as the real ones.

It would be appreciated if you could share your idea. Thank you.
[ October 06, 2008: Message edited by: Sky Loi ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
"lucky bb", please check your private messages for an important administrative matter.
 
Sky Loi
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sorry, done.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33684
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sky,
I don't understand. If you want a real container, why not use the real container? If you don't want a real container, you could use mock objects and not have any container.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33684
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question in multiple forums - it dilutes discussion and replies. I'll close this copy for you.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic