|
|
@ -1,13 +1,9 @@ |
|
|
|
package hs.fulda.de.ci.exam.project; |
|
|
|
|
|
|
|
import org.junit.jupiter.api.BeforeEach; |
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
import org.junit.jupiter.api.extension.ExtendWith; |
|
|
|
import org.mockito.junit.jupiter.MockitoExtension; |
|
|
|
|
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.LinkedList; |
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.*; |
|
|
|
|
|
|
|
@ExtendWith(MockitoExtension.class) |
|
|
@ -44,9 +40,7 @@ public class AirportTest { |
|
|
|
void test_getFlights() { |
|
|
|
HashSet<Flight> flist = new HashSet<>(); |
|
|
|
flist.add(flight1); |
|
|
|
|
|
|
|
airport_fr.flights.add(flight1); |
|
|
|
|
|
|
|
assertThat(airport_fr.getFlights()).describedAs("get all flights of the airport").isEqualTo(flist); |
|
|
|
} |
|
|
|
|
|
|
@ -55,13 +49,8 @@ public class AirportTest { |
|
|
|
HashSet<Flight> flist = new HashSet<>(); |
|
|
|
flist.add(flight1); |
|
|
|
flist.add(flight2); |
|
|
|
|
|
|
|
airport_fr.flights.add(flight1); |
|
|
|
airport_fr.flights.add(flight1); |
|
|
|
airport_fr.flights.add(flight2); |
|
|
|
|
|
|
|
assertThat(airport_fr.getFlights()).describedAs("get all flights of the airport").isEqualTo(flist); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |