diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-17 16:14:30 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-17 16:14:30 -0400 |
commit | 2bab07c55153f33f3321a487ffcda9f5f27b1788 (patch) | |
tree | b861e5e9b97ab68edde569ba8f3ef3aa038fb48d /ufund-api | |
parent | ebccd8c4bddc9799e91a3149040efb4cac647c45 (diff) | |
download | JellySolutions-2bab07c55153f33f3321a487ffcda9f5f27b1788.tar.gz JellySolutions-2bab07c55153f33f3321a487ffcda9f5f27b1788.tar.bz2 JellySolutions-2bab07c55153f33f3321a487ffcda9f5f27b1788.zip |
Modified user declarations in tests
Diffstat (limited to 'ufund-api')
-rw-r--r-- | ufund-api/src/test/java/com/ufund/api/ufundapi/controller/UserControllerTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/UserControllerTest.java b/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/UserControllerTest.java index 7bedd3e..b6367ad 100644 --- a/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/UserControllerTest.java +++ b/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/UserControllerTest.java @@ -183,7 +183,7 @@ public class UserControllerTest { public void testUpdateUser() throws IOException { // updateUser may throw IOException // Setup String username = "Test"; - User user = User.create("Bob", "pass"); + User user = User.create(username, "pass"); String key = UserAuth.generate(username).getKey(); // when updateUser is called, return true simulating successful // update and save @@ -201,7 +201,7 @@ public class UserControllerTest { public void testUpdateUserFailed() throws IOException { // updateUser may throw IOException // Setup String username = "Test"; - User user = User.create("Bob", "pass"); + User user = User.create(username, "pass"); String key = UserAuth.generate(username).getKey(); // when updateUser is called, return true simulating successful // update and save @@ -218,7 +218,7 @@ public class UserControllerTest { public void testUpdateUserInvalidParameter() throws IOException { // updateUser may throw IOException // Setup String username = "Test"; - User user = User.create("Bob", "pass"); + User user = User.create(username, "pass"); String key = UserAuth.generate(username).getKey(); // When updateUser is called on the Mock User DAO, throw an IOException doThrow(new IOException()).when(mockUserService).updateUser(user, username); @@ -234,7 +234,7 @@ public class UserControllerTest { public void testUpdateUserUnauthorized() throws IOException, IllegalAccessException { // updateUser may throw IOException // Setup String username = "Test"; - User user = new User("Bob"); + User user = User.create(username, "pass"); String key = UserAuth.generate(username).getKey(); // When updateUser is called on the Mock User service, throw a Invalid Parameter exception // exception |