diff --git a/docs/UserGuide.adoc b/docs/UserGuide.adoc index c6af30d40796..c4c49f7e1f46 100644 --- a/docs/UserGuide.adoc +++ b/docs/UserGuide.adoc @@ -114,6 +114,9 @@ A member can have any number of tags (including 0). The `group` attribute is an optional attribute. A member will be assigned to the default group `Member` if no group is specified in the command. +[NOTE] +This command is for `EXCO` members only. + Examples: * `add n/John Doe p/98765432 e/johnd@example.com m/A1234567H` @@ -139,6 +142,9 @@ The options to choose from are Monday, Wednesday and Friday. Creates a poll asking members to vote where the annual sports meeting should be held. The answers to choose from are I-Cube and LT7. +[NOTE] +This command is for `EXCO` members only. + === Adding a task: `addtask` (Since v1.3) Adds a task to Club Connect. + @@ -175,6 +181,8 @@ Alias: `assignt` ***** [NOTE] Duplicate tasks are not allowed. +[NOTE] +This command is for `EXCO` members only. This command assigns the task to the member based on the entered `NAME`. @@ -268,6 +276,8 @@ Aliases: `c`, `erase` * LETTER must be equals to "Y" to confirm clearing data from Club Connect * Any other LETTER will cancell the execution **** +[NOTE] +This command is for `EXCO` members only. Examples: @@ -310,6 +320,8 @@ Aliases: `del`, `rm`, `remove` * The index refers to the index number shown in the most recent listing. * The index *must be a positive integer* 1, 2, 3, ... **** +[NOTE] +This command is for `EXCO` members only. Examples: @@ -331,6 +343,8 @@ Aliases: `rmpoll`, `delpoll` * The index refers to the index number shown in the most recent poll listing. * The index *must be a positive integer* 1, 2, 3, ... **** +[NOTE] +This command is for `EXCO` members only. Examples: @@ -344,6 +358,8 @@ Deletes the 4th poll in the poll listing. Deletes the specified tag for all members in the Club Connect. + Format: `deletetag t/TAG` + Aliases: `rmtag`, `deltag` +[NOTE] +This command is for `EXCO` members only. **** * Deletes the specified tag from Club Connect. @@ -393,6 +409,8 @@ Aliases: `e`, `update` * When editing tags, the existing tags of the member will be removed i.e adding of tags is not cumulative. * You can remove all the member's tags by typing `t/` without specifying any tags after it. **** +[NOTE] +This command is for `EXCO` members only. Examples: @@ -500,9 +518,12 @@ Aliases : `h`, `info` === Hiding results of polls : `hideresults` (Since v1.4) -Hides the results of all polls in Club Connect. This is a command that can be used to remove clutter from poll results. + +Hides the results of all polls in Club Connect. This is a command that can be used by `EXCO` members only to remove clutter from poll results. + Format: `hideresults` + Alias: `hideres` +[NOTE] +This command is for `EXCO` members only. + === Listing entered commands : `history` @@ -530,6 +551,9 @@ Alias: `imp` [NOTE] You can save a Microsoft Excel spreadsheet as a CSV file by changing the file extension while saving. +[NOTE] +This command is for `EXCO` members only. + Examples: * `import C:/Users/John Doe/Desktop/members.csv` + @@ -591,6 +615,8 @@ Aliases: `rmgroup`, `delgroup` * The group must exist in Club Connect. * The group must be in valid format (i.e. no white-spaces and non-empty). **** +[NOTE] +This command is for `EXCO` members only. Examples: @@ -623,11 +649,15 @@ Selects the 1st member in the results of the `find` command. === Showing results of polls : `showresults` (Since v1.4) -Displays the results of polls in Club Connect. This is a command that can be used to monitor polls in the Club Connect. + +Displays the results of polls in Club Connect. This is a command that can be used by `EXCO` members only to monitor polls in the Club Connect. + Results include number of voters for each answer of a poll and total number of voters who took part in the poll. Results are anonymous. + Format: `showresults` + Alias: `showres` +[NOTE] +This command is for `EXCO` members only. + + === Signing up a member: `signup` (since v1.4) Signs up a member to Club Connect. + Format: `signup n/NAME p/PHONE_NUMBER e/EMAIL m/MATRIC_NUMBER [t/TAG]...` + @@ -676,6 +706,8 @@ The `undo` command fails as there are no undoable commands executed previously. Displays all the tasks created/assigned in Club Connect. This is a command that can be used by `EXCO` members to monitor all the tasks in the club. + Format: `viewalltasks` + Alias: `alltasks` +[NOTE] +This command is for `EXCO` members only. [NOTE] This command can only be invoked by `EXCO` members. diff --git a/src/main/java/seedu/club/commons/events/ui/HideResultsRequestEvent.java b/src/main/java/seedu/club/commons/events/ui/HideResultsRequestEvent.java index 9439a1abe6e4..1217c7e0c20b 100644 --- a/src/main/java/seedu/club/commons/events/ui/HideResultsRequestEvent.java +++ b/src/main/java/seedu/club/commons/events/ui/HideResultsRequestEvent.java @@ -1,5 +1,5 @@ package seedu.club.commons.events.ui; - +//@@author MuhdNurKamal import seedu.club.commons.events.BaseEvent; /** diff --git a/src/main/java/seedu/club/commons/events/ui/PollPanelSelectionChangedEvent.java b/src/main/java/seedu/club/commons/events/ui/PollPanelSelectionChangedEvent.java deleted file mode 100644 index 3edb9742df52..000000000000 --- a/src/main/java/seedu/club/commons/events/ui/PollPanelSelectionChangedEvent.java +++ /dev/null @@ -1,26 +0,0 @@ -package seedu.club.commons.events.ui; - -import seedu.club.commons.events.BaseEvent; -import seedu.club.ui.PollCard; - -/** - * Represents a selection change in the poll List Panel - */ -public class PollPanelSelectionChangedEvent extends BaseEvent { - - - private final PollCard newSelection; - - public PollPanelSelectionChangedEvent(PollCard newSelection) { - this.newSelection = newSelection; - } - - @Override - public String toString() { - return this.getClass().getSimpleName(); - } - - public PollCard getNewSelection() { - return newSelection; - } -} diff --git a/src/main/java/seedu/club/commons/events/ui/ShowResultsRequestEvent.java b/src/main/java/seedu/club/commons/events/ui/ShowResultsRequestEvent.java index 110f0e0282b6..cd845699355c 100644 --- a/src/main/java/seedu/club/commons/events/ui/ShowResultsRequestEvent.java +++ b/src/main/java/seedu/club/commons/events/ui/ShowResultsRequestEvent.java @@ -1,5 +1,5 @@ package seedu.club.commons.events.ui; - +//@@author MuhdNurKamal import seedu.club.commons.events.BaseEvent; /** diff --git a/src/main/java/seedu/club/logic/commands/AddPollCommand.java b/src/main/java/seedu/club/logic/commands/AddPollCommand.java index 2c6fe48d037a..31e06745605f 100644 --- a/src/main/java/seedu/club/logic/commands/AddPollCommand.java +++ b/src/main/java/seedu/club/logic/commands/AddPollCommand.java @@ -1,5 +1,5 @@ package seedu.club.logic.commands; - +//@@author MuhdNurKamal import static java.util.Objects.requireNonNull; import static seedu.club.logic.parser.CliSyntax.PREFIX_ANSWER; import static seedu.club.logic.parser.CliSyntax.PREFIX_QUESTION; diff --git a/src/main/java/seedu/club/logic/commands/CompressCommand.java b/src/main/java/seedu/club/logic/commands/CompressCommand.java index 99448eb644fe..fbabe12924b5 100644 --- a/src/main/java/seedu/club/logic/commands/CompressCommand.java +++ b/src/main/java/seedu/club/logic/commands/CompressCommand.java @@ -1,5 +1,5 @@ package seedu.club.logic.commands; - +//@@author MuhdNurKamal import java.util.ArrayList; import java.util.Arrays; diff --git a/src/main/java/seedu/club/logic/commands/DecompressCommand.java b/src/main/java/seedu/club/logic/commands/DecompressCommand.java index 111865bf3d22..b7c3821d937e 100644 --- a/src/main/java/seedu/club/logic/commands/DecompressCommand.java +++ b/src/main/java/seedu/club/logic/commands/DecompressCommand.java @@ -1,5 +1,5 @@ package seedu.club.logic.commands; - +//@@author MuhdNurKamal import java.util.ArrayList; import java.util.Arrays; diff --git a/src/main/java/seedu/club/logic/commands/DeletePollCommand.java b/src/main/java/seedu/club/logic/commands/DeletePollCommand.java index 39d62e798050..a3f008023e27 100644 --- a/src/main/java/seedu/club/logic/commands/DeletePollCommand.java +++ b/src/main/java/seedu/club/logic/commands/DeletePollCommand.java @@ -1,5 +1,5 @@ package seedu.club.logic.commands; - +//@@author MuhdNurKamal import static java.util.Objects.requireNonNull; import java.util.ArrayList; diff --git a/src/main/java/seedu/club/logic/commands/HideResultsCommand.java b/src/main/java/seedu/club/logic/commands/HideResultsCommand.java index f021d0215c59..95cbca9b6127 100644 --- a/src/main/java/seedu/club/logic/commands/HideResultsCommand.java +++ b/src/main/java/seedu/club/logic/commands/HideResultsCommand.java @@ -1,5 +1,5 @@ package seedu.club.logic.commands; - +//@@author MuhdNurKamal import java.util.ArrayList; import java.util.Arrays; diff --git a/src/main/java/seedu/club/logic/parser/AddPollCommandParser.java b/src/main/java/seedu/club/logic/parser/AddPollCommandParser.java index 77553d9b5f97..2cfc3e091a6e 100644 --- a/src/main/java/seedu/club/logic/parser/AddPollCommandParser.java +++ b/src/main/java/seedu/club/logic/parser/AddPollCommandParser.java @@ -1,5 +1,5 @@ package seedu.club.logic.parser; - +//@@author MuhdNurKamal import static seedu.club.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.club.logic.parser.CliSyntax.PREFIX_ANSWER; import static seedu.club.logic.parser.CliSyntax.PREFIX_QUESTION; diff --git a/src/main/java/seedu/club/logic/parser/DeletePollCommandParser.java b/src/main/java/seedu/club/logic/parser/DeletePollCommandParser.java index e3f2422cd3d6..a0f8b0cfa75d 100644 --- a/src/main/java/seedu/club/logic/parser/DeletePollCommandParser.java +++ b/src/main/java/seedu/club/logic/parser/DeletePollCommandParser.java @@ -1,5 +1,5 @@ package seedu.club.logic.parser; - +//@@author MuhdNurKamal import static seedu.club.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import seedu.club.commons.core.index.Index; diff --git a/src/main/java/seedu/club/logic/parser/FindCommandParser.java b/src/main/java/seedu/club/logic/parser/FindCommandParser.java index c89d82f7449b..d76edf1fd376 100644 --- a/src/main/java/seedu/club/logic/parser/FindCommandParser.java +++ b/src/main/java/seedu/club/logic/parser/FindCommandParser.java @@ -1,5 +1,5 @@ package seedu.club.logic.parser; - +//@@author MuhdNurKamal import static seedu.club.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.club.logic.parser.CliSyntax.PREFIX_EMAIL; import static seedu.club.logic.parser.CliSyntax.PREFIX_GROUP; @@ -19,7 +19,7 @@ */ public class FindCommandParser implements Parser { - private static Prefix[] prefixes = {PREFIX_NAME, PREFIX_EMAIL, PREFIX_PHONE, + private static final Prefix[] VALID_SEARCH_PREFIXES = {PREFIX_NAME, PREFIX_EMAIL, PREFIX_PHONE, PREFIX_MATRIC_NUMBER, PREFIX_GROUP, PREFIX_TAG}; /** @@ -40,7 +40,7 @@ public FindCommand parse(String args) throws ParseException { throw new ParseException( String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindCommand.MESSAGE_USAGE)); } else if (findArgs.length > 1) { - for (Prefix prefix : prefixes) { + for (Prefix prefix : VALID_SEARCH_PREFIXES) { if (findArgs[0].equalsIgnoreCase(prefix.toString())) { return new FindCommand(new FieldContainsKeywordsPredicate( Arrays.asList(findArgs).subList(1, findArgs.length), prefix)); diff --git a/src/main/java/seedu/club/logic/parser/ParserUtil.java b/src/main/java/seedu/club/logic/parser/ParserUtil.java index 0e1cfff4f66f..7881e2506e6a 100644 --- a/src/main/java/seedu/club/logic/parser/ParserUtil.java +++ b/src/main/java/seedu/club/logic/parser/ParserUtil.java @@ -380,7 +380,7 @@ public static Optional parseOptionalAnswer(Optional answer) thro } /** - * Parses {@code Collection tags} into a {@code List}. + * Parses {@code Collection answers} into a {@code List}. * Removes any duplicates if any */ public static List parseAnswers(Collection answers) throws IllegalValueException { diff --git a/src/main/java/seedu/club/model/ClubBook.java b/src/main/java/seedu/club/model/ClubBook.java index 668ca37bf40e..682cb9f07e55 100644 --- a/src/main/java/seedu/club/model/ClubBook.java +++ b/src/main/java/seedu/club/model/ClubBook.java @@ -5,6 +5,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Objects; @@ -90,7 +91,7 @@ public void setTags(Set tags) { public void resetData(ReadOnlyClubBook newData) { requireNonNull(newData); setTags(new HashSet<>(newData.getTagList())); - setPolls(new HashSet<>(newData.getPollList())); + setPolls(new LinkedHashSet<>(newData.getPollList())); setTasks(new HashSet<>(newData.getTaskList())); List syncedMemberList = newData.getMemberList().stream() .map(this::syncWithMasterTagList) diff --git a/src/main/java/seedu/club/model/ModelManager.java b/src/main/java/seedu/club/model/ModelManager.java index 0d7a827788e1..615f19c7d5ce 100644 --- a/src/main/java/seedu/club/model/ModelManager.java +++ b/src/main/java/seedu/club/model/ModelManager.java @@ -532,6 +532,7 @@ public void signUpMember(Member member) throws MemberListNotEmptyException { filteredMembers.setPredicate(PREDICATE_NOT_SHOW_ALL_MEMBERS); indicateClubBookChanged(); } + //@@author @Override public void clearClubBook() { diff --git a/src/main/java/seedu/club/model/poll/exceptions/AnswerNotFoundException.java b/src/main/java/seedu/club/model/poll/exceptions/AnswerNotFoundException.java index 4a49d06d023a..db51c073519e 100644 --- a/src/main/java/seedu/club/model/poll/exceptions/AnswerNotFoundException.java +++ b/src/main/java/seedu/club/model/poll/exceptions/AnswerNotFoundException.java @@ -1,6 +1,6 @@ package seedu.club.model.poll.exceptions; //@@author MuhdNurKamal /** - * Signals that the operation is unable to find the specified poll. + * Signals that the operation is unable to find the specified answer. */ public class AnswerNotFoundException extends Exception {} diff --git a/src/main/java/seedu/club/model/poll/exceptions/UserAlreadyVotedException.java b/src/main/java/seedu/club/model/poll/exceptions/UserAlreadyVotedException.java index 23d10d04d6bd..4c49ce01f766 100644 --- a/src/main/java/seedu/club/model/poll/exceptions/UserAlreadyVotedException.java +++ b/src/main/java/seedu/club/model/poll/exceptions/UserAlreadyVotedException.java @@ -1,6 +1,6 @@ package seedu.club.model.poll.exceptions; //@@author MuhdNurKamal /** - * Signals that the operation is unable to find the specified poll. + * Signals that the current logged in member has already voted for the poll. */ public class UserAlreadyVotedException extends Exception {} diff --git a/src/main/java/seedu/club/ui/AnswerCard.java b/src/main/java/seedu/club/ui/AnswerCard.java index 58fcdefd3ea7..67675552c762 100644 --- a/src/main/java/seedu/club/ui/AnswerCard.java +++ b/src/main/java/seedu/club/ui/AnswerCard.java @@ -2,7 +2,7 @@ //@@author MuhdNurKamal import javafx.fxml.FXML; import javafx.scene.control.Label; -import javafx.scene.control.ProgressIndicator; +import javafx.scene.control.ProgressBar; import javafx.scene.layout.Region; import seedu.club.model.poll.Answer; @@ -13,6 +13,7 @@ public class AnswerCard extends UiPart { private static final String FXML = "AnswerListCard.fxml"; private static final String DESCRIPTION_VOTE_COUNT = "Vote Count: "; + private static final String PERCENTAGE_SYMBOL = "%"; private final int totalVoteCount; @FXML @@ -25,7 +26,10 @@ public class AnswerCard extends UiPart { private Label voteCount; @FXML - private ProgressIndicator voteCountIndicator; + private ProgressBar votePercentageBar; + + @FXML + private Label votePercentage; /** * A constructor to initialize AnswerCard using {@value FXML} with results @@ -36,7 +40,7 @@ public AnswerCard(Answer answer, int displayedIndex, int totalVoteCount) { choice.setText(displayedIndex + ". "); answerValue.setText(answer.getValue()); voteCount.setText(DESCRIPTION_VOTE_COUNT + answer.getVoteCount()); - setVoteCountIndicator(answer); + setVotePercentage(answer); } /** @@ -51,11 +55,12 @@ public AnswerCard(Answer answer, int displayedIndex, int totalVoteCount, String answerValue.setText(answer.getValue()); } - private void setVoteCountIndicator(Answer answer) { + private void setVotePercentage(Answer answer) { int voteCount = answer.getVoteCount(); - double progress = totalVoteCount == 0 + double voteFraction = totalVoteCount == 0 ? 0 : ((double) voteCount) / totalVoteCount; - voteCountIndicator.setProgress(progress); + votePercentageBar.setProgress(voteFraction); + votePercentage.setText((Math.round(voteFraction * 1000)) / 10 + PERCENTAGE_SYMBOL); } @Override diff --git a/src/main/java/seedu/club/ui/AnswerListPanel.java b/src/main/java/seedu/club/ui/AnswerListPanel.java index 3eb3a7485f14..1b92687ff708 100644 --- a/src/main/java/seedu/club/ui/AnswerListPanel.java +++ b/src/main/java/seedu/club/ui/AnswerListPanel.java @@ -1,5 +1,5 @@ package seedu.club.ui; - +//@@author MuhdNurKamal import java.util.logging.Logger; import javafx.collections.ObservableList; diff --git a/src/main/java/seedu/club/ui/PollCard.java b/src/main/java/seedu/club/ui/PollCard.java index 37178a2d358b..505fa27fb5e7 100644 --- a/src/main/java/seedu/club/ui/PollCard.java +++ b/src/main/java/seedu/club/ui/PollCard.java @@ -1,5 +1,5 @@ package seedu.club.ui; - +//@@author MuhdNurKamal import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.layout.HBox; diff --git a/src/main/java/seedu/club/ui/PollListPanel.java b/src/main/java/seedu/club/ui/PollListPanel.java index e84f99c4c054..117f270c88f3 100644 --- a/src/main/java/seedu/club/ui/PollListPanel.java +++ b/src/main/java/seedu/club/ui/PollListPanel.java @@ -1,5 +1,5 @@ package seedu.club.ui; - +//@@author MuhdNurKamal import java.util.logging.Logger; import org.fxmisc.easybind.EasyBind; diff --git a/src/main/java/seedu/club/ui/RestrictedPollCard.java b/src/main/java/seedu/club/ui/RestrictedPollCard.java index 1872ba90d9be..8e4913b4f5b8 100644 --- a/src/main/java/seedu/club/ui/RestrictedPollCard.java +++ b/src/main/java/seedu/club/ui/RestrictedPollCard.java @@ -1,5 +1,5 @@ package seedu.club.ui; - +//@@author MuhdNurKamal import seedu.club.model.poll.Poll; /** diff --git a/src/main/resources/view/AnswerListCard.fxml b/src/main/resources/view/AnswerListCard.fxml index 3db1bcae6096..d30188db1d53 100644 --- a/src/main/resources/view/AnswerListCard.fxml +++ b/src/main/resources/view/AnswerListCard.fxml @@ -1,8 +1,10 @@ + + - + @@ -10,37 +12,52 @@ - + - + - + - + - + - - - + diff --git a/src/main/resources/view/AnswerListPanel.fxml b/src/main/resources/view/AnswerListPanel.fxml index 89399a28555c..f55fda9a9255 100644 --- a/src/main/resources/view/AnswerListPanel.fxml +++ b/src/main/resources/view/AnswerListPanel.fxml @@ -2,6 +2,6 @@ - - + + diff --git a/src/main/resources/view/RestrictedAnswerListCard.fxml b/src/main/resources/view/RestrictedAnswerListCard.fxml index 3106668d18cd..e362289ac911 100644 --- a/src/main/resources/view/RestrictedAnswerListCard.fxml +++ b/src/main/resources/view/RestrictedAnswerListCard.fxml @@ -1,5 +1,7 @@ + + @@ -8,26 +10,27 @@ - - + + + - + - + - + - - - + diff --git a/src/test/java/seedu/club/logic/commands/AddPollCommandTest.java b/src/test/java/seedu/club/logic/commands/AddPollCommandTest.java index a5e7fb53b622..404c238e595b 100644 --- a/src/test/java/seedu/club/logic/commands/AddPollCommandTest.java +++ b/src/test/java/seedu/club/logic/commands/AddPollCommandTest.java @@ -1,5 +1,5 @@ package seedu.club.logic.commands; - +//@@author MuhdNurKamal import static java.util.Objects.requireNonNull; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; diff --git a/src/test/java/seedu/club/logic/commands/CompressCommandTest.java b/src/test/java/seedu/club/logic/commands/CompressCommandTest.java index ba4eb82d9b43..f07a0b6f2abd 100644 --- a/src/test/java/seedu/club/logic/commands/CompressCommandTest.java +++ b/src/test/java/seedu/club/logic/commands/CompressCommandTest.java @@ -1,5 +1,5 @@ package seedu.club.logic.commands; - +//@@author MuhdNurKamal import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static seedu.club.testutil.TypicalMembers.getTypicalClubBook; diff --git a/src/test/java/seedu/club/logic/commands/DeletePollCommandTest.java b/src/test/java/seedu/club/logic/commands/DeletePollCommandTest.java index 216fc55cc76b..9bf87bdb3f2d 100644 --- a/src/test/java/seedu/club/logic/commands/DeletePollCommandTest.java +++ b/src/test/java/seedu/club/logic/commands/DeletePollCommandTest.java @@ -1,4 +1,5 @@ package seedu.club.logic.commands; +//@@author MuhdNurKamal import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; @@ -12,6 +13,7 @@ import static seedu.club.testutil.TypicalMembers.ALICE; import static seedu.club.testutil.TypicalPolls.getTypicalClubBookWithPolls; +import org.junit.Before; import org.junit.Test; import seedu.club.commons.core.Messages; @@ -30,8 +32,15 @@ */ public class DeletePollCommandTest { + private static final String ALICE_DEFAULT_PASSWORD = "password"; private Model model = new ModelManager(getTypicalClubBookWithPolls(), new UserPrefs()); + @Before + public void setUp() { + model.logsInMember(ALICE.getMatricNumber().toString(), ALICE_DEFAULT_PASSWORD); + model.updateFilteredPollList(new PollIsRelevantToMemberPredicate(ALICE)); + } + @Test public void execute_validIndexUnfilteredList_success() throws Exception { model.logsInMember(ALICE.getCredentials().getUsername().value, diff --git a/src/test/java/seedu/club/logic/commands/ShowResultsCommandTest.java b/src/test/java/seedu/club/logic/commands/ShowResultsCommandTest.java index 2eb9ce396185..2048058a0ed8 100644 --- a/src/test/java/seedu/club/logic/commands/ShowResultsCommandTest.java +++ b/src/test/java/seedu/club/logic/commands/ShowResultsCommandTest.java @@ -1,5 +1,5 @@ package seedu.club.logic.commands; - +//@@author MuhdNurKamal import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static seedu.club.testutil.TypicalMembers.getTypicalClubBook; diff --git a/src/test/java/seedu/club/logic/parser/AddPollCommandParserTest.java b/src/test/java/seedu/club/logic/parser/AddPollCommandParserTest.java index db0195f4dd1f..039e976f024d 100644 --- a/src/test/java/seedu/club/logic/parser/AddPollCommandParserTest.java +++ b/src/test/java/seedu/club/logic/parser/AddPollCommandParserTest.java @@ -1,4 +1,5 @@ package seedu.club.logic.parser; +//@@author MuhdNurKamal import static seedu.club.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.club.logic.commands.CommandTestUtil.ANSWER_DESC_FOUR; diff --git a/src/test/java/seedu/club/testutil/PollBuilder.java b/src/test/java/seedu/club/testutil/PollBuilder.java index 688232cded03..db81dd3f9354 100644 --- a/src/test/java/seedu/club/testutil/PollBuilder.java +++ b/src/test/java/seedu/club/testutil/PollBuilder.java @@ -1,4 +1,5 @@ package seedu.club.testutil; +//@@author MuhdNurKamal import java.util.ArrayList; import java.util.Arrays; diff --git a/src/test/java/seedu/club/testutil/PollUtil.java b/src/test/java/seedu/club/testutil/PollUtil.java index 09216304dfbf..73cc8b6c4d20 100644 --- a/src/test/java/seedu/club/testutil/PollUtil.java +++ b/src/test/java/seedu/club/testutil/PollUtil.java @@ -1,4 +1,5 @@ package seedu.club.testutil; +//@@author MuhdNurKamal import static seedu.club.logic.parser.CliSyntax.PREFIX_ANSWER; import static seedu.club.logic.parser.CliSyntax.PREFIX_QUESTION; diff --git a/src/test/java/seedu/club/testutil/TypicalPolls.java b/src/test/java/seedu/club/testutil/TypicalPolls.java index e8bca9683322..6b8becf2703d 100644 --- a/src/test/java/seedu/club/testutil/TypicalPolls.java +++ b/src/test/java/seedu/club/testutil/TypicalPolls.java @@ -1,4 +1,5 @@ package seedu.club.testutil; +//@@author MuhdNurKamal import static seedu.club.testutil.TypicalMembers.ALICE; diff --git a/src/test/java/systemtests/AddPollCommandSystemTest.java b/src/test/java/systemtests/AddPollCommandSystemTest.java index df58bc286d2c..d0dfcd2e4532 100644 --- a/src/test/java/systemtests/AddPollCommandSystemTest.java +++ b/src/test/java/systemtests/AddPollCommandSystemTest.java @@ -1,5 +1,5 @@ package systemtests; - +//@@author MuhdNurKamal import static seedu.club.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.club.logic.commands.CommandTestUtil.ANSWER_DESC_FINE; import static seedu.club.logic.commands.CommandTestUtil.ANSWER_DESC_FOUR;