|
@ -4,9 +4,9 @@ import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
import java.sql.Time; |
|
|
import java.sql.Time; |
|
|
|
|
|
|
|
|
|
|
|
import static hs.fulda.de.ci.exam.project.FlightStatus.Arrived; |
|
|
import static hs.fulda.de.ci.exam.project.FlightStatus.InAir; |
|
|
import static hs.fulda.de.ci.exam.project.FlightStatus.InAir; |
|
|
import static org.assertj.core.api.Assertions.*; |
|
|
import static org.assertj.core.api.Assertions.*; |
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
|
|
|
|
class FlightInstanceTest { |
|
|
class FlightInstanceTest { |
|
|
Time today = Time.valueOf("13:45:40"); |
|
|
Time today = Time.valueOf("13:45:40"); |
|
@ -27,5 +27,10 @@ class FlightInstanceTest { |
|
|
assertThat(fInstance1.getStatus()).describedAs("get status of flight isntance").isEqualTo(InAir); |
|
|
assertThat(fInstance1.getStatus()).describedAs("get status of flight isntance").isEqualTo(InAir); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void updateStatus(){ |
|
|
|
|
|
fInstance1.updateStatus(Arrived); |
|
|
|
|
|
assertThat(fInstance1.getStatus()).describedAs("get status of flight isntance").isEqualTo(Arrived); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |