You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ap...@apache.org on 2026/02/09 13:53:52 UTC
(camel) 03/03: Join multiple assertions subject to one assertion chain
This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit ec17beca0a0f4ee2f487a9ded8fbc8b53f9cdf38
Author: Aurélien Pupier <ap...@ibm.com>
AuthorDate: Mon Feb 9 14:12:16 2026 +0100
Join multiple assertions subject to one assertion chain
Signed-off-by: Aurélien Pupier <ap...@ibm.com>
---
.../java/org/apache/camel/component/qdrant/it/QdrantComponentIT.java | 5 +++--
.../apache/camel/component/qdrant/it/QdrantDeleteCollectionIT.java | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/components/camel-ai/camel-qdrant/src/test/java/org/apache/camel/component/qdrant/it/QdrantComponentIT.java b/components/camel-ai/camel-qdrant/src/test/java/org/apache/camel/component/qdrant/it/QdrantComponentIT.java
index 6c8a0de382c7..f99b1161c677 100644
--- a/components/camel-ai/camel-qdrant/src/test/java/org/apache/camel/component/qdrant/it/QdrantComponentIT.java
+++ b/components/camel-ai/camel-qdrant/src/test/java/org/apache/camel/component/qdrant/it/QdrantComponentIT.java
@@ -58,8 +58,9 @@ class QdrantComponentIT extends QdrantTestSupport {
final QdrantActionException exception = result.getException(QdrantActionException.class);
final Throwable cause = exception.getCause();
- assertThat(cause).isNotNull();
- assertThat(cause).isInstanceOf(StatusRuntimeException.class);
+ assertThat(cause)
+ .isNotNull()
+ .isInstanceOf(StatusRuntimeException.class);
StatusRuntimeException statusRuntimeException = (StatusRuntimeException) cause;
assertThat(statusRuntimeException.getStatus().getCode()).isEqualTo(Status.NOT_FOUND.getCode());
diff --git a/components/camel-ai/camel-qdrant/src/test/java/org/apache/camel/component/qdrant/it/QdrantDeleteCollectionIT.java b/components/camel-ai/camel-qdrant/src/test/java/org/apache/camel/component/qdrant/it/QdrantDeleteCollectionIT.java
index e37e47752fe3..9a80dba023b9 100644
--- a/components/camel-ai/camel-qdrant/src/test/java/org/apache/camel/component/qdrant/it/QdrantDeleteCollectionIT.java
+++ b/components/camel-ai/camel-qdrant/src/test/java/org/apache/camel/component/qdrant/it/QdrantDeleteCollectionIT.java
@@ -89,8 +89,9 @@ class QdrantDeleteCollectionIT extends QdrantTestSupport {
final QdrantActionException exception = result.getException(QdrantActionException.class);
final Throwable cause = exception.getCause();
- assertThat(cause).isNotNull();
- assertThat(cause).isInstanceOf(StatusRuntimeException.class);
+ assertThat(cause)
+ .isNotNull()
+ .isInstanceOf(StatusRuntimeException.class);
StatusRuntimeException statusRuntimeException = (StatusRuntimeException) cause;
assertThat(statusRuntimeException.getStatus().getCode()).isEqualTo(Status.NOT_FOUND.getCode());