Skip to content

Example of a failing spring boot test when mocking a bean in a Spring Boot test with a custom Spring Extension annotation

Notifications You must be signed in to change notification settings

camhashemi/mock-bean-spring-boot-test-failure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBootTest + custom SpringExtension annotation + MockBean failure example

Run ./gradlew test -info to reproduce the failure.

Tests pass if you remove either the custom annotation or @MockBean, but this removes desired behavior.

What's the best way to create a custom SpringExtension annotation which doesn't lead to this failure?

About

Example of a failing spring boot test when mocking a bean in a Spring Boot test with a custom Spring Extension annotation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages