aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/test/java/com/ufund/api/ufundapi/service/AuthServiceTest.java
diff options
context:
space:
mode:
authorbenal01 <bja4245@rit.edu>2025-03-17 21:55:57 -0400
committerbenal01 <bja4245@rit.edu>2025-03-17 21:55:57 -0400
commit3f8a523dbbfcbfed875adc383d91ef6143b651cb (patch)
tree5b05c242f7468832d36f888ad8e4fa554887de5b /ufund-api/src/test/java/com/ufund/api/ufundapi/service/AuthServiceTest.java
parent13c0042f9c6e130a061cbb448cff6bcd9e8ab5e6 (diff)
parentd1b7b81cbedc673cf6f52ac5745438f95083b78e (diff)
downloadJellySolutions-3f8a523dbbfcbfed875adc383d91ef6143b651cb.tar.gz
JellySolutions-3f8a523dbbfcbfed875adc383d91ef6143b651cb.tar.bz2
JellySolutions-3f8a523dbbfcbfed875adc383d91ef6143b651cb.zip
Merge branch 'main' of https://github.com/RIT-SWEN-261-02/team-project-2245-swen-261-02-2b-jellysolutions
Diffstat (limited to 'ufund-api/src/test/java/com/ufund/api/ufundapi/service/AuthServiceTest.java')
-rw-r--r--ufund-api/src/test/java/com/ufund/api/ufundapi/service/AuthServiceTest.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/ufund-api/src/test/java/com/ufund/api/ufundapi/service/AuthServiceTest.java b/ufund-api/src/test/java/com/ufund/api/ufundapi/service/AuthServiceTest.java
index 7770c40..55cf7a9 100644
--- a/ufund-api/src/test/java/com/ufund/api/ufundapi/service/AuthServiceTest.java
+++ b/ufund-api/src/test/java/com/ufund/api/ufundapi/service/AuthServiceTest.java
@@ -51,16 +51,16 @@ public class AuthServiceTest {
}
- @Test
- public void testAuthenticateMismatchName() throws IOException {
- // Mock
- when(mockAuthDAO.getUserAuth(key)).thenReturn(new UserAuth(key, "EvilFish", null));
- when(mockUserService.getUser("EvilFish")).thenReturn(user);
-
- // Analyze
- assertThrows(IllegalAccessException.class, () -> authService.authenticate(username, key));
-
- }
+// @Test
+// public void testAuthenticateMismatchName() throws IOException {
+// // Mock
+// when(mockAuthDAO.getUserAuth(key)).thenReturn(new UserAuth(key, "EvilFish", null));
+// when(mockUserService.getUser("EvilFish")).thenReturn(user);
+//
+// // Analyze
+// assertThrows(IllegalAccessException.class, () -> authService.authenticate(username, key));
+//
+// }
@Test
public void testAuthenticateMissingUserAuth() throws IOException {