JavaHamcrest icon indicating copy to clipboard operation
JavaHamcrest copied to clipboard

Java (and original) version of Hamcrest

Results 146 JavaHamcrest issues
Sort by recently updated
recently updated
newest added

I'm getting an error that doesn't look right to me: java.lang.AssertionError: test lng1 close to e-6 error Expected: is a numeric value within of but: differed by Test code is:...

Seems like Java 8 changes how generic arguments are resolved and now there is no type safety when using assertThat. `assertThat(1, is("abc"));` This now compiles and will fail at runtime....

There is missing JavaDoc for the most used methods from this project - assertThat.

Consider the following test case: @Test public void asd() { assertThat(Arrays.asList(57, 965), hasSize(greaterThan(3))); } When this guy fails, we'll get: java.lang.AssertionError: Expected: a collection with size a value greater than...

Bumps org.gradle.toolchains.foojay-resolver-convention from 0.8.0 to 0.9.0. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.gradle.toolchains.foojay-resolver-convention&package-manager=gradle&previous-version=0.8.0&new-version=0.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...

dependencies

Bumps [org.junit.jupiter:junit-jupiter](https://github.com/junit-team/junit5) from 5.11.3 to 5.12.0. Release notes Sourced from org.junit.jupiter:junit-jupiter's releases. JUnit 5.12.0 = Platform 1.12.0 + Jupiter 5.12.0 + Vintage 5.12.0 See Release Notes. New Contributors @​chris-carneiro made...

dependencies

to fix javadoc formatting for `notNullValue`. I noticed that https://hamcrest.org/JavaHamcrest/javadoc/3.0/org/hamcrest/Matchers.html appears to be a bit broken, and it seems like if this `` section were terminated earlier then things would...

This PR represents a potential Hamcrest 4.0 release. It is based on Java 17 as a base. Project dependencies that have been upgraded to the latest versions and has PRs...

Having static factories that accept lambdas will reduce duplicated/boilerplate code when creating matchers. A flawed PR (#203) was created for this however it lacked unit tests and the implementation failed...