Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
1.5-RC4
-
None
-
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()
;
BaseWicketTester.Assert#isVisible
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".