| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- 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);
- }
-
- }
|