Skip to content

Commit

Permalink
Change method names to CamelCase to meet Codacy requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
sushinoya committed Nov 12, 2017
1 parent 2954a11 commit 58fa4bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class SwitchTabCommandTest {
public final EventsCollectorRule eventsCollectorRule = new EventsCollectorRule();

@Test
public void execute_switchtab_success() {
public void executeSwitchTabSuccess() {
try {
CommandResult result = new SwitchTabCommand(1).execute();
assertEquals(String.format(MESSAGE_SWITCH_TAB_SUCCESS, "Residents"), result.feedbackToUser);
Expand All @@ -30,7 +30,7 @@ public void execute_switchtab_success() {
}

@Test
public void execute_switchtab_failure() {
public void executeSwitchTabFailure() {
try {
CommandResult result = new SwitchTabCommand(5).execute();
fail("This should never be called");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ public class SwitchTabCommandParserTest {
private SwitchTabCommandParser parser = new SwitchTabCommandParser();

@Test
public void parse_validArgs_returnsSwapCommand() {
public void parseValidArgsReturnsSwitchTabCommand() {
assertParseSuccess(parser, " 1", new SwitchTabCommand(1));
}

@Test
public void parse_invalidArgs_throwsParseException() {
public void parseInvalidArgsThrowsParseException() {
assertParseFailure(parser, " a", String.format(MESSAGE_INVALID_COMMAND_FORMAT, SwitchTabCommand.MESSAGE_USAGE));
}

@Test
public void parse_invalidNumArgs_throwsParseException() {
public void parseInvalidNumArgsThrowsParseException() {
assertParseFailure(parser, " 3", String.format(MESSAGE_INVALID_COMMAND_FORMAT,
SwitchTabCommand.MESSAGE_USAGE));
}
Expand Down

0 comments on commit 58fa4bf

Please sign in to comment.