|
|
@ -15,9 +15,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals; |
|
|
|
public class ItineraryTest { |
|
|
|
|
|
|
|
final Address address1 = new Address("Fuldaer str", "Fulda", "Hessen", "36037", "Germany"); |
|
|
|
final Airport airport_fr = new Airport("Fraport", address1, "1234"); |
|
|
|
final Airport airport_be = new Airport("Berlin", address1, "5678"); |
|
|
|
|
|
|
|
@InjectMocks |
|
|
|
final Customer person1 = new Customer("Max Mustermann", address1, "max.mustermann@gmail.com", "015147890206"); |
|
|
|
final Itinerary item1 = new Itinerary(airport_fr, airport_be, new Date()); |
|
|
|
final Itinerary item2 = new Itinerary(airport_be, airport_fr, new Date()); |
|
|
|
|
|
|
|
@Mock |
|
|
|
private ItineraryRepository itineraryRepo; |
|
|
@ -26,10 +30,6 @@ public class ItineraryTest { |
|
|
|
public void test_makePayment() { |
|
|
|
ArrayList<Itinerary> itineraries = new ArrayList<>(); |
|
|
|
|
|
|
|
Airport airport_fr = new Airport("Fraport", address1, "1234"); |
|
|
|
Airport airport_be = new Airport("Berlin", address1, "5678"); |
|
|
|
Itinerary item1 = new Itinerary(airport_fr, airport_be, new Date()); |
|
|
|
Itinerary item2 = new Itinerary(airport_be, airport_fr, new Date()); |
|
|
|
itineraries.add(item1); |
|
|
|
itineraries.add(item2); |
|
|
|
|
|
|
|