JavaHamcrest
JavaHamcrest copied to clipboard
Java (and original) version of Hamcrest
The second and third `assertThat` statements don't compile, but I'm not sure why. I'm using Hamcrest 2.2 with JDK 17 and JUnit5. ```java @Test void moreListAsserts() { List list =...
I've been using Hamcrest for many years and like it a lot. During the last couple of years, however, I've come across several issues with its design that convinced me...
Hi there, While checking open source licenses used by my application's dependencies, I noticed Hamcrest 1.3 was published with an odd license declaration, "[New BSD License](http://www.opensource.org/licenses/bsd-license.php)". This should have been...
It would be good if I can specify a reason as a lambda: That way it can be evaluated only if it fails, and it can be passed the result...
HTTP over TLS seems to be misconfigured on the hamcrest.org web site. How to reproduce: go to https://hamcrest.org/JavaHamcrest/ Actual result: SSL_ERROR_BAD_CERT_DOMAIN Expected: site loads correctly over https.
Hello, please take a look at the below test. I would expect all checks to succeed. However, the second and third do fail with: ``` java.lang.AssertionError: Expected: ("" or null)...
Use case below http://stackoverflow.com/questions/36363372/is-there-a-way-to-do-deep-comparison-on-a-nested-property-with-hamcrest/36364718#36364718 I use hamcrest for most of my testing ,but have encountered a issue with it not being able to test a property one level down in...
hamcrest-junit used to have `MatcherAssume` class with static method `assumeThat`: https://www.javadoc.io/doc/org.hamcrest/hamcrest-junit/latest/org/hamcrest/junit/MatcherAssume.html#assumeThat(T,%20org.hamcrest.Matcher) This appears to have been accidentally(?) omitted when relocating `org.hamcrest.junit.*` to `org.hamcrest`. JUnit subsequently have deprecated `Assert.assertThat` on the...
Hamcrest still supports Java 1.7 source and target compatibility. Java 1.7 is out of support for years already, I suggest to bump to Java 1.8. Once that is done, we...