Skip to content

Commit

Permalink
bug fix jsonUserPrefsTest, change file path in UserPrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
leongshengmin committed Oct 18, 2018
1 parent b03943c commit 85e3b5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/UserPrefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class UserPrefs {

private GuiSettings guiSettings;
private Path wishTransactionFilePath = Paths.get("data", "wishtransaction.xml");
private Path wishBookFilePath = Paths.get("wishbook.xml");
private Path wishBookFilePath = Paths.get("data", "wishbook.xml");

public UserPrefs() {
setGuiSettings(500, 500, 0, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"z" : 99
}
},
"wishBookFilePath" : "data\\wishbook.xml"
"wishBookFilePath" : "wishbook.xml"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
}
},
"wishTransactionFilePath" : "data\\wishtransaction.xml",
"wishBookFilePath" : "data\\wishbook.xml"
"wishBookFilePath" : "wishbook.xml"
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void readUserPrefs_extraValuesInFile_extraValuesIgnored() throws DataConv
private UserPrefs getTypicalUserPrefs() {
UserPrefs userPrefs = new UserPrefs();
userPrefs.setGuiSettings(1000, 500, 300, 100);
userPrefs.setWishBookFilePath(Paths.get("data", "wishbook.xml"));
userPrefs.setWishBookFilePath(Paths.get("wishbook.xml"));
return userPrefs;
}

Expand Down

0 comments on commit 85e3b5c

Please sign in to comment.