Avoid inheritance in configuration classes
This commit restructures configuration classes to avoid inheritance, where possible. This should provide more flexibility when composing custom configurations. Closes gh-1415
This commit is contained in:
@@ -191,7 +191,7 @@ class RedisWebSessionConfigurationTests {
|
||||
void multipleConnectionFactoryRedisConfig() {
|
||||
assertThatExceptionOfType(BeanCreationException.class)
|
||||
.isThrownBy(() -> registerAndRefresh(RedisConfig.class, MultipleConnectionFactoryRedisConfig.class))
|
||||
.withCauseInstanceOf(NoUniqueBeanDefinitionException.class).havingCause()
|
||||
.havingRootCause().isInstanceOf(NoUniqueBeanDefinitionException.class)
|
||||
.withMessageContaining("expected single matching bean but found 2");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user