I am a pretty naive programmer looking forward to test my web app with Fitnesse + (HttpUnit/ServletUnit). The idea is to test the action/representation layer in completeness, I do not intend to test/assert on the final HTML response received rather I am interested in testing the data at the point where my action code forwards the response to JSP. Is there a way I can achieve this ? . Using HttpUnit when I receive the response it contains the final HTML, can I do better and test on httpresponseobject ? Moreover what exactly is the difference between using HttpUnit vs ServletUnit , I mean for what testing behavior in mind would one go for the one over other ?
I'll appreciate the Help.