Question: Question 1 . [ 3 0 points ] Below figure shows the dynamic behavior of a simplified airline booking system. The state machine consists of

Question 1.[30 points]
Below figure shows the dynamic behavior of a simplified airline booking system. The state machine consists of 5 states with events to transit from one state to another. Study this state machine and then examine the attached implementation details of the airline booking state machine (Booking.java).
Using the Junit testing framework, you are required to do the following:
Create a test case(s) for this state machine to cover all possible transitions and verify the implementation of the attached Java file (Booking.java).
[20 points]
Now, intentionally we have introduced two faults that will result in a failure of the airline state machine behavior. Using your previous tests, apply them on the faulty Java file (Booking-Fault.java) and examine if your tests caught the error. Present a picture of the failed test cases and the faults location. [10 points]
Page 1 of 2Please write the full cods and send it with photo
Question 1 . [ 3 0 points ] Below figure shows

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!