Class AbstractMockingTest
java.lang.Object
test.de.iip_ecosphere.platform.transport.spring.AbstractMockingTest
- Direct Known Subclasses:
BeanHelperTest,SerializerTest,StreamTest,TransportFactoryConfigurationTest
Abstract test class, which mocks certain spring cloud steam beans so that
BinderFix can be instantiated.- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cloud.stream.binder.BinderTypeRegistryCreates a default empty binder type registry.org.springframework.cloud.stream.config.BindingServicePropertiesCreates a mocked binding service properties instance.org.springframework.core.convert.ConversionServiceCreates a default conversion service.
-
Constructor Details
-
AbstractMockingTest
public AbstractMockingTest()
-
-
Method Details
-
createBinderTypeRegistry
@Bean public org.springframework.cloud.stream.binder.BinderTypeRegistry createBinderTypeRegistry()Creates a default empty binder type registry.- Returns:
- the registry instance
-
createBindingServiceProperties
@Bean public org.springframework.cloud.stream.config.BindingServiceProperties createBindingServiceProperties()Creates a mocked binding service properties instance.- Returns:
- the properties
-
createConversionService
@Bean("integrationConversionService") public org.springframework.core.convert.ConversionService createConversionService()Creates a default conversion service.- Returns:
- the conversion service
-