Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
damithc committed Sep 9, 2016
1 parent b046ca4 commit 756e772
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/java/seedu/addressbook/logic/LogicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,8 @@ public void execute_view_invalidIndex() throws Exception {
*/
private void assertInvalidIndexBehaviorForCommand(String commandWord) throws Exception {
String expectedMessage = Messages.MESSAGE_INVALID_PERSON_DISPLAYED_INDEX;
List<Person> lastShownList = new ArrayList<>();
TestDataHelper helper = new TestDataHelper();
lastShownList.add(helper.generatePerson(1, false));
lastShownList.add(helper.generatePerson(2, true));
List<Person> lastShownList = helper.generatePersonList(false, true);

logic.setLastShownList(lastShownList);

Expand Down

0 comments on commit 756e772

Please sign in to comment.