|
|
@ -1,10 +1,16 @@ |
|
|
|
package hs.fulda.de.ci.exam.project; |
|
|
|
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
import static org.assertj.core.api.Assertions.assertThat; |
|
|
|
import org.junit.jupiter.api.extension.ExtendWith; |
|
|
|
import org.mockito.Mock; |
|
|
|
import org.mockito.junit.jupiter.MockitoExtension; |
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.*; |
|
|
|
|
|
|
|
@ExtendWith(MockitoExtension.class) |
|
|
|
public class AirportClassTest { |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
void test_getName(){ |
|
|
|
Airport airport = new Airport(); |
|
|
@ -19,4 +25,16 @@ public class AirportClassTest { |
|
|
|
assertThat(airport.getCode()).describedAs("get airport code").isEqualTo("PC994"); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void test_getAddress(){ |
|
|
|
Airport airport = new Airport(); |
|
|
|
Address address = new Address("Mittelstr", "Fulda", "Hessen", "36037", "Germany"); |
|
|
|
airport.address = address; |
|
|
|
assertThat(airport.getAddress()).describedAs("get address of airport").isEqualTo(address); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |