-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add tests to prescriptions #277
Conversation
…into add-tests-to-prescriptions
…into add-tests-to-prescriptions
Codecov Report
@@ Coverage Diff @@
## master #277 +/- ##
============================================
+ Coverage 54.02% 63.13% +9.10%
- Complexity 571 685 +114
============================================
Files 118 116 -2
Lines 2399 2555 +156
Branches 262 301 +39
============================================
+ Hits 1296 1613 +317
+ Misses 1021 831 -190
- Partials 82 111 +29
Continue to review full report at Codecov.
|
|
||
if (medicineName.isBlank()) { | ||
throw new ParseException("Medicine fields cannot be blank."); |
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.
For code quality:
- Can make this a public static variable like: MESSAGE_FAILURE
- then can re-reference this same message for the DeletePrescriptionCommandParserTest
private final AddPrescriptionCommandParser parser = new AddPrescriptionCommandParser(); | ||
|
||
@Test | ||
public void parse_allFieldsPresent_success() throws ParseException { |
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.
Name should start with method name:
parseAppointmentCommnad_allFieldsPresent_success()
Same for the rest below
LGTM after code quality changes made |
No description provided.