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

During comparison of long objects, it will be usefull if the expected and was section will be on the same line. Im describing the situation, where test not pass, and...

### Add license information to Jar. For a customer project an OpenSource report has to be generated. Therefore a scanner was created to extract the licence information from our dependencies....

**Describe the bug** I have the following simple assertion in my test: ``` hasProperty("name") ``` For the following record: ``` public record AnyDto( Long id, @NotBlank String name, String description)...

The Is matcher doesn't do anything, and so should be deleted. Factory methods for is should not be added to the domain-specific factory classes introduced as part of #85

maintainability

CoreMatchers and Matchers are now in the source and both compiled into the same JAR. CoreMatchers is therefore redundant. Matchers is growing larger and larger, to the point that autocomplete...

enhancement
maintainability

Depends on #88

maintainability

assertThat(Int::class.java, typeCompatibleWith(Number::class.java)) in kotlin always fails But open class Base class Extended: Base() assertThat(Extended::class.java, typeCompatibleWith(Base::class.java)) succeed

This issue is for planning and discussion of features and fixes that will go into Hamcrest v3.1 Included: - [x] #419 - [x] #420 - [x] #421 - [x] #422...

Fixes #329 This PR is inspired by @peterdemaeyer's #330, which fell through the cracks two years ago. I want to rekindle this effort to have matchers for exceptions thrown in...

As per the title, I'm creating an issue to track the work of automatically publishing Hamcrest through GitHub actions. There was already much discussion on #405, but this deserves its...