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

Wrong JavaDoc for WicketTester

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.13.0
    • 6.14.0, 7.0.0-M1
    • wicket

    Description

      The JavaDoc of WicketTester gives the following code example;

      public void testRenderYourPage()
      {
      // provide page instance source for WicketTester
      tester.startPage(new TestPageSource()
      {
      public Page getTestPage()

      { return new YourPage("mock message"); }

      });
      tester.assertRenderedPage(YourPage.class);
      tester.assertLabel("yourMessage", "mock message");
      // assert feedback messages in INFO Level
      tester.assertInfoMessages(new String[]

      { "Wicket Rocks ;-)" }

      );
      }

      This example seems to be invalid since neither the class TestPageSource exists nor a fitting method in WicketTester.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            o.b.fischer Oliver B. Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: