public class StubServiceRegistration<T>
extends org.junit.rules.ExternalResource
Rule
annotation that allows to register an OSGi
service for the duration of the test.Constructor and Description |
---|
StubServiceRegistration(Class<T> type)
Rule that can be used to register a service of the given type. |
StubServiceRegistration(Class<T> type,
T instance)
Rule that registers (and unregisters) the given instance as service of the given
type. |
Modifier and Type | Method and Description |
---|---|
protected void |
after() |
protected void |
before() |
void |
registerService(T instance) |
Copyright © 2008-2013 Eclipse Foundation. All Rights Reserved.