[ISSUE]how to perform unit testing in J2EE enviornment?

不吃羊肉發表於2003-08-06
Hi, guys

i take a look at the doc of Cactus but it seems that the cactus could test only Servlet and EJB etc.

the issue is: if there is some independent tier(for example: Action class in struts, or Service in OFbiz) in the application.
the essential problem is that all these methods depent on the run-time context such as HttpSession, HttpRequest, etc. how can i perform the unit test? if anybody can provides some guide or frag of codes, i will really appreciate.

am i clear enough? :)

相關文章