public abstract class AbstractFeatureTest extends Object
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.blueprint.container.BlueprintContainer |
blueprintContainer |
protected org.osgi.framework.BundleContext |
bundleContext |
protected org.apache.karaf.features.FeaturesService |
featuresService |
protected static org.slf4j.Logger |
LOG |
static Long |
SERVICE_TIMEOUT |
Constructor and Description |
---|
AbstractFeatureTest() |
Modifier and Type | Method and Description |
---|---|
static org.ops4j.pax.exam.Option[] |
configure(String... extra) |
static String |
extractName(Class<?> clazz) |
static org.ops4j.pax.exam.options.UrlReference |
getCamelKarafFeatureUrl() |
static org.ops4j.pax.exam.options.UrlReference |
getKarafFeatureSpringLegacyUrl() |
static org.ops4j.pax.exam.options.UrlReference |
getKarafFeatureUrl() |
protected <T> T |
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type) |
protected <T> T |
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
long timeout) |
static <T> T |
getOsgiService(org.osgi.framework.BundleContext bundleContext,
Class<T> type,
String filter,
long timeout) |
protected org.osgi.framework.Bundle |
installBlueprintAsBundle(String name,
URL url,
boolean start) |
protected org.osgi.framework.Bundle |
installBlueprintAsBundle(String name,
URL url,
boolean start,
Consumer<Object> consumer) |
protected void |
installCamelFeature(String mainFeature) |
protected org.osgi.framework.Bundle |
installSpringAsBundle(String name,
URL url,
boolean start) |
protected org.osgi.framework.Bundle |
installSpringAsBundle(String name,
URL url,
boolean start,
Consumer<Object> consumer) |
protected void |
overridePropertiesWithConfigAdmin(String pid,
Properties props) |
org.ops4j.pax.exam.TestProbeBuilder |
probeConfiguration(org.ops4j.pax.exam.TestProbeBuilder probe) |
void |
setUp() |
void |
tearDown() |
protected void |
testComponent(String component) |
protected void |
testComponent(String mainFeature,
String component) |
protected void |
testDataFormat(String dataFormat) |
protected void |
testDataFormat(String mainFeature,
String dataFormat) |
protected void |
testLanguage(String language) |
protected void |
testLanguage(String mainFeature,
String language) |
public static final Long SERVICE_TIMEOUT
protected static final org.slf4j.Logger LOG
@Inject protected org.osgi.framework.BundleContext bundleContext
@Inject protected org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer
@Inject protected org.apache.karaf.features.FeaturesService featuresService
public org.ops4j.pax.exam.TestProbeBuilder probeConfiguration(org.ops4j.pax.exam.TestProbeBuilder probe)
protected org.osgi.framework.Bundle installBlueprintAsBundle(String name, URL url, boolean start) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
protected org.osgi.framework.Bundle installBlueprintAsBundle(String name, URL url, boolean start, Consumer<Object> consumer) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
protected org.osgi.framework.Bundle installSpringAsBundle(String name, URL url, boolean start) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
protected org.osgi.framework.Bundle installSpringAsBundle(String name, URL url, boolean start, Consumer<Object> consumer) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
protected void installCamelFeature(String mainFeature) throws Exception
Exception
protected void overridePropertiesWithConfigAdmin(String pid, Properties props) throws IOException
IOException
protected void testComponent(String mainFeature, String component) throws Exception
Exception
protected void testDataFormat(String mainFeature, String dataFormat) throws Exception
Exception
protected void testLanguage(String mainFeature, String language) throws Exception
Exception
public static org.ops4j.pax.exam.options.UrlReference getKarafFeatureUrl()
public static org.ops4j.pax.exam.options.UrlReference getKarafFeatureSpringLegacyUrl()
public static org.ops4j.pax.exam.options.UrlReference getCamelKarafFeatureUrl()
public static org.ops4j.pax.exam.Option[] configure(String... extra)
protected <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext, Class<T> type)
protected <T> T getOsgiService(org.osgi.framework.BundleContext bundleContext, Class<T> type, long timeout)
Apache Camel