|
Re: How to substitute an SWT class [message #487410 is a reply to message #487294] |
Wed, 23 September 2009 07:10 |
|
Hello
Have you tried providing your replacement class in a separate bundle and
putting the dependency to that extra bundle before the dependency of to
the bundle containing the original implementation?
Another idea is to use IoC instead of instantiating the class directly.
Peaberry is one example of IoC frameworks working within OSGi bundles.
HTH
Michael
Eric Jain wrote:
> I need to replace the FileDialog class with a mock implementation for
> testing. What's the best way to go about that?
>
> Tried e.g. providing the substitute implementation via a fragment, but
> that doesn't work as fragments are searched only after the bundle to
> which they are attached...
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04022 seconds