Skip to main content
Version: Current

Apache Camel - testing

To create integration tests for your Apache Camel routes, you need to create service tests by extending the AbstractGenesisTestSupport class and specifying the relevant application-name-camel.kts file as the scriptFileName.

Examples of how you would initialise a test extending this class are provided below.

class GenesisCamelTest : AbstractGenesisTestSupport<GenesisSet>(
GenesisTestConfig {
addPackageName("global.genesis.eventhandler")
addPackageName("global.genesis.camel.pal")
genesisHome = "/genesisHome"
parser = { it }
scriptFileName = "test-camel.kts"
}
)