wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: WicketTester with custom html placement
Date Thu, 27 Sep 2012 21:44:03 GMT
Hi,

What is WebAppResourceStreamLocator ?
It is not part of Wicket.

You just need to point to a folder with the .html files.
In Wicket 6: getResourceSettings().getResourceFinders().add(new
Path(new Folder("src/main/webapp")))

On Thu, Sep 27, 2012 at 10:22 PM, rdev <devstuff2012@gmail.com> wrote:
> Hi there!
>
> I am running in circles with this one, maybe you guys can help me. This is
> the problem:
> Im trying to use WicketTester to run some unit tests on an existing
> application. It has overriden WebApplication's init() to load the html files
> from some folder at the root of the web content area, with a
> WebAppResourceStreamLocator.
>
> But i keep getting that message that it cant find the html markup. From
> that, i gather that its not looking for them at the web content folder. I´ve
> tried to pass an instance of my class that extends WebApplication to
> WicketTester contructor, but i keep getting the error: cant find the html
> markup.
>
> Is there a way to use WicketTester with a WebApplication thta uses custom
> html placement? (custom as in "not in the same folder of the class file")
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-with-custom-html-placement-tp4652460.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message