From 0d3ba5caff940733f7c399449ca487b92217f851 Mon Sep 17 00:00:00 2001 From: DesSnowy <156517235+DesSnowy@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:32:40 +0800 Subject: [PATCH 1/4] Rename storgae file to konTActs.json --- src/main/java/seedu/address/model/UserPrefs.java | 2 +- src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json | 2 +- src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/seedu/address/model/UserPrefs.java b/src/main/java/seedu/address/model/UserPrefs.java index f3fe9354868..dabd182aaaf 100644 --- a/src/main/java/seedu/address/model/UserPrefs.java +++ b/src/main/java/seedu/address/model/UserPrefs.java @@ -14,7 +14,7 @@ public class UserPrefs implements ReadOnlyUserPrefs { private GuiSettings guiSettings = new GuiSettings(); - private Path addressBookFilePath = Paths.get("data", "addressbook.json"); + private Path addressBookFilePath = Paths.get("data", "konTActs.json"); private Path assignmentFilePath = Paths.get("data", "assignment.json"); /** diff --git a/src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json b/src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json index 1037548a9cd..d7ff88a5502 100644 --- a/src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json +++ b/src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json @@ -9,5 +9,5 @@ "z" : 99 } }, - "addressBookFilePath" : "addressbook.json" + "addressBookFilePath" : "konTActs.json" } diff --git a/src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json b/src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json index b819bed900a..efa111a5dd0 100644 --- a/src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json +++ b/src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json @@ -7,5 +7,5 @@ "y" : 100 } }, - "addressBookFilePath" : "addressbook.json" + "addressBookFilePath" : "konTActs.json" } From 621225284997ba52eb1ec6d98054d4f7ff2cfd29 Mon Sep 17 00:00:00 2001 From: DesSnowy <156517235+DesSnowy@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:38:54 +0800 Subject: [PATCH 2/4] Fix test cases --- .../java/seedu/address/storage/JsonUserPrefsStorageTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/seedu/address/storage/JsonUserPrefsStorageTest.java b/src/test/java/seedu/address/storage/JsonUserPrefsStorageTest.java index ed0a413526a..682817c79e6 100644 --- a/src/test/java/seedu/address/storage/JsonUserPrefsStorageTest.java +++ b/src/test/java/seedu/address/storage/JsonUserPrefsStorageTest.java @@ -73,7 +73,7 @@ public void readUserPrefs_extraValuesInFile_extraValuesIgnored() throws DataLoad private UserPrefs getTypicalUserPrefs() { UserPrefs userPrefs = new UserPrefs(); userPrefs.setGuiSettings(new GuiSettings(1000, 500, 300, 100)); - userPrefs.setAddressBookFilePath(Paths.get("addressbook.json")); + userPrefs.setAddressBookFilePath(Paths.get("konTActs.json")); return userPrefs; } From 72324af9db56c7979c32389397b74109346b4d2a Mon Sep 17 00:00:00 2001 From: DesSnowy <156517235+DesSnowy@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:43:43 +0800 Subject: [PATCH 3/4] Remove traces of addressbook.json --- docs/UserGuide.md | 2 +- src/test/java/seedu/address/logic/LogicManagerTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 22dfa49d71a..2e6b22a4356 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -665,7 +665,7 @@ AddressBook data are saved in the hard disk automatically after any command that ### Editing the data file -AddressBook data are saved automatically as a JSON file `[JAR file location]/data/addressbook.json`. Advanced users are welcome to update data directly by editing that data file. +AddressBook data are saved automatically as a JSON file `[JAR file location]/data/konTActs.json`. Advanced users are welcome to update data directly by editing that data file. diff --git a/src/test/java/seedu/address/logic/LogicManagerTest.java b/src/test/java/seedu/address/logic/LogicManagerTest.java index 60a27581aff..83c29c61d6f 100644 --- a/src/test/java/seedu/address/logic/LogicManagerTest.java +++ b/src/test/java/seedu/address/logic/LogicManagerTest.java @@ -48,7 +48,7 @@ public class LogicManagerTest { @BeforeEach public void setUp() { JsonAddressBookStorage addressBookStorage = - new JsonAddressBookStorage(temporaryFolder.resolve("addressBook.json")); + new JsonAddressBookStorage(temporaryFolder.resolve("konTActs.json")); JsonUserPrefsStorage userPrefsStorage = new JsonUserPrefsStorage(temporaryFolder.resolve("userPrefs.json")); JsonPredefinedAssignmentDataStorage predefinedAssignmentDataStorage = new JsonPredefinedAssignmentDataStorage(temporaryFolder.resolve("asign")); From c4ccb1cd054f860ad17bd533c2a91d251ac6c9d6 Mon Sep 17 00:00:00 2001 From: DesSnowy <156517235+DesSnowy@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:58:38 +0800 Subject: [PATCH 4/4] Rename to lower case --- docs/UserGuide.md | 2 +- src/main/java/seedu/address/model/UserPrefs.java | 2 +- src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json | 2 +- src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json | 2 +- src/test/java/seedu/address/logic/LogicManagerTest.java | 2 +- .../java/seedu/address/storage/JsonUserPrefsStorageTest.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 2e6b22a4356..fe3a45883c3 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -665,7 +665,7 @@ AddressBook data are saved in the hard disk automatically after any command that ### Editing the data file -AddressBook data are saved automatically as a JSON file `[JAR file location]/data/konTActs.json`. Advanced users are welcome to update data directly by editing that data file. +AddressBook data are saved automatically as a JSON file `[JAR file location]/data/kontacts.json`. Advanced users are welcome to update data directly by editing that data file. diff --git a/src/main/java/seedu/address/model/UserPrefs.java b/src/main/java/seedu/address/model/UserPrefs.java index dabd182aaaf..5591512eca8 100644 --- a/src/main/java/seedu/address/model/UserPrefs.java +++ b/src/main/java/seedu/address/model/UserPrefs.java @@ -14,7 +14,7 @@ public class UserPrefs implements ReadOnlyUserPrefs { private GuiSettings guiSettings = new GuiSettings(); - private Path addressBookFilePath = Paths.get("data", "konTActs.json"); + private Path addressBookFilePath = Paths.get("data", "kontacts.json"); private Path assignmentFilePath = Paths.get("data", "assignment.json"); /** diff --git a/src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json b/src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json index d7ff88a5502..ba7e03c015f 100644 --- a/src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json +++ b/src/test/data/JsonUserPrefsStorageTest/ExtraValuesUserPref.json @@ -9,5 +9,5 @@ "z" : 99 } }, - "addressBookFilePath" : "konTActs.json" + "addressBookFilePath" : "kontacts.json" } diff --git a/src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json b/src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json index efa111a5dd0..3bd7842e039 100644 --- a/src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json +++ b/src/test/data/JsonUserPrefsStorageTest/TypicalUserPref.json @@ -7,5 +7,5 @@ "y" : 100 } }, - "addressBookFilePath" : "konTActs.json" + "addressBookFilePath" : "kontacts.json" } diff --git a/src/test/java/seedu/address/logic/LogicManagerTest.java b/src/test/java/seedu/address/logic/LogicManagerTest.java index 83c29c61d6f..274c0e668b7 100644 --- a/src/test/java/seedu/address/logic/LogicManagerTest.java +++ b/src/test/java/seedu/address/logic/LogicManagerTest.java @@ -48,7 +48,7 @@ public class LogicManagerTest { @BeforeEach public void setUp() { JsonAddressBookStorage addressBookStorage = - new JsonAddressBookStorage(temporaryFolder.resolve("konTActs.json")); + new JsonAddressBookStorage(temporaryFolder.resolve("kontacts.json")); JsonUserPrefsStorage userPrefsStorage = new JsonUserPrefsStorage(temporaryFolder.resolve("userPrefs.json")); JsonPredefinedAssignmentDataStorage predefinedAssignmentDataStorage = new JsonPredefinedAssignmentDataStorage(temporaryFolder.resolve("asign")); diff --git a/src/test/java/seedu/address/storage/JsonUserPrefsStorageTest.java b/src/test/java/seedu/address/storage/JsonUserPrefsStorageTest.java index 682817c79e6..08fab87e10d 100644 --- a/src/test/java/seedu/address/storage/JsonUserPrefsStorageTest.java +++ b/src/test/java/seedu/address/storage/JsonUserPrefsStorageTest.java @@ -73,7 +73,7 @@ public void readUserPrefs_extraValuesInFile_extraValuesIgnored() throws DataLoad private UserPrefs getTypicalUserPrefs() { UserPrefs userPrefs = new UserPrefs(); userPrefs.setGuiSettings(new GuiSettings(1000, 500, 300, 100)); - userPrefs.setAddressBookFilePath(Paths.get("konTActs.json")); + userPrefs.setAddressBookFilePath(Paths.get("kontacts.json")); return userPrefs; }