-
Notifications
You must be signed in to change notification settings - Fork 40.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResetMocksTestExecutionListener does not tolerate bean factory methods that throw an exception #5870
Comments
@dsyer The behaviour that I'm seeing doesn't match the behaviour you have described. The failure that I see is:
This is happening as a result of
|
As far as I can tell, the problem is that Feign considers @Test
public void fooClientBean() {
this.applicationContext.getBean(
"org.springframework.cloud.netflix.feign.FeignClientOverrideDefaultsTests$FooClient");
} |
Yes, but it isn't misconfigured in the original test case (it passes with Spring Boot 1.3), it just thinks it is. So I guess the finger is still pointing at the |
I disagree. |
|
This test should run with Spring Boot 1.4.0.M2 now. See spring-projects/spring-boot#5870
This test fails if you run it with Spring Boot 1.4: https://github.com/spring-cloud/spring-cloud-netflix/blob/master/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/FeignClientOverrideDefaultsTests.java. the proxies are created by Feign (not Mockito) and yet Mockito seems to think they belong to it, and null everything out in them. Splat!
The text was updated successfully, but these errors were encountered: