spring-cloud-stream
spring-cloud-stream copied to clipboard
Consider to introduce @StreamTest for SCSt-specific slices to test
See Spring Boot Reference Manual for more info.
This one might be marked with something like:
public @interface AutoConfigureTestBinder {
/**
* If {@link TestSupportBinderAutoConfiguration} should be appied.
* Defaults to {@code true}
* @return if test binder support is enabled
*/
boolean enabled() default true;
}
Right now we can exclude that one only via:
@SpringBootTest(
properties = "spring.autoconfigure.exclude=org.springframework.cloud.stream.test.binder.TestSupportBinderAutoConfiguration")
which is not so convenient and obvious.
Now with https://github.com/spring-cloud/spring-cloud-stream/commit/e50801c82427fc354f67ad1c3cab3704d9ba9bd7 and new TestBinder being publicly available we can consider doing something like what you are proposing