diff --git a/src/test/java/hs/fulda/de/ci/exam/project/FlightTest.java b/src/test/java/hs/fulda/de/ci/exam/project/FlightTest.java index cb4488e..a111185 100644 --- a/src/test/java/hs/fulda/de/ci/exam/project/FlightTest.java +++ b/src/test/java/hs/fulda/de/ci/exam/project/FlightTest.java @@ -27,6 +27,15 @@ class FlightTest { assertThat(flight1.getInstances()).describedAs("get flight instances of the flight ").isEqualTo(empty_list); } + @Test + void getInstances_not_empty_list_should_be_equal() { + HashSet list = new HashSet<>(); + list.add(fInstance1); + + flight1.flightInstances.add(fInstance1); + assertThat(flight1.getInstances()).describedAs("get flight instances of the flight ").isEqualTo(list); + } + @Test void cancel() { } diff --git a/target/classes/hs/fulda/de/ci/exam/project/Flight.class b/target/classes/hs/fulda/de/ci/exam/project/Flight.class index 422156b..4005ae8 100644 Binary files a/target/classes/hs/fulda/de/ci/exam/project/Flight.class and b/target/classes/hs/fulda/de/ci/exam/project/Flight.class differ diff --git a/target/test-classes/hs/fulda/de/ci/exam/project/FlightTest.class b/target/test-classes/hs/fulda/de/ci/exam/project/FlightTest.class index 21398fc..acefabb 100644 Binary files a/target/test-classes/hs/fulda/de/ci/exam/project/FlightTest.class and b/target/test-classes/hs/fulda/de/ci/exam/project/FlightTest.class differ