Browse Source

get instance not empty list

feature-pr-PersonClass
Imron 3 years ago
parent
commit
1d4edfbe7e
  1. 9
      src/test/java/hs/fulda/de/ci/exam/project/FlightTest.java
  2. BIN
      target/classes/hs/fulda/de/ci/exam/project/Flight.class
  3. BIN
      target/test-classes/hs/fulda/de/ci/exam/project/FlightTest.class

9
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); assertThat(flight1.getInstances()).describedAs("get flight instances of the flight ").isEqualTo(empty_list);
} }
@Test
void getInstances_not_empty_list_should_be_equal() {
HashSet<FlightInstance> list = new HashSet<>();
list.add(fInstance1);
flight1.flightInstances.add(fInstance1);
assertThat(flight1.getInstances()).describedAs("get flight instances of the flight ").isEqualTo(list);
}
@Test @Test
void cancel() { void cancel() {
} }

BIN
target/classes/hs/fulda/de/ci/exam/project/Flight.class

BIN
target/test-classes/hs/fulda/de/ci/exam/project/FlightTest.class

Loading…
Cancel
Save