| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package com.zipcoder.payment;
-
- import org.junit.Test;
-
- import static org.junit.Assert.*;
-
- public class PayPalTest {
-
- @Test
- public void getSetId() {
- long id = 12345;
- long expectedId = id;
- PayPal payPal = new PayPal();
- payPal.setId(id);
- long actualId = payPal.getId();
- assertEquals(expectedId, actualId);
- }
-
- @Test
- public void getSetPayerName() {
- String payerName = "Tia Mowry";
- String expectedPayerName = payerName;
- PayPal payPal = new PayPal();
- payPal.setPayerName(payerName);
- String actualPayerName = payPal.getPayerName();
- assertEquals(expectedPayerName, actualPayerName);
- }
-
- @Test
- public void getSetEmail(){
- String email = "tia@mowry.com";
- String expectedEmail = email;
- PayPal payPal = new PayPal();
- payPal.setEmail(email);
- String actualEmail = payPal.getEmail();
- assertEquals(expectedEmail, actualEmail);
- }
-
- @Test
- public void getShortDescription() {
- }
- }
|