diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-17 16:12:56 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-17 16:12:56 -0400 |
commit | ebccd8c4bddc9799e91a3149040efb4cac647c45 (patch) | |
tree | 0ea4dbb616005cc833b7e877bc56eaed412f163d /ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/UserFileDAOTest.java | |
parent | 60dd2db634de6146671be9546fb3e4bdf6d9b7d9 (diff) | |
parent | 251f30c402700169213ed4560a7797a785a50e78 (diff) | |
download | JellySolutions-ebccd8c4bddc9799e91a3149040efb4cac647c45.tar.gz JellySolutions-ebccd8c4bddc9799e91a3149040efb4cac647c45.tar.bz2 JellySolutions-ebccd8c4bddc9799e91a3149040efb4cac647c45.zip |
Merge branch 'service-tests' of https://github.com/RIT-SWEN-261-02/team-project-2245-swen-261-02-2b into service-tests
Diffstat (limited to 'ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/UserFileDAOTest.java')
-rw-r--r-- | ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/UserFileDAOTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/UserFileDAOTest.java b/ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/UserFileDAOTest.java index b802669..9361188 100644 --- a/ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/UserFileDAOTest.java +++ b/ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/UserFileDAOTest.java @@ -27,9 +27,9 @@ public class UserFileDAOTest { public void setupHeroFileDAO() throws IOException { mockObjectMapper = mock(ObjectMapper.class); testUsers = new User[3]; - testUsers[0] = new User("bob"); - testUsers[1] = new User("admin"); - testUsers[2] = new User("jelly12"); + testUsers[0] = User.create("bob", "pass"); + testUsers[1] = User.create("admin", "pass"); + testUsers[2] = User.create("jelly12", "pass"); // When the object mapper is supposed to read from the file // the mock object mapper will return the hero array above @@ -75,7 +75,7 @@ public class UserFileDAOTest { @Test public void createUserTest() throws IOException { - User newUser = new User("keshey"); + User newUser = User.create("keshey", "pass"); userFileDAO.addUser(newUser); User actualUser = userFileDAO.getUser("keshey"); |