Re: Wicket tester login pages

2010-01-04 Thread Martin Makundi
Hi! Depends on your login but ofcourse wicket is a whitebox so you can inject any credentials you want. But visit the login page first to create session. ** Martin 2010/1/4 Pierre Goupil goupilpie...@gmail.com: Hello all, Is there a way to access directly a page in Wicket tester? I mean:

Re: Wicket tester login pages

2010-01-04 Thread Pierre Goupil
We use @AuthorizedInstantiation. But what we're looking for is not a way to inject the credentials but rather a way to access directly a protected page in unit tests. We know how to provide credentials and browse to the page but find it dangerous: what if the credentials change, what if the

Re: Wicket tester login pages

2010-01-04 Thread Martijn Dashorst
You probably store the credentials (or isAuthenticated() == true) in the session. Just set the credentials *on* your session during testing. Martijn On Mon, Jan 4, 2010 at 12:32 PM, Pierre Goupil goupilpie...@gmail.com wrote: Hello all, Is there a way to access directly a page in Wicket