Skip to content

Commit

Permalink
Fix unit tests for UsernamePasswordCredentials class changes
Browse files Browse the repository at this point in the history
  • Loading branch information
besidev committed Jan 2, 2024
1 parent 80b4aad commit d832413
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void nullUsernameShouldMakeValidationThrowsException() {

Exception exception = Assertions.assertThrowsExactly(CredentialValidationException.class,
() -> credentials.validate(null));
assertEquals("username cannot be null or blank", exception.getMessage());
assertEquals("Username cannot be null or blank", exception.getMessage());
}

@Test
Expand All @@ -35,7 +35,7 @@ public void blankUsernameShouldMakeValidationThrowsException() {

Exception exception = Assertions.assertThrowsExactly(CredentialValidationException.class,
() -> credentials.validate(null));
assertEquals("username cannot be null or blank", exception.getMessage());
assertEquals("Username cannot be null or blank", exception.getMessage());
}

@Test
Expand All @@ -44,7 +44,7 @@ public void missingPasswordShouldMakeValidationThrowsException() {

Exception exception = Assertions.assertThrowsExactly(CredentialValidationException.class,
() -> credentials.validate(null));
assertEquals("password cannot be null", exception.getMessage());
assertEquals("Password cannot be null", exception.getMessage());
}

@Test
Expand Down

0 comments on commit d832413

Please sign in to comment.