-
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
Add view command #90
Add view command #90
Conversation
… works as expected
Codecov Report
@@ Coverage Diff @@
## master #90 +/- ##
=========================================
Coverage ? 69.62%
Complexity ? 405
=========================================
Files ? 73
Lines ? 1297
Branches ? 132
=========================================
Hits ? 903
Misses ? 354
Partials ? 40
Continue to review full report at Codecov.
|
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.
Looks good except for some small stuffs! Fix those and it'll be good to merge 👍
@Test | ||
public void equals() { | ||
ViewCommand deleteFirstCommand = new ViewCommand(INDEX_FIRST_BOOK); | ||
ViewCommand deleteSecondCommand = new ViewCommand(INDEX_SECOND_BOOK); |
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.
I think there's a typo here, should be viewFirstCommand
and viewSecondCommand
right?
|
||
import java.util.function.Predicate; | ||
|
||
public class IsSpecifiedBookPredicate implements Predicate<Book> { |
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.
Perhaps you could include a super simple javadoc for this class?
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.
Besides Leyang's comments, LGTM!
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!
Allow user to view only the book specified by index. No additional information is shown compared to list command for now, will see how that can be improved
closes #49