What should PaxExam Inject if the component does not publish a service?
What should it check for? All this can better be handled bei a JUnit rule as described before.


Am 23.02.2018 um 13:55 schrieb Oliver Lietz:
On Wednesday 21 February 2018 13:47:46 'Christoph Läubrich' via OPS4J wrote:
Well it might depend on the concrete case, but there is nothing PaxExam
can really do, of course if you have such a very special case you can
always fetch the ScrService and "wait"/check state for the component,
but in general such things are bad in OSGi and you should better use
some kind of Whitebord-pattern or notifications.

Which things are bad in OSGi? Better use whiteboard or notifications for what?

We have components which are not published as services and in some tests it is
useful to "wait" for them. The boilerplate code for that could be provided by
Pax Exam (similar to @Inject for services).

Neil gave a good explanation for components on SO:
https://stackoverflow.com/a/8887216

--
--
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to