public class BasicExampleTest
extends java.lang.Object
Constructor and Description |
---|
BasicExampleTest() |
Modifier and Type | Method and Description |
---|---|
protected Configuration |
getConfiguration(java.lang.String configId)
Creates a configuration with the configuration admin
|
protected <T> T |
getService(java.lang.Class<T> clazz,
long timeout)
Gets a service by class and waits for it
|
protected <T> T |
getService(Filter filter,
long timeout)
Gets a service by filter and waits for it
|
void |
setBundleContext(BundleContext context) |
void |
setup(BundleContext context) |
void |
teardown() |
public void setup(BundleContext context)
public void teardown()
public void setBundleContext(BundleContext context)
protected Configuration getConfiguration(java.lang.String configId) throws java.lang.Exception
configId
- the configuration idjava.lang.Exception
protected <T> T getService(java.lang.Class<T> clazz, long timeout) throws java.lang.InterruptedException
clazz
- timeout
- java.lang.InterruptedException
protected <T> T getService(Filter filter, long timeout) throws java.lang.InterruptedException
filter
- timeout
- java.lang.InterruptedException
Data In Motion Consulting