Skip to content

[W5][T09-3] Yow Ren Jie - #46

Open
arhjaye wants to merge 3 commits into
nusCS2113-AY1819S2:masterfrom
arhjaye:master
Open

[W5][T09-3] Yow Ren Jie#46
arhjaye wants to merge 3 commits into
nusCS2113-AY1819S2:masterfrom
arhjaye:master

Conversation

@arhjaye

@arhjaye arhjaye commented Feb 11, 2019

Copy link
Copy Markdown

No description provided.

private static final Set<String> EMPTY_STRING_SET = Collections.emptySet();

@Test
@org.junit.jupiter.api.Test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this change do?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gautamrajulu how do you declare that a method is a test method?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ren jie why do you need a new junit framework for this enhancement?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arhjaye why do you need another junit test framework for your enhancement?

@stephlewyh stephlewyh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ren Jie, good job in doing the following:
(1) Updated user doc
(2) Updated tests

However, do remember to add header comments when you add new enhancements.

You may close this PR now.

public static final String MESSAGE_USAGE = COMMAND_WORD + ": prints goodbye message.\n"
+ "Example: " + COMMAND_WORD;

@Override

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing header comment. All non-trivial methods (in this case your enhancement functionality) should have java doc format header comments.

import seedu.addressbook.commands.ListCommand;
import seedu.addressbook.commands.ViewAllCommand;
import seedu.addressbook.commands.ViewCommand;
import seedu.addressbook.commands.*;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imported classes should always be listed explicitly. E.g. java.util.List and not java.util.*, which does not follow NUS Java coding standards.


switch (commandWord) {

case GoodbyeCommand.COMMAND_WORD:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary indentation here.

+ "\n" + ViewAllCommand.MESSAGE_USAGE
+ "\n" + HelpCommand.MESSAGE_USAGE
+ "\n" + ExitCommand.MESSAGE_USAGE
+ "\n" + GoodbyeCommand.MESSAGE_USAGE

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary indentation. Reduces code readability.

private static final Set<String> EMPTY_STRING_SET = Collections.emptySet();

@Test
@org.junit.jupiter.api.Test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gautamrajulu how do you declare that a method is a test method?


@Test
@org.junit.jupiter.api.Test
public void addCommand_invalidName_throwsException() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing header comment. All non-trivial methods should have java doc format header comments.

private static final Set<String> EMPTY_STRING_SET = Collections.emptySet();

@Test
@org.junit.jupiter.api.Test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ren jie why do you need a new junit framework for this enhancement?

private static final Set<String> EMPTY_STRING_SET = Collections.emptySet();

@Test
@org.junit.jupiter.api.Test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arhjaye why do you need another junit test framework for your enhancement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants