Wicket
  1. Wicket
  2. WICKET-1326

remove final from AjaxRequestTarget.addComponent(Component)

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.2
    • Component/s: None
    • Labels:
      None

      Description

      Ajax behaviors are currently extremely hard to test because the final method AjaxRequestTarget.addComponent(Component) is final and can't be mocked.

      Does anyone object removing the final keyword?

        Activity

        Hide
        Johan Compagner added a comment -

        not me

        Show
        Johan Compagner added a comment - not me
        Hide
        Timo Rantalaiho added a comment -

        This would be excellent, as it would make unit testing ajax repaints much easier (often you need to test which components get added to AjaxRequestTarget).

        Show
        Timo Rantalaiho added a comment - This would be excellent, as it would make unit testing ajax repaints much easier (often you need to test which components get added to AjaxRequestTarget).
        Hide
        Janne Hietamäki added a comment -

        done

        Show
        Janne Hietamäki added a comment - done

          People

          • Assignee:
            Janne Hietamäki
            Reporter:
            Janne Hietamäki
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development