-
Notifications
You must be signed in to change notification settings - Fork 3
refactor test in the common package #13
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
base: master
Are you sure you want to change the base?
refactor test in the common package #13
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.
Thanks for the PR.
The only thing that I think I would want to ask to change is to keep using assertj for assertions. From my opinion, the assertj api is more clean in terms of what is expected, and what is actual argument, and is more clear in assertion failure messages.
Also, do you mind taking a look into the other test classes as well?
|
Closes #11 |
Thanks for the review. This was the first try to get your opinion on the proposed changes. I am ready to complete all the test classes of course. I returned |
Great! Thanks. Please, ping me here when the remaining tests will be ready. |
| @ParameterizedTest | ||
| @EnumSource(value = EndOfLine.class, names = "CARRIAGE_RERUN_LINE_FEED", mode = Mode.EXCLUDE) | ||
| void isSingleCharacter_true(EndOfLine source) { | ||
| void isSingleCharacter_СrLfEof_True(EndOfLine source) { |
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.
It is everything except the CRLF, which is not a single character, so the name of the test is misleading :)
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.
In general, everything is alright, The only thing I would suggest is to separate the pom.xml changes from the refactoring in tests into two separate commits
|
Hey @ignatmaloukhov! Are you on track? Shall I take over if you're limited on time? |
Refactored tests in the common package