Registry / testing / catch-throwable

catch-throwable

JSON →
library1.4.6javamavenunverified

Library for catching throwables (including errors) in Java exception testing.

<dependency> <groupId>eu.codearte.catch-exception</groupId> <artifactId>catch-throwable</artifactId> <version>1.4.6</version> </dependency>
INSTALL
IMPORT
SIG · CATCH-THROWABLE
C
catch-throwable
testingjavav1.4.6
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
✓ eu.codearte.catchexception.CatchException

Catching and asserting exceptions using CatchException.

import static eu.codearte.catchexception.CatchException.catchException; import static org.assertj.core.api.Assertions.assertThat; public class ExampleTest { @Test public void testException() { catchException(() -> { throw new RuntimeException("boom"); }); assertThat(caughtException()).isInstanceOf(RuntimeException.class); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
catch-throwable — mvn dependency:get catch-throwable · libregistry