package guitests;

import org.junit.Test;

import seedu.address.testutil.TestPerson;
//@@author A0164032U-unused
public class GroupCommandTest extends AddressBookGuiTest {

    @Test
    public void Group() {
        
        //group with only one correspond person
        assertGroupResult("group1", td.alice);
        
        //group with multiple correspond persons
        assertGroupResult("street", new TestPerson[]{td.daniel, td.george, td.carl});
        
        //group an empty group
        assertGroupResult("emptyGroup");
        
        //group after delete one person
        commandBox.runCommand("find Daniel");
        commandBox.runCommand("delete 1");
        assertGroupResult("street" , new TestPerson[]{td.george, td.carl});

    }
    
    private void assertGroupResult(String group, TestPerson... expectedHits) {
        commandBox.runCommand("group " + group);
        assertListSize(expectedHits.length);
        assertResultMessage(expectedHits.length + " tasks listed!");
        //assertTrue(personListPanel.isListMatching(expectedHits));
    }
}

@@ -202,25 +202,17 @@
 oup() %7B%0A
-        
 %0A
+
         
@@ -298,25 +298,16 @@
 alice);%0A
-        %0A
         
@@ -433,25 +433,16 @@
 carl%7D);%0A
-        %0A
         
@@ -509,17 +509,8 @@
 %22);%0A
-        %0A
     
@@ -713,20 +713,14 @@
 l%7D);
-%0A%0A    %7D
 %0A    
+%7D
 %0A   

Update GroupCommandTest.java