How to register a project or application component during a test? Keith Lea 创建于 2007年03月02日 01:14 I'd like to register a project component during a test, so project.getComponent(x.class) returns my object. How can I do this? How can I do this for Application as well?
Have you tried:
((ComponentManagerImpl)myModule).registerComponent(componentInterface, componentClass)
I haven't, but maybe it works......