Problem with @RequireHttps and Tests

2009-09-25 Thread Rangel Preis
I put the @RequireHttps annotation in my LoginPage, and it's work fine
when i run the app.
But when i run my tests all test fail, if I remove @RequireHttps all
test pass correctly

Here's the problem, when i run this code without the annotation the
wicket tester call the button btn_login.
If i put the @RequireHttps annotation this code don't work.

protected final static void logarUsuario() {
tester.startPage(LoginPage.class);
tester.assertRenderedPage(LoginPage.class);
tester.assertNoErrorMessage();

final FormTester form = tester.newFormTester(form);
form.setValue(email, username);
form.setValue(pass, password);
form.submit(btn_login);
}

Thanks all.

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



Re: Problem with @RequireHttps and Tests

2009-09-25 Thread Igor Vaynberg
so in your tests do not install the httpsrequestcycleprocessor

-igor

On Fri, Sep 25, 2009 at 10:46 AM, Rangel Preis rangel...@gmail.com wrote:
 I put the @RequireHttps annotation in my LoginPage, and it's work fine
 when i run the app.
 But when i run my tests all test fail, if I remove @RequireHttps all
 test pass correctly

 Here's the problem, when i run this code without the annotation the
 wicket tester call the button btn_login.
 If i put the @RequireHttps annotation this code don't work.

        protected final static void logarUsuario() {
                tester.startPage(LoginPage.class);
                tester.assertRenderedPage(LoginPage.class);
                tester.assertNoErrorMessage();

                final FormTester form = tester.newFormTester(form);
                form.setValue(email, username);
                form.setValue(pass, password);
                form.submit(btn_login);
        }

 Thanks all.

 -
 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