I have written a helper function that can retrieve content from a url. This function can also parse a Map
of parameters and feed a url or a body on request depending on GET
or POST
method. Let s say this function also do other things (change headers, cookies etc...). How can I test this function against an http(s) server ? How to simulate a fake servlet that will answer to the request made by this function ?
I ve seen that we can use mock object, or other library that are specialized in servlet unit testing. But it doesn t seem to fit my needs as I trully need to test the request and its answer without changing the function content.
Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...