{"id":56833,"library":"hamkrest","title":"Hamkrest","description":"Hamkrest is a matcher library for Kotlin, porting Hamcrest with a more Kotlin-esque API.","status":"active","version":"1.8.0.1","language":"java","source_language":null,"source_url":"https://github.com/npryce/hamkrest","tags":["testing","matchers","kotlin","hamcrest"],"install":[{"cmd":"<dependency>\n  <groupId>com.natpryce</groupId>\n  <artifactId>hamkrest</artifactId>\n  <version>1.8.0.1</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.natpryce:hamkrest:1.8.0.1'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"assertThat","correct":"com.natpryce.hamkrest.assertion.assertThat"}],"quickstart":{"code":"import com.natpryce.hamkrest.assertion.assertThat\nimport com.natpryce.hamkrest.equalTo\n\nfun main() {\n    assertThat(2 + 2, equalTo(4))\n}","lang":"kotlin","description":"Minimal Kotlin snippet showing how to use Hamkrest's assertThat with equalTo matcher."},"warnings":[],"env_vars":null,"search_vec":"'api':17 'esqu':16 'hamcrest':10,21 'hamkrest':1,2 'kotlin':8,15,20 'kotlin-esqu':14 'librari':6 'matcher':5,19 'port':9 'test':18","created_at":"2026-06-15T10:52:04.456933+00:00","updated_at":"2026-06-15T10:52:04.456933+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/npryce/hamkrest","github":"https://github.com/npryce/hamkrest","docs":"https://appdoc.app/artifact/com.natpryce/hamkrest/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}