Skip to content

Commit

Permalink
update&test[userService]: Test login with a passowrd char[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Marjoni committed Mar 10, 2026
1 parent 9b9e9db commit 1e60e44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/edu/group5/app/model/user/UserServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ void loginInvalidPassword() {
boolean result = service.login("test@example.com", "wrongpass".toCharArray());
boolean result2 = service.login("test@example.com", null);
boolean result3 = service.login("test@example.com", " ".toCharArray());
boolean result4 = service.login("test@example.com", new char[0]);
assertFalse(result);
assertFalse(result2);
assertFalse(result3);
assertFalse(result4);
}

@Test
Expand Down

0 comments on commit 1e60e44

Please sign in to comment.