spring-cloud / spring-cloud-stream-samples

Samples for Spring Cloud Stream
Apache License 2.0
956 stars 676 forks source link

SpringCloudStream TestChannelBinderConfiguration Junits not working with Mockito #242

Open srajesh15 opened 1 year ago

srajesh15 commented 1 year ago

To run SpringCloudStream junits tests successfully always we need to enable @EnableAutoConfiguration and @ComponentScan annotations, but if we enable this we can't run application in real time and also mockito not working with this implementation, I already posted the same question in stack overflow, Could someone please help me to resolve this issue.

https://stackoverflow.com/questions/76175772/springcloudstream-testchannelbinderconfiguration-junits-tests-not-working-with-m