Skip to content
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

Consider to use AssertJ instead of Hamcrest lib #80

Closed
mrniko opened this issue Mar 9, 2017 · 6 comments
Closed

Consider to use AssertJ instead of Hamcrest lib #80

mrniko opened this issue Mar 9, 2017 · 6 comments

Comments

@mrniko
Copy link

mrniko commented Mar 9, 2017

https://joel-costigliola.github.io/assertj/

@twillouer
Copy link

👍

@szpak
Copy link
Contributor

szpak commented Mar 9, 2017

@mrniko For internal tests in Awaitility? Or you would like to be able to use AssertJ assertions in your code (something that I implemented in Awaitility 1.6.0 almost 3 years ago)?

@johanhaleby
Copy link
Collaborator

Yes I also wonder what you mean since it has been supported for quite a while (see docs).

One thing that we could consider would be to make the dependency to Hamcrest optional, but it'll require some non-trivial work I think.

@longtimeago
Copy link

longtimeago commented Mar 22, 2018

One thing that we could consider would be to make the dependency to Hamcrest optional

@johanhaleby This would be very-very nice! Many libs depend on hamcrest in a very nasty way. Some of them depends on very old version (1.1) which is not fully compatible with 1.3.
We would like to use Awaitility in production code but hamcrest compile dependency stops us :(
Thus, only test code so far ...

@johanhaleby
Copy link
Collaborator

Yes Hamcrest is tightly coupled to Awaitility. With a bit of work I think it ought to be possible to remove it from core and perhaps introduce a new library called awaitility-hamcrest. But it would not be backward compatible.

@longtimeago
Copy link

But it would not be backward compatible.

@johanhaleby Sure, this is expected cost and totally acceptable imo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants