Browse Source

aircraft constructor model and year

feature-pr-AircraftClass
Imron 3 years ago
parent
commit
d037f43e5f
  1. 15
      src/test/java/hs/fulda/de/ci/exam/project/AircraftTest.java

15
src/test/java/hs/fulda/de/ci/exam/project/AircraftTest.java

@ -12,4 +12,19 @@ public class AircraftTest {
.describedAs("get the name of aircraft") .describedAs("get the name of aircraft")
.isEqualTo("Airbus"); .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);
}
} }
Loading…
Cancel
Save