|Re: JUnit Plug-in testing [message #1717835 is a reply to message #1717755]
||Thu, 17 December 2015 08:26
| Jonas Helming
Registered: July 2009
Yes! However, I would recommend to do plain JUnit tests whereever|
possible. OSGi test are slower and require more maintenance, e.g. you
have to maintain the run config and the tycho config.
As an example, if you want to test OSGi services, which depend on each
other, you can simply instanciate and wire them manually in plain JUnit.
This way, you have full control on which components are used and which
I would recommend to use OSGi for integration tests only and test the
behavior mainly with plain JUnit tests. This will typically also improve
your architecture as it makes your components less dependent on OSGi.
Am 16.12.2015 um 15:15 schrieb Piero Campalani:
> Dear list,
> I am running JUnit tests inside the Eclipse OSGi pool (with bundle
> contexts, OSGi components, etc.) is by using the JUnit Plug-in Test
> run/debug configuration type.
> Is this the good approach for enabling functional JUnit tests in my
> Eclipse application?
Get professional Eclipse developer support:
Powered by FUDForum
. Page generated in 0.02509 seconds