Restructure BeanOverrideBeanFactoryPostProcessor and improve documentation
This commit is contained in:
@@ -40,9 +40,9 @@ class MockitoSpyBeanTests {
|
||||
assertThatIllegalStateException()
|
||||
.isThrownBy(context::refresh)
|
||||
.withMessage("""
|
||||
Unable to override bean 'beanToSpy' by wrapping: \
|
||||
there is no existing bean instance with that name of type %s""".formatted(
|
||||
String.class.getName()));
|
||||
Unable to override bean by wrapping: \
|
||||
there is no existing bean definition with name [beanToSpy] and type [%s].""",
|
||||
String.class.getName());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user