Hi everyone,
I am trying write a
junit style
test to invoke a
Struts 2 action class, using Spring 2.5. I have been given a message body of an HTTP Post request that will be sent to our web site from an external source. This message body is plain text exactly of the Post request itself. I want to write a test against this.
I have been looking at the different
Java web testing frameworks like JWebUnit, HtmlUnit and HttpUnit but none seem to do what I want.
I do
not want either:
or
What I want is:
where myMessageBody is a plain-text concatenation of all the fields, which my test (
Tomcat / Struts / Spring) has to unpack and deal with. Why do I want it this way? Because that is the API specification I am given and what I must program against.
Any ideas?