|
|
@@ -34,7 +34,7 @@ public class PaymentPresenterTest {
|
|
34
|
34
|
public void toStringByPayerName(){
|
|
35
|
35
|
Payment[] payments = new Payment[2];
|
|
36
|
36
|
Payment paypal = new Paypal(4L, "Tamara Mowry", "tamara@mowry.com");
|
|
37
|
|
- Payment check = new Check(81L, "Tia Mowry", "11432543", "134344551")
|
|
|
37
|
+ Payment check = new Check(81L, "Tia Mowry", "11432543", "134344551");
|
|
38
|
38
|
|
|
39
|
39
|
payments[0] = paypal;
|
|
40
|
40
|
payments[1] = check;
|
|
|
@@ -49,13 +49,13 @@ public class PaymentPresenterTest {
|
|
49
|
49
|
public void toStringByID(){
|
|
50
|
50
|
Payment[] payments = new Payment[2];
|
|
51
|
51
|
Payment paypal = new Paypal(120L, "Tamara Mowry", "tamara@mowry.com");
|
|
52
|
|
- Payment check = new Check(81L, "Tia Mowry", "11432543", "134344551")
|
|
|
52
|
+ Payment check = new Check(81L, "Tia Mowry", "11432543", "134344551");
|
|
53
|
53
|
|
|
54
|
54
|
payments[0] = paypal;
|
|
55
|
55
|
payments[1] = check;
|
|
56
|
56
|
|
|
57
|
57
|
PaymentPresenter presenter = new PaymentPresenter();
|
|
58
|
|
- String expected = "Paypal Tamara Mowry tamara@mowry.com\nCheck Tia Mowry ***4551\n";
|
|
|
58
|
+ String expected = "Check Tia Mowry ***4551\nPaypal Tamara Mowry tamara@mowry.com\n";
|
|
59
|
59
|
|
|
60
|
60
|
String actual = presenter.toStringById(payments);
|
|
61
|
61
|
assertEquals(expected, actual);
|