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

Are you planning on participating in the Hacktoberfest? See https://hacktoberfest.com/ You would just need to add the label "hacktoberfest" to the repo.

Hi all, we have prepared the [Initial Integration](https://github.com/CodeIntelligenceTesting/oss-fuzz/commit/cefb2f668d5a160d9492461ac657184fb56cc5a3) of hamcrest into [Google OSS-Fuzz](https://github.com/google/oss-fuzz) which will provide more security for your project. Why do you need Fuzzing? The Code Intelligence JVM...

Hello, I'm interested in the project and would like to inquire about its current status and future plans. Is the project still active and being actively maintained? Are there any...

Sometimes, when we develop according to DDD principles, for aggregates and entities, we implement the `equals` method to compare instances based only on the identifier, not on all fields. However,...

GraalVM Native Image support and tooling also allows to run tests in Native Image style (e.g. see [docs](https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.testing) of Spring Boot Native Image support). As Hamcrest is a popular matcher...

Hamcrest `Matchers` already has a `closeTo(double operand, double error)` method which allows you to specify an error for fuzzy equals with floating point values. (See [How do I compare doubles...

``` package com.tejasoft.tests.ju.ju5.ut.learn.hamcrest.tests; import java.util.Objects; final class HMPerson { private final String name; private final int age; HMPerson(String name, int age) { this.name = name; this.age = age; } public...

@Test void testHasProperty() { HMPerson person = new HMPerson("John", 30); assertThat(person, hasProperty("name", equalTo("John"))); } FAILS when record HMPerson(String name, int age) {} Expected: hasProperty("name", "John") but: No property "name" java.lang.AssertionError:...

1) Thanks for Hamcrest 2) Current hamcrest.jar are hard to bundle into other software due to missing licensing information. Suggested changes are: 2.1) Package license as `META-INF/LICENSE`. Current one is...

Fixes https://github.com/hamcrest/JavaHamcrest/issues/264 See also https://github.com/hamcrest/JavaHamcrest/pull/396