-
Notifications
You must be signed in to change notification settings - Fork 76
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
Comparison API in assertj module #129
Conversation
similar, identical or different
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.
Great work, many thanks!
I'm not really familiar with AssertJ's philosophy but I would have expected areNotSimilar
in addition to areDifferent
.
Some of the new test classes lack the license header and we may want to look into test coverage later (I'm not sure Coveralls caught your follow up commit).
In AssertJ there are examples of pair of methods that do same things, but have different names I can also add I notice that Coveralls have problem with try-catch blocks that look like below and it is main reason of decreasing coverage. try {
do()
} catch(Exception e) {
throwMessage()
}
...
void throwMessage() {
thorw new AssertError()
} I have to admit that I didn't write tests for all CompareAssert's methods :) Of course missing license headers will be added. |
Sorry, of course As for coverage I really haven't checked where coveralls currently thinks we lack tests, if it is a false positive, then we'll simply have to accept it. |
- areNotIdentical - areNotSimilar in place of areDifferent
still looks good to me :-) Please merge the PR yourself when you consider it ready as I'm not as available as usual right now. |
@krystiankaluzny do you think we can close #117 now or is there anything left you'd like to add? |
The only thing I'm going to do is write user guide page. If you don't mind I would leave the issue open until then. |
Sure, fine with me. I hope to carve out some time this week and write a few additional tests - because it is my way of understanding APIs and not (only) to improve some silly stats. |
PR provide CompareAssert that is equivalent for CompareMatcher
From now xmlunit-assert module covers same features as xmlunit-matchers.
And for now I don't have a plan for further development.