Skip to content

Commit

Permalink
upload collate (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynekoo authored and hzxcaryn committed Apr 4, 2018
1 parent bfd1adc commit 6fa9241
Show file tree
Hide file tree
Showing 8 changed files with 7,843 additions and 0 deletions.
1,299 changes: 1,299 additions & 0 deletions collated/functional/SunBangjie.md

Large diffs are not rendered by default.

841 changes: 841 additions & 0 deletions collated/functional/hzxcaryn.md

Large diffs are not rendered by default.

1,139 changes: 1,139 additions & 0 deletions collated/functional/koo1993.md

Large diffs are not rendered by default.

1,231 changes: 1,231 additions & 0 deletions collated/functional/shanwpf.md

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions collated/test/SunBangjie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# SunBangJie
###### \java\seedu\ptman\logic\parser\PartTimeManagerParserTest.java
``` java
@Test
public void parseCommand_editoutlet() throws Exception {
String name = "EditedOutlet";
String operatingHours = "10:00-17:00";
String outletContact = "91234567";
String outletEmail = "[email protected]";
EditOutletCommand command = (EditOutletCommand) parser.parseCommand(EditOutletCommand.COMMAND_WORD
+ " " + PREFIX_OUTLET_NAME + name
+ " " + PREFIX_OPERATING_HOURS + operatingHours
+ " " + PREFIX_OUTLET_CONTACT + outletContact
+ " " + PREFIX_OUTLET_EMAIL + outletEmail);
assertEquals(new EditOutletCommand(new OutletName(name), new OperatingHours(operatingHours),
new OutletContact(outletContact), new OutletEmail(outletEmail)), command);
}

@Test
public void parseCommand_editoutletAlias() throws Exception {
String name = "EditedOutlet";
String operatingHours = "10:00-17:00";
String outletContact = "91234567";
String outletEmail = "[email protected]";
EditOutletCommand command = (EditOutletCommand) parser.parseCommand(EditOutletCommand.COMMAND_ALIAS
+ " " + PREFIX_OUTLET_NAME + name
+ " " + PREFIX_OPERATING_HOURS + operatingHours
+ " " + PREFIX_OUTLET_CONTACT + outletContact
+ " " + PREFIX_OUTLET_EMAIL + outletEmail);
assertEquals(new EditOutletCommand(new OutletName(name), new OperatingHours(operatingHours),
new OutletContact(outletContact), new OutletEmail(outletEmail)), command);
}

@Test
public void parseCommand_announcement() throws Exception {
String announcement = "new announcement.";
AnnouncementCommand command = (AnnouncementCommand) parser.parseCommand(AnnouncementCommand.COMMAND_WORD
+ " " + announcement);
assertEquals(new AnnouncementCommand(new Announcement(announcement)), command);
}

@Test
public void parseCommand_announcementAlias() throws Exception {
String announcement = "new announcement.";
AnnouncementCommand command = (AnnouncementCommand) parser.parseCommand(AnnouncementCommand.COMMAND_ALIAS
+ " " + announcement);
assertEquals(new AnnouncementCommand(new Announcement(announcement)), command);
}

```
Loading

0 comments on commit 6fa9241

Please sign in to comment.