mardi 29 juillet 2008

Unit testing within a container.

Problem: how can we test our code which relies on services provided by a JEE container ?

  • Write stubs which provide a fake version of these services
Drawback: writing these extra classes - as well as pluging them in - will require extra work. Moreover, the tested behaviour will not be the same as customer production code.

  • A better solution ?
Embed your unit tests in Tomcat:


Aucun commentaire: