Merge branch '6.2.x'

This commit is contained in:
Sam Brannen
2024-11-20 16:51:30 +01:00
5 changed files with 40 additions and 8 deletions

View File

@@ -105,6 +105,11 @@ import org.springframework.test.context.bean.override.BeanOverride;
* FactoryBean}, the {@code FactoryBean} will be replaced with a singleton bean
* corresponding to the value returned from the {@code @TestBean} factory method.
*
* <p>There are no restrictions on the visibility of {@code @TestBean} fields or
* factory methods. Such fields and methods can therefore be {@code public},
* {@code protected}, package-private (default visibility), or {@code private}
* depending on the needs or coding practices of the project.
*
* @author Simon Baslé
* @author Stephane Nicoll
* @author Sam Brannen

View File

@@ -58,6 +58,11 @@ import org.springframework.test.context.bean.override.BeanOverride;
* FactoryBean}, the {@code FactoryBean} will be replaced with a singleton mock
* of the type of object created by the {@code FactoryBean}.
*
* <p>There are no restrictions on the visibility of a {@code @MockitoBean} field.
* Such fields can therefore be {@code public}, {@code protected}, package-private
* (default visibility), or {@code private} depending on the needs or coding
* practices of the project.
*
* @author Simon Baslé
* @author Sam Brannen
* @since 6.2

View File

@@ -51,6 +51,11 @@ import org.springframework.test.context.bean.override.BeanOverride;
* a spy will be created for the object created by the {@code FactoryBean}, not
* for the {@code FactoryBean} itself.
*
* <p>There are no restrictions on the visibility of a {@code @MockitoSpyBean} field.
* Such fields can therefore be {@code public}, {@code protected}, package-private
* (default visibility), or {@code private} depending on the needs or coding
* practices of the project.
*
* @author Simon Baslé
* @author Sam Brannen
* @since 6.2