From d037f43e5f0e315e8b709e669bb84ffb91e38493 Mon Sep 17 00:00:00 2001 From: Imron Date: Mon, 31 Jan 2022 21:55:24 +0100 Subject: [PATCH] aircraft constructor model and year --- .../hs/fulda/de/ci/exam/project/AircraftTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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); + } }