|
|
@ -35,4 +35,11 @@ public class NotificationTest { |
|
|
|
boolean result = reservation.notifyUser("sms", "01788370107", "Reservation is successfull"); |
|
|
|
assertTrue(result); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void smsIsSentWhenNumberIsValid(){ |
|
|
|
SmsNotification sms = new SmsNotification("01788370107", "Reservation confirmed"); |
|
|
|
boolean result = sms.sendNotification(); |
|
|
|
assertTrue(result); |
|
|
|
} |
|
|
|
} |