Fix tests using root cause for exception messages
Closes gh-11372
This commit is contained in:
@@ -77,7 +77,7 @@ public class EmbeddedLdapServerContextSourceFactoryBeanITests {
|
||||
public void contextSourceFactoryBeanWhenManagerDnAndNoPasswordThenException() {
|
||||
assertThatExceptionOfType(UnsatisfiedDependencyException.class)
|
||||
.isThrownBy(() -> this.spring.register(CustomManagerDnNoPasswordConfig.class).autowire())
|
||||
.withRootCauseInstanceOf(IllegalStateException.class)
|
||||
.havingRootCause().isInstanceOf(IllegalStateException.class)
|
||||
.withMessageContaining("managerPassword is required if managerDn is supplied");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user