Reports incorrect bean/method references in the value parameter of the @MockitoBean, @MockitoSpyBean and @TestBean annotations.

δΎ‹:


@SpringBootTest
class TestBeanApplicationTests {
   @TestBean(value = "unknownBean", methodName="createUserService")  // reports 1. "Cannot resolve 'unknownBean' bean"  and 2. "Cannot resolve symbol 'createUserService'"
   UserService userService;

  @TestBean  // reports "Cannot find static factory method"
  UserService userService;
}