I am using Hamcrest in a gradle/JVM project via the org.hamcrest:hamcrest:2.2 artifact which is what the Hamcrest website recommends. When I go to static import a matcher, e.g. is or notNullValue, I am presented with 3 options of where to import it from. In the case of notNullValue these are:
org.hamcrest.CoreMatchersorg.hamcrest.Matchersorg.hamcrest.core.IsNullI was wondering if there was a 'best practice' one to choose?

You can import all of these functions like this:
import static org.hamcrest.Matchers.*;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With