|
|
@ -3,7 +3,7 @@ package hs.fulda.de.ci.exam.project; |
|
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
import static hs.fulda.de.ci.exam.project.ReservationStatus.Confirmed; |
|
|
|
import static org.junit.jupiter.api.Assertions.assertTrue; |
|
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
public class NotificationTest { |
|
|
|
@Test |
|
|
@ -13,6 +13,13 @@ public class NotificationTest { |
|
|
|
assertTrue(result); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void emailValidiationShouldReturnFalseForInValidEmail(){ |
|
|
|
EmailNotification email = new EmailNotification("testgmail.com", "HelloWorld"); |
|
|
|
boolean result = email.sendNotification(); |
|
|
|
assertFalse(result); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void emailNotificationShouldBeSentWhenFlighReservationCompleted() { |
|
|
|
FlightReservation reservation = new FlightReservation(); |
|
|
|