From 756e7724bebb129b95fca5290dab3ec2bd571361 Mon Sep 17 00:00:00 2001 From: "Damith C. Rajapakse" Date: Fri, 9 Sep 2016 18:54:20 +0800 Subject: [PATCH] Remove redundant code --- test/java/seedu/addressbook/logic/LogicTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/java/seedu/addressbook/logic/LogicTest.java b/test/java/seedu/addressbook/logic/LogicTest.java index 666fdc653..7efa921ca 100644 --- a/test/java/seedu/addressbook/logic/LogicTest.java +++ b/test/java/seedu/addressbook/logic/LogicTest.java @@ -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 lastShownList = new ArrayList<>(); TestDataHelper helper = new TestDataHelper(); - lastShownList.add(helper.generatePerson(1, false)); - lastShownList.add(helper.generatePerson(2, true)); + List lastShownList = helper.generatePersonList(false, true); logic.setLastShownList(lastShownList);