-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion, Logging and Exception #93
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, LGTM
} catch (Exception e) { | ||
logger.log(Level.WARNING, "Error processing deletion"); | ||
System.out.println("Error in deleting files, specific error: " + e.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good use of catch statement to catch an exception processing the delete command and print out the specific error message
assert nric != null: | ||
"Please provide a valid NRIC"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good use of assertion to assert nric != null when user wants to delete a specific patient record
Add Assertion, Logging and Exception.
Modify the delete function.
Add JUnit test for multiple outputs