Difference when executing tests via @SpringJUnitConfig vs @SpringBootTest
In our test codebase, we are trying to minimize the usage of @SpringBootTest annotations in favor of more targeted @SpringJUnitConfig. Replacing it in the first of the working tests: @SpringJUnitConfig //@SpringBootTest class DataMarshallerServiceTest { @Autowired private DataMarshallerService cut; we start seeing the following stack: Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.abc.globalpayments.feeds.downstream.dailycashreport.generate.DataMarshallerService' available: expected at least 1 bean which qualifies as autowire candida
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.