Re: [Wicket-user] Unit test fail probably cause by authenication

2006-12-27 Thread Carfield Yim
I am really sorry, after detail tracing system, I found that there is some parts of code will throw RestartResponseAtInterceptPageException... On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote: set a breakpoint in your auth strategy and see what it is doing, sounds like a bug in there -igor

Re: [Wicket-user] Unit test fail probably cause by authenication

2006-12-26 Thread Carfield Yim
Anyone have any idea? On 12/22/06, Carfield Yim [EMAIL PROTECTED] wrote: The unit test is just create a WebPage and assert it, stacktrace as below and look like the authenication will forward to Logon page if it is not authenication . However, in the session I have set it always return true

Re: [Wicket-user] Unit test fail probably cause by authenication

2006-12-26 Thread Igor Vaynberg
well looks like you are expecting main page but getting a login? so your auth strategy is redirecting, thus the test fails -igor On 12/26/06, Carfield Yim [EMAIL PROTECTED] wrote: Anyone have any idea? On 12/22/06, Carfield Yim [EMAIL PROTECTED] wrote: The unit test is just create a

Re: [Wicket-user] Unit test fail probably cause by authenication

2006-12-26 Thread Carfield Yim
On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well looks like you are expecting main page but getting a login? so your auth strategy is redirecting, thus the test fails But for the unit test session, I already did below: public static class Tester extends WicketTester {

Re: [Wicket-user] Unit test fail probably cause by authenication

2006-12-26 Thread Igor Vaynberg
set a breakpoint in your auth strategy and see what it is doing, sounds like a bug in there -igor On 12/26/06, Carfield Yim [EMAIL PROTECTED] wrote: On 12/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote: well looks like you are expecting main page but getting a login? so your auth strategy is

[Wicket-user] Unit test fail probably cause by authenication

2006-12-21 Thread Carfield Yim
The unit test is just create a WebPage and assert it, stacktrace as below and look like the authenication will forward to Logon page if it is not authenication . However, in the session I have set it always return true if it is unit test. Anybody have any idea? junit.framework.ComparisonFailure: