Skip to content

Commit 313d38a

Browse files
committed
CAMEL-21196: modernize exception-based assertions in camel-clickup
Replace fail(e) pattern with throw new AssertionError for modernized exception handling.
1 parent a768567 commit 313d38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/camel-clickup/src/test/java/org/apache/camel/component/clickup/ClickUpWebhookRegistrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void testAutomaticRegistration() throws Exception {
8181

8282
assertInstanceOf(WebhookCreationCommand.class, command);
8383
} catch (IOException e) {
84-
fail(e);
84+
throw new AssertionError("Failed to parse recorded message", e);
8585
}
8686

8787
mockProcessor.clearRecordedMessages();

0 commit comments

Comments
 (0)