abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Moseley" <...@osafoundation.org>
Subject Re: unit testing RegexTargetResolver
Date Tue, 09 Oct 2007 14:43:11 GMT
On 10/9/07, Chris Berry <chriswberry@gmail.com> wrote:

> I can get a hold of the RegexTargetResolver pretty easily.
> But it requires a Request object;
>          public Target resolve(Request request)
> And I don't see an easy way to create a Request to use in this scenario.

How about a mock implementation of Request? You could perhaps base it
on Spring's MockHttpServlet, as i've done here:


View raw message