You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Steve Loughran <st...@iseran.com> on 2002/07/10 19:10:52 UTC
servlet tests
ok, checked in under tests/servlet the code to run http unit tests against a
servlet; defaults to http://localhost:8080/axis
Current tests
-happy page is happy
-index page returns the index page (and not a directory)
-the StockQuoteService.jws?wsdl returns wsdl
-/services returns "Hi there, this is an AXIS service!"
/servlets/AxisServlet returns "Some Services"
Actually a good argument in favour of GET binding to SOAP is that it does
let httpunit send requests to the endpoints; we really need a more soap
specific extension though.
We also show behaviors that are not necessarily correct
/services/invalid-name doesnt return a 404 error; it should.
/services/invalid-name?wsdl returns 500, when it should maybe return 404
We now have an opportunity to define what our failure error codes should be,
because we have the tests to verify them.
Nb, this should work when not behind a firewall; I need to tack in proxy
handling
ant -f test.xml -Daxis.url=http://nagoya.apache.org:5049/axis
Enjoy, extend, etc.