You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Resolved) (JIRA)" <ji...@apache.org> on 2011/11/01 15:17:32 UTC

[jira] [Resolved] (WICKET-4086) Redirecting in unit tests breaks when upgrading from Wicket 1.4.15 to 1.4.18

     [ https://issues.apache.org/jira/browse/WICKET-4086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4086.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.0

The use case works in 1.5.

Here is the upgraded code:


WicketTester tester = new WicketTester(new WicketApplication());
        tester.setFollowRedirects(false);
    
	    //start and render the test page
		tester.startPage(HomePage.class);

		//assert rendered page class
		tester.assertRenderedPage(TestPage.class);

		assertTrue(tester.getLastResponse().isRedirect());

                
> Redirecting in unit tests breaks when upgrading from Wicket 1.4.15 to 1.4.18
> ----------------------------------------------------------------------------
>
>                 Key: WICKET-4086
>                 URL: https://issues.apache.org/jira/browse/WICKET-4086
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.18
>         Environment: Linux, Ubunbtu 10.10
>            Reporter: Gert-Jan Schouten
>             Fix For: 1.5.0
>
>         Attachments: myproject.zip
>
>
> I've attached a unit test according to the Wicket archetype. The unit test fails. If you replace 1.4.18 with 1.4.15 in the pom.xml, the unit test will succeed. It's really simple code, just redirect to another page and test this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira