Skip to content

Commit

Permalink
Fix some styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yooplo committed Oct 10, 2024
1 parent 159e231 commit 3124bd9
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.Messages.MESSAGE_PERSONS_LISTED_OVERVIEW;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import seedu.address.model.person.EmailContainsKeywordsPredicate;
import static seedu.address.testutil.TypicalPersons.CARL;
import static seedu.address.testutil.TypicalPersons.ELLE;
import static seedu.address.testutil.TypicalPersons.FIONA;
import static seedu.address.testutil.TypicalPersons.INA;
import static seedu.address.testutil.TypicalPersons.REG;
import static seedu.address.testutil.TypicalPersons.getTypicalAddressBook;
Expand All @@ -21,15 +19,14 @@
import seedu.address.model.Model;
import seedu.address.model.ModelManager;
import seedu.address.model.UserPrefs;
import seedu.address.model.person.ContactContainsKeywordsPredicate;
import seedu.address.model.person.NameContainsKeywordsPredicate;

/**
* Contains integration tests (interaction with the Model) for {@code FindByContactCommand}.
*/
public class FindByEmailCommandTest {
private Model model = new ModelManager(getTypicalAddressBook(), new UserPrefs());
private Model expectedModel = new ModelManager(getTypicalAddressBook(), new UserPrefs());
final private Model model = new ModelManager(getTypicalAddressBook(), new UserPrefs());
final private Model expectedModel = new ModelManager(getTypicalAddressBook(), new UserPrefs());

@Test
public void equals() {
Expand All @@ -42,20 +39,20 @@ public void equals() {
FindByEmailCommand findSecondCommand = new FindByEmailCommand(secondPredicate);

// same object -> returns true
assertTrue(findFirstCommand.equals(findFirstCommand));
assertEquals(findFirstCommand, findFirstCommand);

// same values -> returns true
FindByEmailCommand findFirstCommandCopy = new FindByEmailCommand(firstPredicate);
assertTrue(findFirstCommand.equals(findFirstCommandCopy));
assertEquals(findFirstCommand, findFirstCommandCopy);

// different types -> returns false
assertFalse(findFirstCommand.equals(1));
assertNotEquals(1, findFirstCommand);

// null -> returns false
assertFalse(findFirstCommand.equals(null));
assertNotEquals(null, findFirstCommand);

// different person -> returns false
assertFalse(findFirstCommand.equals(findSecondCommand));
assertNotEquals(findFirstCommand, findSecondCommand);
}

@Test
Expand Down Expand Up @@ -92,4 +89,5 @@ public void toStringMethod() {
private EmailContainsKeywordsPredicate preparePredicate(String userInput) {
return new EmailContainsKeywordsPredicate(Arrays.asList(userInput.split("\\s+")));
}

}

0 comments on commit 3124bd9

Please sign in to comment.