Bug 244 - The passenger in the waiting queue should get on the bus in first come first serve order
Summary: The passenger in the waiting queue should get on the bus in first come first ...
Status: CONFIRMED
Alias: None
Product: Bus Monitoring System
Classification: Unclassified
Component: Bus Monitoring System (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Assignee: Celia
URL:
Depends on:
Blocks:
 
Reported: 2017-12-01 23:40 HKT by Katie
Modified: 2017-12-01 23:40 HKT (History)
0 users

See Also:


Attachments
Error Sceenshot (30.52 KB, image/png)
2017-12-01 23:40 HKT, Katie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Katie 2017-12-01 23:40:19 HKT
Created attachment 15 [details]
Error Sceenshot

Problem:
When I test the removeWaitingPassenger() in Station.class which use to check whether the passenger in the queue can get on the bus based on the bus capacity. The problem is the queuing passengers were removed in an incorrect order.
Step to Reproduce:
Write test case for removeWiatingPassenger()
Run testRemoveWaitingPassenger#()

Actual Result: Child Passenger
Expected Result: Elderly Passenger