From 1d4edfbe7e1fd2efe978d827c6b7cbc53e9e920b Mon Sep 17 00:00:00 2001 From: Imron Date: Wed, 26 Jan 2022 13:19:24 +0100 Subject: [PATCH] get instance not empty list --- .../fulda/de/ci/exam/project/FlightTest.java | 9 +++++++++ .../hs/fulda/de/ci/exam/project/Flight.class | Bin 1544 -> 1575 bytes .../fulda/de/ci/exam/project/FlightTest.class | Bin 966 -> 3211 bytes 3 files changed, 9 insertions(+) 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 422156b5bff07245f47d0571f3ffdc128d5aec4b..4005ae82e22a431d214270c85fa96fa5a18b23a2 100644 GIT binary patch literal 1575 zcmb7D-A)rh6#izrZE0C7KP`$1ic)Ep!uo@H0U;q6Vw0*DH6(iFu)DNFmMz)t65qlX z@j??D5>0#nAIf-UmP&0m4PNxj?CE?z=ggU3zrX(k@Ep(b$fK6UdL9~TIpnY*gC)a5 z86L^-IEyD)Y%&-}o@lkh*U`zL8!*f^j`3_#b z8h>#)QLA+7YBQB5;BJ4cijrk?vdACJR=(MZ0^8je(%59|YC}%8fq6V7|7ywy2hG4N z<_t{2FffH{1`0AvV}{}0ICn8O!}R65d2=Y=f@;+Pmg%wO>0zenN8}VC`PE7iY9$r5 zk^?XlX|JJ#3E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