PaypalTest.java 507B

123456789101112131415161718192021222324252627282930
  1. package com.zipcoder.payment;
  2. import org.junit.Test;
  3. import static org.junit.Assert.*;
  4. public class PaypalTest {
  5. @Test
  6. public void getID() {
  7. Paypal pay = new Paypal();
  8. //long ID we are testing
  9. //Given
  10. long ID = 1234567891;
  11. //When
  12. pay.setID(ID);
  13. //Then
  14. long actualID = pay.getID();
  15. assertEquals(ID,actualID);
  16. }
  17. @Test
  18. public void getPayerName() {
  19. }
  20. @Test
  21. public void getShortDescription() {
  22. }
  23. }