Browse Source

refactor

feature-pr-AirportClass
Imron 2 years ago
parent
commit
220ae0aefb
  1. 1
      src/main/java/hs/fulda/de/ci/exam/project/Airport.java
  2. 11
      src/test/java/hs/fulda/de/ci/exam/project/AirportTest.java
  3. BIN
      target/classes/hs/fulda/de/ci/exam/project/Address.class
  4. BIN
      target/classes/hs/fulda/de/ci/exam/project/Airport.class
  5. BIN
      target/classes/hs/fulda/de/ci/exam/project/Flight.class
  6. BIN
      target/classes/hs/fulda/de/ci/exam/project/FlightInstance.class
  7. BIN
      target/classes/img.png
  8. BIN
      target/test-classes/hs/fulda/de/ci/exam/project/AddressTest.class
  9. BIN
      target/test-classes/hs/fulda/de/ci/exam/project/AirportTest.class
  10. BIN
      target/test-classes/hs/fulda/de/ci/exam/project/FlightTest.class

1
src/main/java/hs/fulda/de/ci/exam/project/Airport.java

@ -1,7 +1,6 @@
package hs.fulda.de.ci.exam.project;
import java.util.HashSet;
import java.util.Set;
public class Airport {

11
src/test/java/hs/fulda/de/ci/exam/project/AirportTest.java

@ -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);
}
}

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

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

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

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

BIN
target/classes/img.png

After

Width: 750  |  Height: 813  |  Size: 259 KiB

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

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

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

Loading…
Cancel
Save