[
https://issues.apache.org/jira/browse/WICKET-4810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Le Lay updated WICKET-4810:
--------------------------------
Attachment: sharedresourcelink.zip
the quickstart (2 tests fail)
> CLONE - BaseWicketTester.clickLink() does not work with a ResourceLink with
> ResourceReference
> ---------------------------------------------------------------------------------------------
>
> Key: WICKET-4810
> URL: https://issues.apache.org/jira/browse/WICKET-4810
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.4
> Reporter: Eric Le Lay
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 1.5.6, 6.0.0-beta1
>
> Attachments: sharedresourcelink.zip
>
>
> When using BaseWicketTester.clickLink() with a ResourceLink with a
> ResourceReference, it does not work.
> Clicking link in server (Jetty) it works and opens the resource. See attached
> quickstart.
> When the ResourceLink is created with the Resource directly,
> BaseWicketTester.clickLink() works.
> @Test
> public void clickingLink() {
> // doesn't work
> tester.clickLink("shared");
> Assert.assertEquals(tester.getContentTypeFromResponseHeader(),
> "text/plain");
> }
>
> @Test
> public void usingListener() {
> // doesn't work either
>
> tester.executeListener(tester.getComponentFromLastRenderedPage("shared"),
> IResourceListener.INTERFACE);
> Assert.assertEquals(tester.getContentTypeFromResponseHeader(),
> "text/plain");
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira