diff --git a/config/src/test/kotlin/org/springframework/security/config/annotation/web/AuthorizeHttpRequestsDslTests.kt b/config/src/test/kotlin/org/springframework/security/config/annotation/web/AuthorizeHttpRequestsDslTests.kt index d2ec0a76d4..5a124b2f97 100644 --- a/config/src/test/kotlin/org/springframework/security/config/annotation/web/AuthorizeHttpRequestsDslTests.kt +++ b/config/src/test/kotlin/org/springframework/security/config/annotation/web/AuthorizeHttpRequestsDslTests.kt @@ -856,6 +856,7 @@ class AuthorizeHttpRequestsDslTests { } } + @Test fun `hasRole when prefixed by configured role prefix should fail to configure`() { assertThatThrownBy { this.spring.register(RoleValidationConfig::class.java).autowire() } .isInstanceOf(UnsatisfiedDependencyException::class.java)