Registry / testing / assertj-guava

assertj-guava

JSON →
library3.27.7javamavenunverified

Rich and fluent assertions for testing Guava collections and types.

<dependency> <groupId>org.assertj</groupId> <artifactId>assertj-guava</artifactId> <version>3.27.7</version> </dependency>
INSTALL
IMPORT
SIG · ASSERTJ-GUAVA
A
assertj-guava
testingjavav3.27.7
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.

Assertions
org.assertj.guava.api.Assertions

Use AssertJ Guava assertions to test Guava collections.

import org.assertj.guava.api.Assertions; import com.google.common.collect.ImmutableList; public class Example { public void test() { Assertions.assertThat(ImmutableList.of("a", "b")) .hasSize(2) .contains("a"); } }
Debug
Known issues
gotchaAssertJ Guava requires AssertJ core as a dependency; ensure both are compatible versions.
fix
Add assertj-core as a dependency with a compatible version (e.g., 3.x).
affects: all
Upgrade
Version history
3.27.7latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
assertj-guava — mvn dependency:get assertj-guava · libregistry