Kenny MacLeod
-
2012-11-27
Expose some protected methods of HtmlUnitTestingEngine
Brought to you by:
henryju
I have a custom subclass of HtmlUnitTestingEngineImpl to modify its behaviour slightly, and this needs access to some methods which are currently private, and have to be accessed via reflection. It would be much nicer if they were protected instead of private.
The methods are:
getTestContext
getForm
getCurrentPage
See attached patch to do this.