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