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

WicketTester#startPanel does not work (correctly)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-M1
    • 1.5-RC1, 1.5-RC3
    • wicket
    • None

    Description

      WicketTester#startPanel(class<? extends Panel>) does not work with the assertions:

      WicketTester tester = new WicketTester();
      tester.startPanel(HelloWorldPanel.class);
      tester.assertLabel("message", "Hello, World!");

      Will throw an exception because "message" can't be found. In the response page the panel is added with component identifier "panel". However as a tester I expect to be able to assert the components directly without having to know what happens internally.

      Attachments

        1. patch1.patch
          3 kB
          manthos

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              dashorst Martijn Dashorst
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: