Bug 276 - No "invalid input" message in facility searching service input interface
Summary: No "invalid input" message in facility searching service input interface
Status: RESOLVED FIXED
Alias: None
Product: Group 9: Route Planning
Classification: Unclassified
Component: Interface (show other bugs)
Version: 1.0
Hardware: PC Mac OS
: --- major
Assignee: zhanjiang2-c
URL:
Depends on:
Blocks:
 
Reported: 2018-12-08 02:15 HKT by CherineLee
Modified: 2018-12-09 13:32 HKT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CherineLee 2018-12-08 02:15:13 HKT
Step to reproduce:
1. Run the program. In the "Route Planning System" menu, input 2 to choose "Get facility info". Then in the "Get facility info" menu, input 1 to choose "Search a facility".
2. For "Please enter station name:", input Sha tin. Note that Sha tin is not a valid station name.

Expected output: an error message of "invalid output".
Actual output: no error message at all.

I have added a test case for this. Please add the exception handler and rerun the test.
Comment 1 zhanjiang2-c 2018-12-08 17:37:48 HKT
Fixed. Now when the Station searched by the input is null, a new exception will be created and the Invalid Input message will be printed.