Class TestUtils.TestApplicationContext

All Implemented Interfaces:
Closeable, AutoCloseable, BeanFactory, HierarchicalBeanFactory, ListableBeanFactory, BeanDefinitionRegistry, ApplicationContext, ApplicationEventPublisher, ConfigurableApplicationContext, Lifecycle, MessageSource, AliasRegistry, EnvironmentCapable, ResourceLoader, ResourcePatternResolver
Enclosing class:
TestUtils

public static class TestUtils.TestApplicationContext extends GenericApplicationContext
A GenericApplicationContext extension with some support methods to register Spring Integration beans in the application context at runtime.
  • Method Details

    • registerChannel

      public void registerChannel(@Nullable String channelNameArg, MessageChannel channel)
    • registerEndpoint

      public void registerEndpoint(String endpointName, Object endpoint)
    • registerBean

      public void registerBean(String beanName, Object bean)