-
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
added test cases for other utility classes #225
added test cases for other utility classes #225
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #225 +/- ##
============================================
+ Coverage 50.02% 50.46% +0.44%
- Complexity 526 531 +5
============================================
Files 109 109
Lines 2483 2483
Branches 266 266
============================================
+ Hits 1242 1253 +11
+ Misses 1126 1115 -11
Partials 115 115
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@Test | ||
public void parseCategoryWithSummary_validInput_success() throws ParseException { | ||
// leading and trailing whitespace | ||
assertEquals(new UserDefinedCategory("category", "abc"), ParserUtil.parseCategory(" category ", "abc")); | ||
// miscellaneous category | ||
assertEquals(new MiscellaneousCategory(), ParserUtil.parseCategory("miscellaneous")); | ||
UserDefinedCategory category = ParserUtil.parseCategory("food", "for dining"); | ||
assertEquals("food", category.getCategoryName()); | ||
assertEquals("for dining", category.getSummary()); | ||
} |
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.
ggwp
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.
LGTM
Closes #159