Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User guide, Developer guide updates and bugfixes #191

Merged
merged 69 commits into from
Nov 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
d9bdad3
Merge branch 'master' into branch-v1.4
Nov 4, 2019
977cd69
partial udpate of EditCommandParserTest
Nov 4, 2019
dccdb7b
Add more test cases to EditCommandParser
Nov 5, 2019
df9cd46
complete EditCommandParserTest
Nov 5, 2019
2946a88
fix test case issues
Nov 5, 2019
bea8a10
fix checkstyle issues
Nov 5, 2019
0e13272
rename variables and begin Interviewee test cases
Nov 5, 2019
b7e288f
fix checkstyle issues
Nov 5, 2019
5411c3b
Add test cases for Interviewee and Interviewer
Nov 5, 2019
9dcedbe
Add test cases for JsonAdaptedDepartment and JsonAdaptedSlot
Nov 5, 2019
23b0106
fix merge conflicts
Nov 5, 2019
e902537
update message constraint descriptions for Department, Slot, YearOfSt…
Nov 5, 2019
0fe29fc
update descriptions for Commands
Nov 5, 2019
b1c03b6
update description for commands
Nov 5, 2019
47b69a4
Merge branch 'master' into branch-v1.4
Nov 6, 2019
b0e5e9c
initial changes to UserGuide.adoc
Nov 6, 2019
703a3eb
Update UserGuide.adoc
Nov 6, 2019
53175af
fix travis CI issues
Nov 6, 2019
3f14a23
fix travis CI issues
Nov 6, 2019
a16a984
fix travis CI issues
Nov 6, 2019
61f80ad
fix test case issues
Nov 6, 2019
f060525
initial content added to PPP
Nov 6, 2019
ec17ee8
fix merge conflicts
Nov 6, 2019
c098b69
fix bug where incorrect dates like 29/02/2019 were being parsed corre…
Nov 6, 2019
1509f3e
rewrite incorrect statements on UserGuide.adoc
Nov 7, 2019
6f5676d
rewrote parse error messages to be more descriptive
Nov 7, 2019
a31ac30
add constraint for tags in add/edit commands in userguide
Nov 7, 2019
8b94b5b
update user guide to be more descriptive for add/edit commands
Nov 7, 2019
f4a6058
improve system messages
Nov 7, 2019
1f48b01
update error messages to be more descriptie
Nov 7, 2019
1b9acec
fix merge conflicts
Nov 7, 2019
3b0a4a0
fix merge conflicts
Nov 7, 2019
5cdc0db
fix travis CI issues
Nov 7, 2019
8efa6bf
bugfix where duplicate slots could be added at once
Nov 8, 2019
f3f7789
Add new test cases for bugfix
Nov 8, 2019
9658f26
fixed a bug where duplicate arguments could be passed in add/edit
Nov 9, 2019
74571f0
fix merge conflicts
Nov 9, 2019
a4504ce
abstract DeleteCommand to DeleteIntervieweeCommand, DeleteInterviewer…
Nov 9, 2019
3496a36
improve test cases
Nov 9, 2019
1aa368e
Merge branch 'master' into branch-final-submission
Nov 9, 2019
642ec07
fix merge conflicts
Nov 10, 2019
2754701
Added class diagram for Logic component
Nov 10, 2019
ceeb864
add general logic sequence diagram
Nov 10, 2019
169293b
add activity diagrams for add, edit and delte
Nov 10, 2019
2ec2323
add sequence diagram for add command
Nov 10, 2019
d5d3444
add sequence diagram for edit command
Nov 10, 2019
143113f
add sequence diagram for delete command
Nov 10, 2019
b4acc0a
minor renaming
Nov 10, 2019
24430f6
minor changes
Nov 10, 2019
bc20363
minor changes
Nov 10, 2019
5f5a175
Merge branch 'master' into branch-final-submission
Nov 10, 2019
248176a
update developer guide for add command
Nov 10, 2019
3781fe0
complete developer guide
Nov 10, 2019
704c69c
complete developer guide
Nov 10, 2019
129755b
fix travis CI issues
Nov 10, 2019
b5b55dd
Merge branch 'master' of https://github.com/AY1920S1-CS2103-F09-1/main
Nov 10, 2019
74d38f9
Merge branch 'master' into branch-final-submission
Nov 10, 2019
fa510e8
add clear command to user guide
Nov 10, 2019
fc7be96
complete PPP
Nov 10, 2019
7a39883
update user guide
Nov 11, 2019
8a08f5a
Merge branch 'master' of https://github.com/AY1920S1-CS2103-F09-1/main
Nov 11, 2019
4093608
fix merge conflicts
Nov 11, 2019
e2d8318
update app to correctly reflect range of years of study
Nov 11, 2019
8edcf59
bugixes
Nov 11, 2019
8766a2b
update valid years of study and correct add parsing bug
Nov 11, 2019
199f983
Merge branch 'master' of https://github.com/AY1920S1-CS2103-F09-1/main
Nov 11, 2019
820b092
Merge branch 'master' into branch-fix-add
Nov 11, 2019
0cc1d22
more fixes
Nov 11, 2019
21ef08d
minor changes
Nov 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/DeveloperGuide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Each of <<Add Interviewee/Interviewer feature, add>>, <<Edit Interviewee/Intervi
==== Add Interviewee/Interviewer feature
The `add` command feature essentially allows a user to add an `Interviewee` or `Interviewer` object to the underlying `IntervieweeList`
or `InterviewerList` of `ModelManager`.
Upon successful parsing of the `add` command arguments, an instance of `Interviewee`/`Interviewer` is created based on the `r/ROLE` prefix supplied,
Upon successful parsing of the `add` command arguments, an instance of `Interviewee`/`Interviewer` is created based on the preamble supplied,
which is added to its corresponding list in `ModelManager`.
The underlying `UniquePersonList` of `IntervieweeList` and `InterviewerList` ensures
that no duplicate entities are present at any time, checked by Interviewee#isSamePerson() and Interviewer#isSamePerson().
Expand Down Expand Up @@ -1049,9 +1049,9 @@ Please refer to the Add interviewees/interviewer section in the <<UserGuide#, us
For simplicity, we refer to interviewees and interviewers as *entities* collectively.

. Upon launching Scheduler, input the following command to add an interviewee:
.. `add r/interviewee n/Ronald p/88888888 t/CAP5 t/dogLover f/School of Computing ep/JohnDoe@gmail.com ew/JohnDoe@u.nus.edu y/2018 d/Marketing s/20/09/2019 18:00-18:30`
.. `add interviewee n/Ronald p/88888888 t/CAP5 t/dogLover f/School of Computing ep/JohnDoe@gmail.com ew/JohnDoe@u.nus.edu y/2 d/Marketing s/20/09/2019 18:00-18:30`
. To add an interviewer, input the following command:
.. `add r/interviewer n/Delilah p/98765432 ew/delilah@u.nus.edu d/Marketing s/20/09/2019 18:00-18:30`
.. `add interviewer n/Delilah p/98765432 ew/delilah@u.nus.edu d/Marketing s/20/09/2019 18:00-18:30`
. Expected: The Interviewees and Interviewers tab now reflects the newly added interviewee and interviewer, with each column in the tab corresponding to the various fields input.
(i.e the column in the interviewees tab with header `name` now reflects `Ronald` as input by the user)
. You can change the different prefix fields (e.g `n/Ronald`) to any valid value, as stated in the User Guide under the `add` command section.
Expand Down
143 changes: 77 additions & 66 deletions docs/UserGuide.adoc

Large diffs are not rendered by default.

