import org.junit.Test; import static org.junit.Assert.*; public class PayPalTest { Check check = new Check(); PayPal payPal = new PayPal(4L, "Tia Mowry", "tia@mowry.com"); CreditCard credit = new CreditCard(); @Test public void getPayerName() { PayPal payPal = new PayPal(4L, "Tia Mowry", "tia@mowry.com"); String expectedPayerName = "Tia Mowry"; payPal.setPayerName(expectedPayerName); String actualPayerName = payPal.getPayerName(); assertEquals(expectedPayerName, actualPayerName); } @Test public void getEmail() { PayPal payPal = new PayPal(4L, "Tia Mowry", "tia@mowry.com"); String expectedEmail = "tia@mowry.com"; payPal.setEmail(expectedEmail); String actualEmail = payPal.getEmail(); assertEquals(expectedEmail, actualEmail); } @Test public void getId() { } @Test public void getEmail1() { } @Test public void getShortDescription() { } @Test public void compareToCredit(){ int expected = 0; int actual = credit.compareTo(credit); assertEquals(expected, actual); } @Test public void compareToPayPal(){ int expected = 1; int actual = credit.compareTo(payPal); assertEquals(expected, actual); } @Test public void compareToCheck() { int expected = 1; int actual = credit.compareTo(check); assertEquals(expected, actual); } }