>I wrote earlier:
>I will try mocking HTTPResponse and HTTPRequest for curiosity sake.

Well, I spent an hour trying to get a valid HttpServerRequest object.  The
closest I got was instantiating
org.apache.catalina.connector.HttpRequestBase, but it threw a NullPointer in
the URL encoding logic.

Nevertheless, I did figure out how to test TemplateLink from junit:

ServerData sd = new ServerData("testServer/",80,"http","Servlet","Context");
TemplateLink link = new TemplateLink(sd);
link.setPage("template.vm");

I am actually embarrased that I didn't see this earlier...

Thanks for listening,

Chris


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to