This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
we shifted to new Hooks API, but we can not migrate our unit tests, because no way to create *Context objects. based on discussion with David, Jan, and Alexander: Creating the Context(s) should be possible using: org.netbeans.modules.editor.lib2.typinghooks.TypingHooksSpiAccessor.get().create*Context(...) Please, provide access to it from tests Thanks, Vladimir.
as Jan pointed out it should already work from test packages: The TypingHooksSpiAccessor is a public class, and the methods are public, so these are accessible from anywhere in the unit tests (there are no module level access restrictions inside unit tests). Of course the accessor's method may change, but if that is likely to only require simple updates in the tests.