Browse Source

Fixed a test

Trinh Tong 7 years ago
parent
commit
21ad59da13

+ 0
- 2
src/main/java/com/zipcoder/payment/PaymentPresenter.java View File

@@ -47,10 +47,8 @@ public class PaymentPresenter {
47 47
 
48 48
         ArrayList<Payment> sortedPayment;
49 49
         if (payments.length > 0) {
50
-
51 50
             sortedPayment = new ArrayList<>(Arrays.asList(payments));
52 51
             Collections.sort(sortedPayment, Comparator.comparing(Payment::getPayerName));
53
-
54 52
         } else {
55 53
             return s;
56 54
         }

+ 1
- 1
src/test/java/com/zipcoder/payment/CheckTest.java View File

@@ -50,7 +50,7 @@ public class CheckTest {
50 50
 
51 51
     @Test
52 52
     public void testShortDesc() {
53
-        String expectedDesc = "Check Biggie ****4567";
53
+        String expectedDesc = "Check Biggie ***4567";
54 54
         Assert.assertEquals(expectedDesc, testCheck.getShortDescription());
55 55
     }
56 56