Binary file modified docs/images/AddActivityDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/main/java/seedu/scheduler/commons/core/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public class Messages {
public static final String MESSAGE_PERSONS_LISTED_OVERVIEW = "%1$d persons listed!";
public static final String MESSAGE_CRITICAL_ERROR = "Internal Error!";
public static final String MESSAGE_INVALID_YEAR_OF_STUDY = "Incorrect year of study format! "
+ "The year of study must be a positive integer within the range [0, 2^31 - 1].\n"
+ "The year of study must be a positive integer within the range [1, 5].\n"
+ "Examples:\n"
+ "Correct: 2019\n"
+ "Correct: 1\n"
+ "Incorrect: -1";
}
9 changes: 2 additions & 7 deletions src/main/java/seedu/scheduler/logic/commands/AddCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_NUS_WORK_EMAIL;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_PERSONAL_EMAIL;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_PHONE;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_ROLE;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_SLOT;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_TAG;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_YEAR_OF_STUDY;
Expand All @@ -25,7 +24,6 @@ public abstract class AddCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD
+ ": Adds an entity to the scheduler book. An entity can be an interviewee or interviewer.\n"
+ "Parameters to add interviewees:\n"
+ PREFIX_ROLE + "interviewee "
+ PREFIX_NAME + "NAME "
+ PREFIX_PHONE + "PHONE "
+ PREFIX_FACULTY + "FACULTY "
Expand All @@ -36,16 +34,14 @@ public abstract class AddCommand extends Command {
+ PREFIX_SLOT + "SLOT... "
+ "[" + PREFIX_TAG + "TAG]... \n"
+ "Parameters to add interviewers:\n"
+ PREFIX_ROLE + "interviewer "
+ PREFIX_NAME + "NAME "
+ PREFIX_PHONE + "PHONE "
+ PREFIX_NUS_WORK_EMAIL + "NUS_WORK_EMAIL "
+ PREFIX_DEPARTMENT + "DEPARTMENT "
+ PREFIX_SLOT + "SLOT... "
+ "[" + PREFIX_TAG + "TAG]... \n"
+ "Example (add interviewee):\n"
+ COMMAND_WORD + " "
+ PREFIX_ROLE + DefaultValues.DEFAULT_INTERVIEWEE_ROLE + " "
+ COMMAND_WORD + " interviewee "
+ PREFIX_NAME + DefaultValues.DEFAULT_NAME + " "
+ PREFIX_PHONE + DefaultValues.DEFAULT_PHONE + " "
+ PREFIX_FACULTY + DefaultValues.DEFAULT_FACULTY + " "
Expand All @@ -56,8 +52,7 @@ public abstract class AddCommand extends Command {
+ PREFIX_SLOT + DefaultValues.DEFAULT_SLOT + " "
+ PREFIX_TAG + "friends\n"
+ "Example (add interviewer):\n"
+ COMMAND_WORD + " "
+ PREFIX_ROLE + DefaultValues.DEFAULT_INTERVIEWER_ROLE + " "
+ COMMAND_WORD + " interviewer "
+ PREFIX_NAME + DefaultValues.DEFAULT_NAME + " "
+ PREFIX_PHONE + DefaultValues.DEFAULT_PHONE + " "
+ PREFIX_NUS_WORK_EMAIL + DefaultValues.DEFAULT_NUS_WORK_EMAIL + " "
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/seedu/scheduler/logic/commands/EditCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ public abstract class EditCommand extends Command {
+ "[" + PREFIX_DEPARTMENT + "DEPARTMENT] "
+ "[" + PREFIX_SLOT + "SLOT]... "
+ "[" + PREFIX_TAG + "TAG]...\n"
+ "Example (add interviewee):\n"
+ "Example (edit interviewee):\n"
+ COMMAND_WORD + " John Doe "
+ PREFIX_ROLE + "interviewee "
+ PREFIX_PHONE + "91234567 "
+ PREFIX_FACULTY + "School of Computing "
+ PREFIX_SLOT + "05/11/2019 18:00-19:00\n"
+ "Example (add interviewer):\n"
+ PREFIX_SLOT + "05/11/2019 18:30-19:00\n"
+ "Example (edit interviewer):\n"
+ COMMAND_WORD + " John Doe "
+ PREFIX_ROLE + "interviewer "
+ PREFIX_PHONE + "91234567 "
Expand Down
55 changes: 28 additions & 27 deletions src/main/java/seedu/scheduler/logic/parser/AddCommandParser.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package seedu.scheduler.logic.parser;

import static seedu.scheduler.commons.core.Messages.MESSAGE_CRITICAL_ERROR;
import static seedu.scheduler.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_DEPARTMENT;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_FACULTY;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_NAME;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_NUS_WORK_EMAIL;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_PERSONAL_EMAIL;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_PHONE;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_ROLE;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_SLOT;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_TAG;
import static seedu.scheduler.logic.parser.CliSyntax.PREFIX_YEAR_OF_STUDY;
import static seedu.scheduler.model.person.RoleType.INTERVIEWEE;
import static seedu.scheduler.model.person.RoleType.INTERVIEWER;

import java.util.List;
import java.util.Set;
Expand All @@ -30,8 +30,6 @@
import seedu.scheduler.model.person.Interviewer;
import seedu.scheduler.model.person.Name;
import seedu.scheduler.model.person.Phone;
import seedu.scheduler.model.person.Role;
import seedu.scheduler.model.person.RoleType;
import seedu.scheduler.model.person.Slot;
import seedu.scheduler.model.tag.Tag;

Expand All @@ -46,43 +44,39 @@ public class AddCommandParser implements Parser<AddCommand> {
* @throws ParseException if the user input does not conform the expected format
*/
public AddCommand parse(String args) throws ParseException {
ArgumentMultimap argMultimap =
ArgumentTokenizer.tokenize(args, PREFIX_ROLE, PREFIX_NAME, PREFIX_PHONE, PREFIX_TAG,
ArgumentMultimap argMultimap = ArgumentTokenizer.tokenize(args, PREFIX_NAME, PREFIX_PHONE, PREFIX_TAG,
PREFIX_FACULTY, PREFIX_YEAR_OF_STUDY, PREFIX_DEPARTMENT, PREFIX_SLOT, PREFIX_PERSONAL_EMAIL,
PREFIX_NUS_WORK_EMAIL);

// common prefixes - present across interviewers and interviewees
if (!arePrefixesPresent(argMultimap, PREFIX_ROLE, PREFIX_NAME, PREFIX_PHONE)
|| !argMultimap.getPreamble().isEmpty()) {
// parse the fields differently depending on the preamble.
if (argMultimap.getPreamble().isEmpty()) {
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddCommand.MESSAGE_USAGE));
}

Role role = ParserUtil.parseRole(argMultimap.getValue(PREFIX_ROLE).get());
Name name = ParserUtil.parseName(argMultimap.getValue(PREFIX_NAME).get());
Phone phone = ParserUtil.parsePhone(argMultimap.getValue(PREFIX_PHONE).get());
Set<Tag> tagList = ParserUtil.parseTags(argMultimap.getAllValues(PREFIX_TAG));

// hierarchical parsing
if (role.getRole().equals(RoleType.INTERVIEWEE)) {
return parseAddIntervieweeCommand(argMultimap, name, phone, tagList);
} else if (role.getRole().equals(RoleType.INTERVIEWER)) {
return parseAddInterviewerCommand(argMultimap, name, phone, tagList);
if (argMultimap.getPreamble().equals(INTERVIEWEE.toString().toLowerCase())) {
return parseAddIntervieweeCommand(args);
}
if (argMultimap.getPreamble().equals(INTERVIEWER.toString().toLowerCase())) {
return parseAddInterviewerCommand(args);
}

// control flow should not reach here.
throw new AssertionError(MESSAGE_CRITICAL_ERROR);
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddCommand.MESSAGE_USAGE));
}

/**
* Parses the argument multimap into an AddIntervieweeCommand.
*/
private AddIntervieweeCommand parseAddIntervieweeCommand(ArgumentMultimap argMultimap, Name name, Phone phone,
Set<Tag> tagSet) throws ParseException {
if (!arePrefixesPresent(argMultimap, PREFIX_FACULTY, PREFIX_YEAR_OF_STUDY, PREFIX_FACULTY,
private AddIntervieweeCommand parseAddIntervieweeCommand(String args) throws ParseException {
ArgumentMultimap argMultimap = ArgumentTokenizer.tokenize(args, PREFIX_NAME, PREFIX_PHONE, PREFIX_TAG,
PREFIX_FACULTY, PREFIX_YEAR_OF_STUDY, PREFIX_DEPARTMENT, PREFIX_SLOT, PREFIX_PERSONAL_EMAIL,
PREFIX_NUS_WORK_EMAIL);
if (!arePrefixesPresent(argMultimap, PREFIX_NAME, PREFIX_PHONE, PREFIX_FACULTY, PREFIX_YEAR_OF_STUDY,
PREFIX_DEPARTMENT, PREFIX_SLOT, PREFIX_PERSONAL_EMAIL, PREFIX_NUS_WORK_EMAIL)) {
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddCommand.MESSAGE_USAGE));
}
// Get all necessary fields from argMultimap
Name name = ParserUtil.parseName(argMultimap.getValue(PREFIX_NAME).get());
Phone phone = ParserUtil.parsePhone(argMultimap.getValue(PREFIX_PHONE).get());
Faculty faculty = ParserUtil.parseFaculty(argMultimap.getValue(PREFIX_FACULTY).get());
Integer yearOfStudy = ParserUtil.parseYearOfStudy(argMultimap.getValue(PREFIX_YEAR_OF_STUDY).get());
List<Slot> availableTimeslots = ParserUtil.parseSlots(argMultimap.getAllValues(PREFIX_SLOT));
Expand All @@ -91,6 +85,7 @@ private AddIntervieweeCommand parseAddIntervieweeCommand(ArgumentMultimap argMul
Emails emails = new Emails().addPersonalEmail(personalEmail).addNusEmail(nusWorkEmail);
List<Department> departmentChoices =
ParserUtil.parseDepartments(argMultimap.getAllValues(PREFIX_DEPARTMENT));
Set<Tag> tagSet = ParserUtil.parseTags(argMultimap.getAllValues(PREFIX_TAG));

// An interviewee should not be allocated the same timeslots.
if (CollectionUtil.collectionHasDuplicate(availableTimeslots)) {
Expand All @@ -117,15 +112,21 @@ private AddIntervieweeCommand parseAddIntervieweeCommand(ArgumentMultimap argMul
/**
* Parses the argument multimap into an AddInterviewerCommand.
*/
private AddInterviewerCommand parseAddInterviewerCommand(ArgumentMultimap argMultimap, Name name, Phone phone,
Set<Tag> tagSet) throws ParseException {
if (!arePrefixesPresent(argMultimap, PREFIX_DEPARTMENT, PREFIX_NUS_WORK_EMAIL, PREFIX_SLOT)) {
private AddInterviewerCommand parseAddInterviewerCommand(String args)
throws ParseException {
ArgumentMultimap argMultimap = ArgumentTokenizer.tokenize(args, PREFIX_NAME, PREFIX_PHONE, PREFIX_TAG,
PREFIX_DEPARTMENT, PREFIX_NUS_WORK_EMAIL, PREFIX_SLOT);
if (!arePrefixesPresent(argMultimap, PREFIX_NAME, PREFIX_PHONE, PREFIX_DEPARTMENT, PREFIX_NUS_WORK_EMAIL,
PREFIX_SLOT)) {
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddCommand.MESSAGE_USAGE));
}
// Get all necessary values from argMultimap.
Name name = ParserUtil.parseName(argMultimap.getValue(PREFIX_NAME).get());
Phone phone = ParserUtil.parsePhone(argMultimap.getValue(PREFIX_PHONE).get());
Department department = ParserUtil.parseDepartment(argMultimap.getValue(PREFIX_DEPARTMENT).get());
Email nusWorkEmail = ParserUtil.parseEmail(argMultimap.getValue(PREFIX_NUS_WORK_EMAIL).get());
List<Slot> availableTimeslots = ParserUtil.parseSlots(argMultimap.getAllValues(PREFIX_SLOT));
Set<Tag> tagSet = ParserUtil.parseTags(argMultimap.getAllValues(PREFIX_TAG));

// An interviewer should not have the same availabilities.
if (CollectionUtil.collectionHasDuplicate(availableTimeslots)) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/scheduler/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public static Integer parseYearOfStudy(String yearOfStudy) throws ParseException
Integer value;
try {
value = Integer.parseUnsignedInt(trimmedYearOfStudy);
if (value < 0) {
if (value <= 0 || value > 5) {
throw new NumberFormatException();
}
} catch (NumberFormatException e) {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/seedu/scheduler/model/person/DefaultValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class DefaultValues {

// Person
public static final Name DEFAULT_NAME = new Name("John Doe");
public static final Phone DEFAULT_PHONE = new Phone("88888888");
public static final Phone DEFAULT_PHONE = new Phone("91234567");
public static final Set<Tag> DEFAULT_TAGS = new HashSet<>();

// Interviewee
Expand All @@ -26,8 +26,8 @@ public class DefaultValues {
.addPersonalEmail(DEFAULT_PERSONAL_EMAIL)
.addNusEmail(DEFAULT_NUS_WORK_EMAIL);
public static final Faculty DEFAULT_FACULTY = new Faculty("School of Computing");
public static final Integer DEFAULT_YEAR_OF_STUDY = 2019;
public static final Slot DEFAULT_SLOT = Slot.fromString("17/10/2019 13:00-14:00");
public static final Integer DEFAULT_YEAR_OF_STUDY = 1;
public static final Slot DEFAULT_SLOT = Slot.fromString("17/10/2019 13:30-14:00");
public static final List<Department> DEFAULT_DEPARTMENTS = new ArrayList<>();
public static final List<Slot> DEFAULT_TIMESLOTS = new ArrayList<>();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"interviewees" : [ {
"faculty" : "Engineering",
"yearOfStudy" : 2019,
"yearOfStudy" : 1,
"departmentChoices" : [ "Logistics" ],
"availableTimeslots" : [ "03/03/2019 16:00-17:00" ],
"emails": {
Expand All @@ -13,7 +13,7 @@
"tagged" : [ "friends" ]
}, {
"faculty" : "Engineering",
"yearOfStudy" : 2019,
"yearOfStudy" : 1,
"departmentChoices" : [ "Logistics" ],
"availableTimeslots" : [ "03/03/2019 16:00-17:00" ],
"emails": {
Expand All @@ -25,7 +25,7 @@
"tagged" : [ "owesMoney", "friends" ]
}, {
"faculty" : "Engineering",
"yearOfStudy" : 2019,
"yearOfStudy" : 1,
"departmentChoices" : [ "Logistics" ],
"availableTimeslots" : [ "03/03/2019 16:00-17:00" ],
"emails": {
Expand All @@ -37,7 +37,7 @@
"tagged" : []
}, {
"faculty" : "Engineering",
"yearOfStudy" : 2019,
"yearOfStudy" : 1,
"departmentChoices" : [ "Logistics" ],
"availableTimeslots" : [ "03/03/2019 16:00-17:00" ],
"emails": {
Expand All @@ -49,7 +49,7 @@
"tagged" : [ "friends" ]
}, {
"faculty" : "Engineering",
"yearOfStudy" : 2019,
"yearOfStudy" : 1,
"departmentChoices" : [ "Logistics" ],
"availableTimeslots" : [ "03/03/2019 16:00-17:00" ],
"emails": {
Expand All @@ -61,7 +61,7 @@
"tagged" : []
}, {
"faculty" : "Engineering",
"yearOfStudy" : 2019,
"yearOfStudy" : 1,
"departmentChoices" : [ "Logistics" ],
"availableTimeslots" : [ "03/03/2019 16:00-17:00" ],
"emails": {
Expand All @@ -73,7 +73,7 @@
"tagged" : []
}, {
"faculty" : "Engineering",
"yearOfStudy" : 2019,
"yearOfStudy" : 1,
"departmentChoices" : [ "Logistics" ],
"availableTimeslots" : [ "03/03/2019 16:00-17:00" ],
"emails": {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/seedu/scheduler/logic/LogicManagerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static seedu.scheduler.logic.commands.CommandTestUtil.EMAIL_NUS_WORK_DESC_AMY;
import static seedu.scheduler.logic.commands.CommandTestUtil.NAME_DESC_AMY;
import static seedu.scheduler.logic.commands.CommandTestUtil.PHONE_DESC_AMY;
import static seedu.scheduler.logic.commands.CommandTestUtil.ROLE_DESC_AMY_INTVR;
import static seedu.scheduler.logic.commands.CommandTestUtil.SLOT_DESC_AMY;
import static seedu.scheduler.logic.commands.CommandTestUtil.TAG_DESC_FRIEND;
import static seedu.scheduler.logic.commands.CommandTestUtil.VALID_ROLE_AMY_INTVR;
import static seedu.scheduler.testutil.Assert.assertThrows;
import static seedu.scheduler.testutil.TypicalPersons.AMY_INTERVIEWER_MANUAL;

Expand Down Expand Up @@ -82,7 +82,7 @@ public void execute_storageThrowsIoException_throwsCommandException() {
logic = new LogicManager(model, storage);

// Execute add command
String addCommand = AddCommand.COMMAND_WORD + ROLE_DESC_AMY_INTVR + NAME_DESC_AMY + PHONE_DESC_AMY
String addCommand = AddCommand.COMMAND_WORD + " " + VALID_ROLE_AMY_INTVR + NAME_DESC_AMY + PHONE_DESC_AMY
+ TAG_DESC_FRIEND + EMAIL_NUS_WORK_DESC_AMY + DEPARTMENT_DESC_AMY + SLOT_DESC_AMY;
ModelManager expectedModel = new ModelManager();
expectedModel.addInterviewer(AMY_INTERVIEWER_MANUAL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class CommandTestUtil {
public static final String VALID_TAG_FRIEND = "friend";
public static final String VALID_FACULTY_AMY = "School of Engineering";
public static final String VALID_FACULTY_BOB = "School of Computing";
public static final String VALID_YEAR_OF_STUDY_AMY = "2019";
public static final String VALID_YEAR_OF_STUDY_BOB = "2020";
public static final String VALID_YEAR_OF_STUDY_AMY = "1";
public static final String VALID_YEAR_OF_STUDY_BOB = "2";
public static final String VALID_DEPARTMENT_AMY = "Logistics";
public static final String VALID_DEPARTMENT_BOB = "Marketing";
public static final String VALID_SLOT_AMY = "17/10/2019 12:30-13:30";
Expand Down
Loading