Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4810

CLONE - BaseWicketTester.clickLink() does not work with a ResourceLink with ResourceReference

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 6.2.0, 1.5.9
    • Component/s: wicket
    • Labels:
      None

      Description

      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"); }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mgrigorov Martin Grigorov
                Reporter:
                elelay Eric Le Lay
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: