Class CamelSpringDelegatingTestContextLoader

java.lang.Object
org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
org.springframework.test.context.support.DelegatingSmartContextLoader
org.apache.camel.test.spring.CamelSpringDelegatingTestContextLoader
All Implemented Interfaces:
org.springframework.test.context.ContextLoader, org.springframework.test.context.SmartContextLoader

@Deprecated public class CamelSpringDelegatingTestContextLoader extends org.springframework.test.context.support.DelegatingSmartContextLoader
Deprecated.
CamelSpringDelegatingTestContextLoader which fixes issues in Camel's JavaConfigContextLoader. (adds support for Camel's test annotations)
This loader can handle either classes or locations for configuring the context.
NOTE: This TestContextLoader doesn't support the annotation of ExcludeRoutes now.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Class<?>
    Deprecated.
    Returns the class under test in order to enable inspection of annotations while the Spring context is being created.
    protected Method
    Deprecated.
    Returns the test method under test.
    org.springframework.context.ApplicationContext
    loadContext(org.springframework.context.ConfigurableApplicationContext context, Class<?> testClass)
    Deprecated.
    Performs the bulk of the Spring application context loading/customization.
    org.springframework.context.ApplicationContext
    loadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig)
    Deprecated.
     

    Methods inherited from class org.springframework.test.context.support.DelegatingSmartContextLoader

    getAnnotationConfigLoader, getXmlLoader

    Methods inherited from class org.springframework.test.context.support.AbstractDelegatingSmartContextLoader

    loadContext, processContextConfiguration, processLocations

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
      Deprecated.
  • Constructor Details

    • CamelSpringDelegatingTestContextLoader

      public CamelSpringDelegatingTestContextLoader()
      Deprecated.
  • Method Details

    • loadContext

      public org.springframework.context.ApplicationContext loadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig) throws Exception
      Deprecated.
      Specified by:
      loadContext in interface org.springframework.test.context.SmartContextLoader
      Overrides:
      loadContext in class org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
      Throws:
      Exception
    • loadContext

      public org.springframework.context.ApplicationContext loadContext(org.springframework.context.ConfigurableApplicationContext context, Class<?> testClass) throws Exception
      Deprecated.
      Performs the bulk of the Spring application context loading/customization.
      Parameters:
      context - the partially configured context. The context should have the bean definitions loaded, but nothing else.
      testClass - the test class being executed
      Returns:
      the initialized (refreshed) Spring application context
      Throws:
      Exception - if there is an error during initialization/customization
    • getTestClass

      protected Class<?> getTestClass()
      Deprecated.
      Returns the class under test in order to enable inspection of annotations while the Spring context is being created.
      Returns:
      the test class that is being executed
      See Also:
    • getTestMethod

      protected Method getTestMethod()
      Deprecated.
      Returns the test method under test.
      Returns:
      the method that is being executed
      See Also: