Wicket
  1. Wicket
  2. WICKET-4810

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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"); }

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development