spring-boot/spring-boot-project
Andy Wilkinson 027c5a0e35 Remove usage of Mockito's internals
Previously, we relied on Mockito's internals to bypass any Spring AOP
proxy during verification of a spy. Thanks to a new API in Mockito,
we can replace the use of Mockito's internals with a
VerificationStartedListener. This listener changes Mockito's view of
the mock to be the ultimate target of the AOP proxy, i.e. to be the
actual Mockito-created spy, allowing Mockito's verification of the
spy to proceed successfully.

This above-described change will mean that we require a very
up-to-date version of Mockito so the tests that verify our
compatibility with 2.5 have been removed as we will no longer support
it when using @MockBean or @SpyBean.

Lastly, two tests have been updated to replace their usage of the
internal MockUtil class with the equivalent public API calls.

Closes gh-10352
2017-10-17 15:56:28 +01:00
..
spring-boot Polish 2017-10-17 15:41:55 +01:00
spring-boot-actuator Polish 2017-10-17 15:41:55 +01:00
spring-boot-actuator-autoconfigure Polish 2017-10-17 15:41:55 +01:00
spring-boot-autoconfigure Polish 2017-10-17 15:41:55 +01:00
spring-boot-cli Polish "Use Assert.state() with Supplier where possible" 2017-10-17 15:36:51 +02:00
spring-boot-dependencies Upgrade to Mockito 2.11.0 2017-10-17 15:56:16 +01:00
spring-boot-devtools Use Assert.state() with Supplier where possible 2017-10-17 15:35:59 +02:00
spring-boot-docs Remove "Securing the H2 console" section 2017-10-17 15:44:13 +02:00
spring-boot-parent Upgrade Maven plugins 2017-10-04 16:34:43 -07:00
spring-boot-starters Fix POMs for the updated build/release process 2017-10-04 16:34:38 -07:00
spring-boot-test Remove usage of Mockito's internals 2017-10-17 15:56:28 +01:00
spring-boot-test-autoconfigure Polish 2017-10-17 15:41:55 +01:00
spring-boot-tools Bump ASM version to be Java 8+ compatible 2017-10-17 16:29:06 +02:00
pom.xml Re-order modules so that spring--boot-cli is later 2017-10-05 18:17:25 -07:00