Skip to content

Commit fa61628

Browse files
committed
Fix style issues
1 parent 643d39c commit fa61628

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/main/java/seedu/address/logic/parser/AddressBookParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
import seedu.address.logic.commands.AddCommand;
1010
import seedu.address.logic.commands.ClearCommand;
1111
import seedu.address.logic.commands.Command;
12-
import seedu.address.logic.commands.UntagCommand;
1312
import seedu.address.logic.commands.ExitCommand;
1413
import seedu.address.logic.commands.FindCommand;
1514
import seedu.address.logic.commands.HelpCommand;
1615
import seedu.address.logic.commands.ListCommand;
16+
import seedu.address.logic.commands.UntagCommand;
1717
import seedu.address.logic.parser.exceptions.ParseException;
1818

1919
/**

src/test/java/seedu/address/logic/commands/UntagCommandTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,38 +29,38 @@ public class UntagCommandTest {
2929
@Test
3030
public void execute_validIndexUnfilteredList_success() {
3131
Tag tagToDelete = model.getFilteredTagList().get(INDEX_FIRST_TAG.getZeroBased());
32-
UntagCommand UntagCommand = new UntagCommand(INDEX_FIRST_TAG);
32+
UntagCommand untagCommand = new UntagCommand(INDEX_FIRST_TAG);
3333

3434
String expectedMessage = String.format(UntagCommand.MESSAGE_UNTAG_TAG_SUCCESS, tagToDelete);
3535

3636
ModelManager expectedModel = new ModelManager(model.getAddressBook(), new UserPrefs());
3737
expectedModel.deleteTag(tagToDelete);
3838

39-
assertCommandSuccess(UntagCommand, model, expectedMessage, expectedModel);
39+
assertCommandSuccess(untagCommand, model, expectedMessage, expectedModel);
4040
}
4141

4242
@Test
4343
public void execute_invalidIndexUnfilteredList_throwsCommandException() {
4444
Index outOfBoundIndex = Index.fromOneBased(model.getFilteredTagList().size() + 1);
45-
UntagCommand UntagCommand = new UntagCommand(outOfBoundIndex);
45+
UntagCommand untagCommand = new UntagCommand(outOfBoundIndex);
4646

47-
assertCommandFailure(UntagCommand, model, Messages.MESSAGE_INVALID_TAG_DISPLAYED_INDEX);
47+
assertCommandFailure(untagCommand, model, Messages.MESSAGE_INVALID_TAG_DISPLAYED_INDEX);
4848
}
4949

5050
@Test
5151
public void execute_validIndexFilteredList_success() {
5252
showTagAtIndex(model, INDEX_FIRST_TAG);
5353

5454
Tag tagToDelete = model.getFilteredTagList().get(INDEX_FIRST_TAG.getZeroBased());
55-
UntagCommand UntagCommand = new UntagCommand(INDEX_FIRST_TAG);
55+
UntagCommand untagCommand = new UntagCommand(INDEX_FIRST_TAG);
5656

57-
String expectedMessage = String.format(UntagCommand.MESSAGE_UNTAG_TAG_SUCCESS, tagToDelete);
57+
String expectedMessage = String.format(untagCommand.MESSAGE_UNTAG_TAG_SUCCESS, tagToDelete);
5858

5959
Model expectedModel = new ModelManager(model.getAddressBook(), new UserPrefs());
6060
expectedModel.deleteTag(tagToDelete);
6161
showNoTag(expectedModel);
6262

63-
assertCommandSuccess(UntagCommand, model, expectedMessage, expectedModel);
63+
assertCommandSuccess(untagCommand, model, expectedMessage, expectedModel);
6464
}
6565

6666
@Test
@@ -71,9 +71,9 @@ public void execute_invalidIndexFilteredList_throwsCommandException() {
7171
// ensures that outOfBoundIndex is still in bounds of address book list
7272
assertTrue(outOfBoundIndex.getZeroBased() < model.getAddressBook().getTagList().size());
7373

74-
UntagCommand UntagCommand = new UntagCommand(outOfBoundIndex);
74+
UntagCommand untagCommand = new UntagCommand(outOfBoundIndex);
7575

76-
assertCommandFailure(UntagCommand, model, Messages.MESSAGE_INVALID_TAG_DISPLAYED_INDEX);
76+
assertCommandFailure(untagCommand, model, Messages.MESSAGE_INVALID_TAG_DISPLAYED_INDEX);
7777
}
7878

7979
@Test

src/test/java/seedu/address/logic/parser/AddressBookParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
import seedu.address.logic.commands.AddCommand;
1717
import seedu.address.logic.commands.ClearCommand;
18-
import seedu.address.logic.commands.UntagCommand;
1918
import seedu.address.logic.commands.ExitCommand;
2019
import seedu.address.logic.commands.FindCommand;
2120
import seedu.address.logic.commands.HelpCommand;
2221
import seedu.address.logic.commands.ListCommand;
22+
import seedu.address.logic.commands.UntagCommand;
2323
import seedu.address.logic.parser.exceptions.ParseException;
2424
import seedu.address.model.tag.Tag;
2525
import seedu.address.model.tag.TagNameContainsKeywordsPredicate;

0 commit comments

Comments
 (0)