You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juha Syrjälä (Created JIRA)" <ji...@apache.org> on 2012/03/05 12:39:57 UTC
[jira] [Created] (WICKET-4437) BaseWicketTester.clickLink() does
not work with a ResourceLink
BaseWicketTester.clickLink() does not work with a ResourceLink
--------------------------------------------------------------
Key: WICKET-4437
URL: https://issues.apache.org/jira/browse/WICKET-4437
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.5.4
Reporter: Juha Syrjälä
Priority: Minor
When using BaseWicketTester.clickLink() with ResourceLink, it does not work. Clicking link in server (Jetty) it works and opens the resource. See attached quickstart.
@Test
public void clickingLink() {
// doesn't work
tester.clickLink("download");
Assert.assertEquals(tester.getContentTypeFromResponseHeader(), "text/plain");
}
@Test
public void usingListener() {
// works
tester.executeListener(tester.getComponentFromLastRenderedPage("download"), 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-4437) BaseWicketTester.clickLink() does
not work with a ResourceLink
Posted by "Martin Grigorov (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-4437.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.0.0
1.5.6
> BaseWicketTester.clickLink() does not work with a ResourceLink
> --------------------------------------------------------------
>
> Key: WICKET-4437
> URL: https://issues.apache.org/jira/browse/WICKET-4437
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.4
> Reporter: Juha Syrjälä
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 1.5.6, 6.0.0
>
> Attachments: resourcelink.tar.gz
>
>
> When using BaseWicketTester.clickLink() with ResourceLink, it does not work. Clicking link in server (Jetty) it works and opens the resource. See attached quickstart.
> @Test
> public void clickingLink() {
> // doesn't work
> tester.clickLink("download");
> Assert.assertEquals(tester.getContentTypeFromResponseHeader(), "text/plain");
> }
>
> @Test
> public void usingListener() {
> // works
> tester.executeListener(tester.getComponentFromLastRenderedPage("download"), 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WICKET-4437) BaseWicketTester.clickLink() does
not work with a ResourceLink
Posted by "Juha Syrjälä (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juha Syrjälä updated WICKET-4437:
---------------------------------
Attachment: resourcelink.tar.gz
> BaseWicketTester.clickLink() does not work with a ResourceLink
> --------------------------------------------------------------
>
> Key: WICKET-4437
> URL: https://issues.apache.org/jira/browse/WICKET-4437
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.4
> Reporter: Juha Syrjälä
> Priority: Minor
> Attachments: resourcelink.tar.gz
>
>
> When using BaseWicketTester.clickLink() with ResourceLink, it does not work. Clicking link in server (Jetty) it works and opens the resource. See attached quickstart.
> @Test
> public void clickingLink() {
> // doesn't work
> tester.clickLink("download");
> Assert.assertEquals(tester.getContentTypeFromResponseHeader(), "text/plain");
> }
>
> @Test
> public void usingListener() {
> // works
> tester.executeListener(tester.getComponentFromLastRenderedPage("download"), 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (WICKET-4437) BaseWicketTester.clickLink() does
not work with a ResourceLink
Posted by "Martin Grigorov (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov reassigned WICKET-4437:
---------------------------------------
Assignee: Martin Grigorov
> BaseWicketTester.clickLink() does not work with a ResourceLink
> --------------------------------------------------------------
>
> Key: WICKET-4437
> URL: https://issues.apache.org/jira/browse/WICKET-4437
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.4
> Reporter: Juha Syrjälä
> Assignee: Martin Grigorov
> Priority: Minor
> Attachments: resourcelink.tar.gz
>
>
> When using BaseWicketTester.clickLink() with ResourceLink, it does not work. Clicking link in server (Jetty) it works and opens the resource. See attached quickstart.
> @Test
> public void clickingLink() {
> // doesn't work
> tester.clickLink("download");
> Assert.assertEquals(tester.getContentTypeFromResponseHeader(), "text/plain");
> }
>
> @Test
> public void usingListener() {
> // works
> tester.executeListener(tester.getComponentFromLastRenderedPage("download"), 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira