The problem is that I cannot verify this exception in tests. I am basically asking for best practices.
Thanks! On Thu, Jun 7, 2012 at 1:30 AM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > You can use IAuthenticationStrategy and throw > RestartResponseAtInterceptException. > > On Wed, Jun 6, 2012 at 8:09 PM, Alec Swan <alecs...@gmail.com> wrote: >> Hello, >> >> I am creating a new set of pages that are a part of an old project but >> have a different home page. It's kind of like a sub-site within a >> site. The user is required to log in on the sub-site's home page to be >> able to access any of those pages. If the user tries to access any of >> these pages directly he should be redirected to the sub-site's home >> page. >> >> What's the best way to implement/configure the home page for this sub-site? >> What kind of exception should each sub-site page throw to trigger >> redirection to home page? >> How can I verify that an exception was thrown in my test? (Currently I >> have a test which calls startPanel(..) which logs an exception if the >> user is not logged in, but returns with no errors. So, I have to >> verify that the rendered page is what it should be.) >> >> I am basically looking for best practices here. >> >> Thanks, >> >> Alec >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org