Registry / testing / catch-exception

catch-exception

JSON →
library1.2.0javamavenunverified

A Java library for catching and verifying exceptions in unit tests with a fluent API.

<dependency> <groupId>com.googlecode.catch-exception</groupId> <artifactId>catch-exception</artifactId> <version>1.2.0</version> </dependency>
INSTALL
IMPORT
SIG · CATCH-EXCEPTION
C
catch-exception
testingjavav1.2.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.

CatchException
com.googlecode.catchexception.CatchException

Catch and verify an exception thrown by a lambda.

import static com.googlecode.catchexception.CatchException.catchException; import static com.googlecode.catchexception.CatchException.caughtException; catchException(() -> { throw new IllegalArgumentException(); }); assert caughtException() instanceof IllegalArgumentException;
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
catch-exception — mvn dependency:get catch-exception · libregistry