Skip to content

Commit

Permalink
minor syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoebelle-pang committed Apr 3, 2024
1 parent fc655bc commit 68a09ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import seedu.address.model.Model;
import seedu.address.model.ModelManager;
import seedu.address.model.UserPrefs;
import seedu.address.model.person.*;

import seedu.address.model.person.Payment;
import seedu.address.model.person.PaymentFilterPredicate;

/**
* Contains integration tests (interaction with the Model) for {@code PaymentCommand}.
Expand All @@ -41,24 +41,24 @@ public void equals() {
PaymentFilterPredicate secondPredicate =
new PaymentFilterPredicate(new Payment("Paid"));

PaymentCommand PaymentFirstCommand = new PaymentCommand(firstPredicate);
PaymentCommand PaymentSecondCommand = new PaymentCommand(secondPredicate);
PaymentCommand paymentFirstCommand = new PaymentCommand(firstPredicate);
PaymentCommand paymentSecondCommand = new PaymentCommand(secondPredicate);

// same object -> returns true
assertTrue(PaymentFirstCommand.equals(PaymentFirstCommand));
assertTrue(paymentFirstCommand.equals(paymentFirstCommand));

// same values -> returns true
PaymentCommand findFirstCommandCopy = new PaymentCommand(firstPredicate);
assertTrue(PaymentFirstCommand.equals(findFirstCommandCopy));
assertTrue(paymentFirstCommand.equals(findFirstCommandCopy));

// different types -> returns false
assertFalse(PaymentFirstCommand.equals(1));
assertFalse(paymentFirstCommand.equals(1));

// null -> returns false
assertFalse(PaymentFirstCommand.equals(null));
assertFalse(paymentFirstCommand.equals(null));

// different person -> returns false
assertFalse(PaymentFirstCommand.equals(PaymentSecondCommand));
assertFalse(paymentFirstCommand.equals(paymentSecondCommand));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package seedu.address.model.person;

import org.junit.jupiter.api.Test;
import seedu.address.testutil.PersonBuilder;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;

import seedu.address.testutil.PersonBuilder;
public class PaymentPredicateTest {

@Test
Expand Down

0 comments on commit 68a09ec

Please sign in to comment.