wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JCoder" <i...@jcoder.de>
Subject Basic JUnit Test
Date Mon, 13 Aug 2012 14:18:45 GMT
Hi all,

Im working at a basic Unit Test that looks like this:

1. tester.assertRenderedPage(FirstPage.class);
2. FormTester formTester = tester.newFormTester("myForm");
3. formTester.submit("myButton");
4. tester.assertRenderedPage(SecondPage.class);

All lines work as expected. Only line 4 fails. I just want to verify a click on a button and
after that a certain Page (SecondPage) should be rendered.

The test fails with: "junit.framework.AssertionFailedError: expected:<SecondPage> but
What did I wrong?

Cheers & Thanks in advance,

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

View raw message