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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.4
    • 6.2.0, 1.5.9
    • wicket
    • 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

        1. sharedresourcelink.zip
          25 kB
          Eric Le Lay

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: