I was finally able to get it to work with PowerMock.  I forgot to add both
the WebApplication and the AjaxRequestTarget to the PrepareForTest
annotation.

Thanks for your help,
Tom


On Fri, Nov 30, 2012 at 10:40 AM, Martin Grigorov <[email protected]>wrote:

> Sorry.
> See
> org.apache.wicket.protocol.http.WebApplication#setAjaxRequestTargetProvider
>
>
> On Fri, Nov 30, 2012 at 4:34 PM, Tom Norton <
> [email protected]> wrote:
>
> > I tried to implement this, but newAjaxRequestTarget is final :(
> >
> >
> > On Fri, Nov 30, 2012 at 10:24 AM, Tom Norton <
> > [email protected]> wrote:
> >
> > > Thanks a bunch :D
> > >
> > >
> > > On Fri, Nov 30, 2012 at 10:19 AM, Martin Grigorov <
> [email protected]
> > >wrote:
> > >
> > >> You can use PowerMock to register a mock via
> > >> WebApplication#newAjaxRequestTarget()
> > >>
> > >>
> > >> On Fri, Nov 30, 2012 at 4:16 PM, Tom Norton <
> > >> [email protected]> wrote:
> > >>
> > >> > Is it possible to test that appendJavascript is called on wicket
> 1.5?
> > >> >
> > >> > Thanks,
> > >> > Tom
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> Martin Grigorov
> > >> jWeekend
> > >> Training, Consulting, Development
> > >> http://jWeekend.com <http://jweekend.com/>
> > >>
> > >
> > >
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>

Reply via email to