Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.5-RC4
    • None
    • wicket
    • None

    Description

      Having 50+ public methods in WicketTester confuses the users. The IDE suggestion dropdown has many entries and it is hard to find what you need.
      Introducing "namespace objects" like Application's I***Setting will improve this problem. Something like : tester.start().page(...), tester.start().componentInPage(...), tester.assert().isvisible(..), tester.assert().model(...), tester.execute().link(...), etc.
      All of these "namespace methods" will do something like :
      BaseWicketTester#assert()

      { return Assert(this)}

      ;
      BaseWicketTester.Assert#isVisible

      {tester.assertIsVisible(x)}


      and BaseWicketTester#assertIsVisible will be made deprecated and either removed in later version or made private (hidden).

      This way the IDE will suggest only #start(), #execute(), #assert(), etc. initially. Then when the user selects one of them the IDE will suggest only the methods related to this "namespace".

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: