Wicket
  1. Wicket
  2. WICKET-5097

Deprecate BaseWicketTester#startComponent(Component)

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.6.0
    • Fix Version/s: 6.7.0
    • Component/s: wicket
    • Labels:
      None

      Description

      Initially BaseWicketTester#startComponent(Component) has been introduced to test a component without attaching it to a page (this is what its Javadoc states).

      First it appeared that the tested component is not initialized (fixed with https://issues.apache.org/jira/browse/WICKET-4792).
      Then https://issues.apache.org/jira/browse/WICKET-4976 - the request cycle and the component itself are not detached at the end.
      And now a colleague of mine reported me that since WICKET-4976 a test is failing in our app because our custom IRequestCycleListener#onEndRequest() is called but #onBeginRequest() hasn't been called before that. I remember Hielke from Topicus also had this problem for Wiquery 6.6.0.

      BaseWicketTester#startComponent(Component) becomes more and more the same as #startComponentInPage(Component) so it will be deprecated in 6.x series and fully removed with Wicket 7.0.0

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Martin Grigorov
              Reporter:
              Martin Grigorov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development