addResourceFolder in unit tests

2008-07-11 Thread Witold Czaplewski
Hello,

i'm trying to use a custom ResourceStreamLocator to place the markup
files in another directory. It is based on this wiki entry:
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3

The deployed application works fine, but my test cases don't work.

With enabled debug messages for org.apache.wicket.util.resource i can
see that the webapppaths are empty although the addResourceFolder
method should be called.

Is there a trick or did i miss anything?

I'm using Netbeans 6.1 and Wicket 1.3.4.

Thanks in advance.

Witold

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



Re: addResourceFolder in unit tests

2008-07-11 Thread Ned Collyer


Witold Czaplewski wrote:
 
 i'm trying to use a custom ResourceStreamLocator to place the markup
 files in another directory. It is based on this wiki entry:
 http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3
 
 The deployed application works fine, but my test cases don't work.
 
 With enabled debug messages for org.apache.wicket.util.resource i can
 see that the webapppaths are empty although the addResourceFolder
 method should be called.
 

My guess would be you are not setting an application with the added resource
folder against the WicketTester


Try passing in your application to the tester.

eg,
WicketTester tester = new WicketTester(myAppWithResourceFolder);

thats my guess :)
-- 
View this message in context: 
http://www.nabble.com/addResourceFolder-in-unit-tests-tp18400757p18401762.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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