Class CamelAnnotationsHandler

    • Method Detail

      • cleanup

        public static void cleanup()
        Deprecated.
        Cleanup/restore global state to defaults / pre-test values after the test setup is complete.
      • handleExcludeRoutes

        public static void handleExcludeRoutes​(Class<?> testClass)
        Deprecated.
        Handles @ExcludeRoutes to make it easier to exclude other routes when testing with Spring.
        Parameters:
        testClass - the test class being executed
      • handleDisableJmx

        public static void handleDisableJmx​(Class<?> testClass)
        Deprecated.
        Handles disabling of JMX on Camel contexts based on DisableJmx.
        Parameters:
        testClass - the test class being executed
      • handleRouteCoverage

        public static void handleRouteCoverage​(org.springframework.context.ConfigurableApplicationContext context,
                                               Class<?> testClass,
                                               Function testMethod)
                                        throws Exception
        Deprecated.
        Handles disabling of JMX on Camel contexts based on EnableRouteCoverage.
        Parameters:
        context - the initialized Spring context
        testClass - the test class being executed
        Throws:
        Exception
      • handleRouteCoverageDump

        public static void handleRouteCoverageDump​(org.springframework.context.ConfigurableApplicationContext context,
                                                   Class<?> testClass,
                                                   Function testMethod)
                                            throws Exception
        Deprecated.
        Throws:
        Exception
      • handleProvidesBreakpoint

        public static void handleProvidesBreakpoint​(org.springframework.context.ConfigurableApplicationContext context,
                                                    Class<?> testClass)
                                             throws Exception
        Deprecated.
        Throws:
        Exception
      • handleShutdownTimeout

        public static void handleShutdownTimeout​(org.springframework.context.ConfigurableApplicationContext context,
                                                 Class<?> testClass)
                                          throws Exception
        Deprecated.
        Handles updating shutdown timeouts on Camel contexts based on ShutdownTimeout.
        Parameters:
        context - the initialized Spring context
        testClass - the test class being executed
        Throws:
        Exception
      • handleMockEndpoints

        public static void handleMockEndpoints​(org.springframework.context.ConfigurableApplicationContext context,
                                               Class<?> testClass)
                                        throws Exception
        Deprecated.
        Handles auto-intercepting of endpoints with mocks based on MockEndpoints.
        Parameters:
        context - the initialized Spring context
        testClass - the test class being executed
        Throws:
        Exception
      • handleMockEndpointsAndSkip

        public static void handleMockEndpointsAndSkip​(org.springframework.context.ConfigurableApplicationContext context,
                                                      Class<?> testClass)
                                               throws Exception
        Deprecated.
        Handles auto-intercepting of endpoints with mocks based on MockEndpointsAndSkip and skipping the original endpoint.
        Parameters:
        context - the initialized Spring context
        testClass - the test class being executed
        Throws:
        Exception
      • handleUseOverridePropertiesWithPropertiesComponent

        public static void handleUseOverridePropertiesWithPropertiesComponent​(org.springframework.context.ConfigurableApplicationContext context,
                                                                              Class<?> testClass)
                                                                       throws Exception
        Deprecated.
        Handles override this method to include and override properties with the Camel PropertiesComponent.
        Parameters:
        context - the initialized Spring context
        testClass - the test class being executed
        Throws:
        Exception
      • handleCamelContextStartup

        public static void handleCamelContextStartup​(org.springframework.context.ConfigurableApplicationContext context,
                                                     Class<?> testClass)
                                              throws Exception
        Deprecated.
        Handles starting of Camel contexts based on UseAdviceWith and other state in the JVM.
        Parameters:
        context - the initialized Spring context
        testClass - the test class being executed
        Throws:
        Exception