|
|
@ -9,6 +9,14 @@ public class AirportClassTest { |
|
|
|
void test_getName(){ |
|
|
|
Airport airport = new Airport(); |
|
|
|
airport.name = "fraport"; |
|
|
|
assertThat(airport.getName()).describedAs("get list of Flights").isEqualTo("fraport"); |
|
|
|
assertThat(airport.getName()).describedAs("get airport name").isEqualTo("fraport"); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void test_getCode(){ |
|
|
|
Airport airport = new Airport(); |
|
|
|
airport.code = "PC994"; |
|
|
|
assertThat(airport.getCode()).describedAs("get airport code").isEqualTo("PC994"); |
|
|
|
} |
|
|
|
|
|
|
|
} |