Skip to content

Commit 738ad69

Browse files
committed
Changed the parameter for getUser to only require username. Might change implementation of getUser later if we have an array mechanism to store users locally.
1 parent 18a83fe commit 738ad69

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/main/java/UserDatabase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public void createUser(String username, String password, String email){
4545
}
4646

4747
@Override
48+
// To be edited to get user from the array format rather than the serialized format.
4849
public User getUser(String username) {
4950
User user = null;
5051
try(FileInputStream fileIn = new FileInputStream(accounts);

src/test/java/UserDatabaseTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,4 @@ public void rightUserWrongEmail(){
3030
UserDatabase accountDatabase = new UserDatabase(accounts);
3131
Assertions.assertTrue(accountDatabase.UserExists("MeenakshiGopakumar", "ma"));
3232
}
33-
34-
@Test
35-
public void UserRetrieval() {
36-
}
37-
}
33+
}

0 commit comments

Comments
 (0)