forked from nus-cs2103-AY1617S1/addressbook-level4
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename ChangeSaveLocationRequest to SaveLocationChange * Update test * Put literals in variable for Events * Rewrite Store Command test one method per test case * Rewrite test for load command. One method per test case * Rewrite Storage tests to follow convention * Rewrite logic manager test for store and load * Extract variables out of setup * Rename SaveLocationChange to ChangeSaveLocation
- Loading branch information
Showing
13 changed files
with
137 additions
and
94 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/seedu/agendum/commons/events/model/ChangeSaveLocationEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package seedu.agendum.commons.events.model; | ||
|
||
import seedu.agendum.commons.events.BaseEvent; | ||
//@@author A0148095X | ||
/** Indicates a request from model to change the save location of the data file*/ | ||
public class ChangeSaveLocationEvent extends BaseEvent { | ||
|
||
public final String location; | ||
|
||
private String message; | ||
|
||
public ChangeSaveLocationEvent(String saveLocation){ | ||
this.location = saveLocation; | ||
this.message = "Request to change save location to: " + location; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return message; | ||
} | ||
} |
18 changes: 0 additions & 18 deletions
18
src/main/java/seedu/agendum/commons/events/model/ChangeSaveLocationRequestEvent.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.