withaspirit / Elevator-Simulation

Elevator System Simulation project
1 stars 1 forks source link

Fixing ArrivalSensor testing in FloorSubsystem: #208

Open Bnortron opened 2 years ago

Bnortron commented 2 years ago

Recent Changes:

All Tests Pass:

Signed-off-by: Brady Norton bnort.11@gmail.com

withaspirit commented 2 years ago

Will you be doing more tests in the test classes?

withaspirit commented 2 years ago

I'm not sure if it was doing that before though

Bnortron commented 2 years ago

Do you mean the actual ApproachEvent from the elevator that's being sent when the system is running?

withaspirit commented 2 years ago

Do you mean the actual ApproachEvent from the elevator that's being sent when the system is running?

Yeah. Only reason for failure I can think of immediately is an equality check fail between a ServiceRequest and an ApproachEvent. Their time values, direction, elevatorNumber, and floorNumber should be the same.

withaspirit commented 2 years ago

The addition of the ArrivalSensorTest and the FloorTest and FloorSubsystem test should be noted in the README, you can do that in #205