Bug 719 - after I run the testQueryAllPass2() function in FlightTest class, I found the output is wrong.
Summary: after I run the testQueryAllPass2() function in FlightTest class, I found the...
Status: RESOLVED FIXED
Alias: None
Product: Group 05(2022)
Classification: Unclassified
Component: normal class section (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Assignee: yiweizhao4
URL:
Depends on:
Blocks:
 
Reported: 2022-11-20 13:54 HKT by yiweizhao4
Modified: 2022-11-20 14:10 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yiweizhao4 2022-11-20 13:54:46 HKT
summary:
after I run the testQueryAllPass2() function in FlightTest class, I found the output is wrong.

Steps to Reproduce:
1. inFlightTest.java, run the test case testQueryAllPass2()
2. we can see the result of flight.getFlightIndex(). 

Expected output:
The return of FlightIndex() should be 1.

Actual output:
the program returns the Fid instead of FlightIndex.
Comment 1 yiweizhao4 2022-11-20 14:10:09 HKT
solution:
Correct the getFlightIndex() in Flight.java so that it can return the right result 
-- FlightIndex.