diff --git a/server/src/test/java/org/cloudfoundry/identity/uaa/scim/validate/UaaPasswordPolicyValidatorTests.java b/server/src/test/java/org/cloudfoundry/identity/uaa/scim/validate/UaaPasswordPolicyValidatorTests.java index 0ae4bd052a4..2a97cf6f15c 100644 --- a/server/src/test/java/org/cloudfoundry/identity/uaa/scim/validate/UaaPasswordPolicyValidatorTests.java +++ b/server/src/test/java/org/cloudfoundry/identity/uaa/scim/validate/UaaPasswordPolicyValidatorTests.java @@ -47,20 +47,11 @@ void setUp() { } @Test - void min_password_length_is_always_1_if_set_to_0() { - policy.setMinLength(0); + void min_password_length_is_1() { + policy.setMinLength(1); validatePassword("", "Password must be at least 1 characters in length."); - validatePassword(null, "Password must be at least 1 characters in length."); } - @Test - void min_password_length_is_always_1_if_not_set() { - policy.setMinLength(-1); - validatePassword("", "Password must be at least 1 characters in length."); - validatePassword(null, "Password must be at least 1 characters in length."); - } - - @Test void testValidateSuccess() { validatePassword("Password2&");