|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.junit.Assert
org.apache.camel.test.junit4.TestSupport
org.apache.camel.test.junit4.CamelTestSupport
org.apache.camel.test.blueprint.CamelBlueprintTestSupport
public abstract class CamelBlueprintTestSupport
Base class for OSGi Blueprint unit tests with Camel.
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.test.junit4.CamelTestSupport |
|---|
camelContextService, consumer, context, template |
| Fields inherited from class org.apache.camel.test.junit4.TestSupport |
|---|
log, LS, testName |
| Constructor Summary | |
|---|---|
CamelBlueprintTestSupport()
|
|
| Method Summary | ||
|---|---|---|
protected org.apache.camel.CamelContext |
createCamelContext()
|
|
protected String |
getBlueprintDescriptor()
Gets the bundle descriptor from the classpath. |
|
protected org.osgi.framework.BundleContext |
getBundleContext()
Return the system bundle context |
|
protected String |
getBundleFilter()
Gets filter expression of bundle descriptors. |
|
protected String |
getBundleVersion()
Gets test bundle version. |
|
protected
|
getOsgiService(Class<T> type)
|
|
protected
|
getOsgiService(Class<T> type,
long timeout)
|
|
protected
|
getOsgiService(Class<T> type,
String filter)
|
|
protected
|
getOsgiService(Class<T> type,
String filter,
long timeout)
|
|
void |
setUp()
|
|
void |
tearDown()
|
|
| Methods inherited from class org.apache.camel.test.junit4.CamelTestSupport |
|---|
assertExpression, assertMockEndpointsSatisfied, assertMockEndpointsSatisfied, assertPredicate, assertResolveLanguage, assertValidContext, camelContextService, consumer, context, createExchangeWithBody, createJndiContext, createRegistry, createRouteBuilder, createRouteBuilders, debugAfter, debugBefore, disableJMX, doPostSetup, doPreSetup, enableJMX, getCamelContextService, getMandatoryEndpoint, getMandatoryEndpoint, getMockEndpoint, getShutdownTimeout, ignoreMissingLocationWithPropertiesComponent, isCreateCamelContextPerClass, isLazyLoadingTypeConverter, isMockEndpoints, isMockEndpointsAndSkip, isUseAdviceWith, isUseDebugger, isUseRouteBuilder, postProcessTest, resetMocks, resolveMandatoryEndpoint, resolveMandatoryEndpoint, sendBodies, sendBody, sendBody, setCamelContextService, setUseRouteBuilder, startCamelContext, stopCamelContext, tearDownAfterClass, template, useJmx, useOverridePropertiesWithPropertiesComponent |
| Methods inherited from class org.apache.camel.test.junit4.TestSupport |
|---|
assertCollectionSize, assertCollectionSize, assertDirectoryEquals, assertDirectoryEquals, assertEndpointUri, assertExpression, assertFileExists, assertFileNotExists, assertInMessageBodyEquals, assertInMessageHeader, assertIsInstanceOf, assertListSize, assertListSize, assertMessageHeader, assertOneElement, assertOutMessageBodyEquals, assertOutMessageHeader, assertPredicate, assertPredicateDoesNotMatch, assertPredicateMatches, assertStringContains, body, bodyAs, createDirectory, createExchangeWithBody, deleteDirectory, deleteDirectory, faultBody, faultBodyAs, getRouteList, getTestMethodName, header, isJava15, isJava16, isJavaVendor, isPlatform, outBody, outBodyAs, property, resolveMandatoryEndpoint, resolveMandatoryEndpoint, systemProperty, systemProperty, unwrap, unwrapChannel |
| Methods inherited from class org.junit.Assert |
|---|
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CamelBlueprintTestSupport()
| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class org.apache.camel.test.junit4.CamelTestSupportException
public void tearDown()
throws Exception
tearDown in class org.apache.camel.test.junit4.CamelTestSupportExceptionprotected org.osgi.framework.BundleContext getBundleContext()
protected String getBlueprintDescriptor()
protected String getBundleFilter()
protected String getBundleVersion()
protected org.apache.camel.CamelContext createCamelContext()
throws Exception
createCamelContext in class org.apache.camel.test.junit4.CamelTestSupportExceptionprotected <T> T getOsgiService(Class<T> type)
protected <T> T getOsgiService(Class<T> type,
long timeout)
protected <T> T getOsgiService(Class<T> type,
String filter)
protected <T> T getOsgiService(Class<T> type,
String filter,
long timeout)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||