Package org.springframework.cloud.stream.test.binder
package org.springframework.cloud.stream.test.binder
-
ClassDescriptionMaintains a map between (output) channels and messages received (in FIFO order).Automatically registers the
MessageCollector
associated with the test binder as a bean.AnEnvironmentPostProcessor
that sets some configuration properties forTestSupportBinder
.A minimal binder that does nothing about binding consumers, leaving the channel as-is, so that a test author can interact with it directly, registers a queue channel on the producer side, so that it is easy to assert what is received.Installs the TestSupportBinder} and exposes MessageCollectorImplto be injected in tests.BinderConfiguration
for theTestSupportBinder
Either imported by theTestSupportBinderAutoConfiguration
for the test binder default usage scenario (superseding all binders on the classpath), or used as a binder configuration on the classpath when test binder autoconfiguration is disabled.