spring-cloud-stream icon indicating copy to clipboard operation
spring-cloud-stream copied to clipboard

Consider to introduce @StreamTest for SCSt-specific slices to test

Open artembilan opened this issue 8 years ago • 1 comments

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.

artembilan avatar Oct 12 '17 01:10 artembilan

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

olegz avatar Feb 23 '18 14:02 olegz