Class CamelSpringBootRunner

  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable
    Direct Known Subclasses:
    CamelSpringBootJUnit4ClassRunner

    public class CamelSpringBootRunner
    extends org.springframework.test.context.junit4.SpringJUnit4ClassRunner
    An implementation bringing the functionality of CamelSpringTestSupport to Spring Boot Test based test cases. This approach allows developers to implement tests for their Spring Boot based applications/routes using the typical Spring Test conventions for test development.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CamelSpringBootRunner.CamelTestContextManager
      An implementation providing additional integration between Spring Test and Camel testing features.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.test.context.TestContextManager createTestContextManager​(Class<?> clazz)
      Returns the specialized manager instance that provides tight integration between Camel testing features and Spring.
      • Methods inherited from class org.springframework.test.context.junit4.SpringJUnit4ClassRunner

        createTest, getDescription, getExpectedException, getJUnitTimeout, getSpringTimeout, getTestContextManager, isTestMethodIgnored, methodBlock, possiblyExpectingExceptions, run, runChild, withAfterClasses, withAfters, withAfterTestExecutionCallbacks, withBeforeClasses, withBefores, withBeforeTestExecutionCallbacks, withPotentialRepeat, withPotentialTimeout
      • Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

        collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodInvoker, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor
      • Methods inherited from class org.junit.runners.ParentRunner

        childrenInvoker, classBlock, classRules, createTestClass, filter, getName, getRunnerAnnotations, getTestClass, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withInterruptIsolation
      • Methods inherited from class org.junit.runner.Runner

        testCount
    • Constructor Detail

      • CamelSpringBootRunner

        public CamelSpringBootRunner​(Class<?> clazz)
                              throws org.junit.runners.model.InitializationError
        Throws:
        org.junit.runners.model.InitializationError
    • Method Detail

      • createTestContextManager

        protected org.springframework.test.context.TestContextManager createTestContextManager​(Class<?> clazz)
        Returns the specialized manager instance that provides tight integration between Camel testing features and Spring.
        Overrides:
        createTestContextManager in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
        Returns:
        a new instance of CamelSpringBootRunner.CamelTestContextManager.