java-hamcrest
java-hamcrest copied to clipboard
Libraries that extend the Hamcrest matching library with useful matchers
Hamcrest enters matching method twice, first time to match value and second time to compose description. When using JUnit5 `@Timeout` annotation or other ways to interrupt a thread, it will...
How to assert size of array - greaterThan / lessThan / equals
Could you please show how I can verify the contents of an array? In the following example, how can I verify the contents of the `cities` array? ```java @Test public...
If `withProperty` could take a lambda (`Function`) to find the property, it would be type safe, have compile time checking and support code assist and refactoring, e.g. ```java pojo(Product.class).withProperty(Product::getId, is(1))...
I know it's been mentioned in #25 but it still seems impossible to use `hasItem` and `hasItems` with `jsonArray`: ``` assertThat((JsonNode)null, jsonArray(hasItem(jsonText("as")))); assertThat((JsonNode)null, jsonArray(hasItems(jsonText("as"), jsonText("qw")))); assertThat((JsonNode)null, jsonObject().where("key", jsonArray(hasItems(jsonText("as"), jsonText("qw"))))); ```...
- [x] Bump jackson version - [x] Ignore JetBrains products' .idea folder
I consistently get this test failure on master build. Java version: ``` $ java -version java version "1.8.0_162" Java(TM) SE Runtime Environment (build 1.8.0_162-b12) Java HotSpot(TM) 64-Bit Server VM (build...
99% of the changes are a renamed package (from `com.fasterxml.jackson` to `tools.jackson`). The rest is that `TextNode`s are now `StringNode`s, and object nodes don’t have fields anymore, they have properties.