diff --git a/src/test/java/hs/fulda/de/ci/exam/project/AircraftTest.java b/src/test/java/hs/fulda/de/ci/exam/project/AircraftTest.java index 1ee2bb0..88be8c9 100644 --- a/src/test/java/hs/fulda/de/ci/exam/project/AircraftTest.java +++ b/src/test/java/hs/fulda/de/ci/exam/project/AircraftTest.java @@ -12,4 +12,19 @@ public class AircraftTest { .describedAs("get the name of aircraft") .isEqualTo("Airbus"); } + + @Test + public void testClassAircraftConstructorModel(){ + Aircraft testAircraft = new Aircraft("Airbus", "Neo", 1990); + assertThat(testAircraft.getModel()) + .describedAs("get the model of aircraft") + .isEqualTo("Neo"); + } + @Test + public void testClassAircraftConstructorManifacturingYear(){ + Aircraft testAircraft = new Aircraft("Airbus", "Neo", 1990); + assertThat(testAircraft.getManYear()) + .describedAs("get the manifacturing year of aircraft") + .isEqualTo(1990); + } }