Registry / testing / java-hamcrest

java-hamcrest

JSON →
library2.0.0.0javamavenunverified

Hamcrest matcher library for Java, providing a framework for writing declarative match rules in tests.

<dependency> <groupId>org.hamcrest</groupId> <artifactId>java-hamcrest</artifactId> <version>2.0.0.0</version> </dependency>
INSTALL
IMPORT
SIG · JAVA-HAMCREST
J
java-hamcrest
testingjavav2.0.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MatcherAssert
org.hamcrest.MatcherAssert

Basic usage of Hamcrest matchers in a JUnit test.

import org.hamcrest.MatcherAssert; import org.hamcrest.CoreMatchers; public class Example { public static void main(String[] args) { MatcherAssert.assertThat("Hello", CoreMatchers.is("Hello")); } }
Debug
Known issues
breakingVersion 2.0.0.0 uses a different package structure than 1.x; imports may need updating.
fix
Update imports from org.hamcrest.* to org.hamcrest.core.* or use the new matcher classes.
affects: >=2.0.0.0
Upgrade
Version history
2.0.0.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
java-hamcrest — mvn dependency:get java-hamcrest · libregistry