JavaHamcrest
JavaHamcrest copied to clipboard
Java (and original) version of Hamcrest
Hi, First of all, thanks for bringing this project back to life. If I'm not mistaken there's a duplication in the regex matchers: - MatchesPattern - StringRegularExpression There were none...
Regard following Example: ``` import java.util.Arrays; import org.hamcrest.Matchers; import org.hamcrest.core.AnyOf; import org.junit.Test; import static org.junit.Assert.assertThat; public class TestHamcrest { @Test public void hamcrestTest() { new AnyOf(null, null); String[] truth =...
https://avro.apache.org/ for example creates classes which implement `Comparable` but not `Comparable`. Instead every avro class extends `SpecificRecordBase` which also contains the implementation of `compareTo`. Because of this its not easy...
There's a Hamcrest-Extras library that has [matchers](https://github.com/gkonst/hamcrest-extras#contents) for Guava's `Optional`. It would be cool to have the standard Hamcrest library provide these kinds of matchers for the pure JDK 8...
as of 2021-01-05: site responds with DNS error DNS error (the host name of the page you are looking for does not exist) Please check that the host name has...
The factory method `Every.everyItem` currently returns a `Matcher`. Wouldn't a `Matcher
Create a matcher that takes a lambda as type safe replacement of `Matchers.hasProperty(propertyName, valueMatcher)` Sample code: ```java public class LambdaMatcher extends BaseMatcher { private final Function lambda; private final String...
Hamcrest future Bump minimum version of Java to Java 8. Most projects in my view that are using Java 5, 6 or 7, are stable, they are happy with the...
I've found code easier to read and more functional when moving from assertEquals to the Hamcrest matchers. However, I've found it a pain have to make sure the types of...
The reason is only required when an assertion fails. If a Supplier could be provided instead of a String, an expensive or destructive construction of a reason (such as reading...