|
|
@ -43,6 +43,15 @@ public class PaymentTest { |
|
|
|
assertEquals(Failed, bank_payment.status); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void cashPaymentShouldBePossible(){ |
|
|
|
CashTransaction cash_payment = new CashTransaction(11, "139€", Unpaid); |
|
|
|
FlightReservation reservation = new FlightReservation(); |
|
|
|
reservation.makePayment(cash_payment); |
|
|
|
assertEquals(Confirmed, reservation.getStatus()); |
|
|
|
assertEquals(Completed, cash_payment.status); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |