From 4724230b31269a0510bf7ede649026556d1b1dcf Mon Sep 17 00:00:00 2001 From: Maciej Lisowski Date: Wed, 13 Dec 2023 12:56:03 +0100 Subject: [PATCH] Fix test with dirty class assertion Signed-off-by: Maciej Lisowski --- .../TransactionJdbcObjectStoreValidationFailureTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/TransactionJdbcObjectStoreValidationFailureTest.java b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/TransactionJdbcObjectStoreValidationFailureTest.java index a0515c8128f91..b3125929dbd6f 100644 --- a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/TransactionJdbcObjectStoreValidationFailureTest.java +++ b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/TransactionJdbcObjectStoreValidationFailureTest.java @@ -24,7 +24,7 @@ public class TransactionJdbcObjectStoreValidationFailureTest { .setForcedDependencies(List.of(Dependency.of("io.quarkus", "quarkus-jdbc-h2", Version.getVersion()))) .assertException(t -> { Throwable rootCause = ExceptionUtil.getRootCause(t); - if (rootCause instanceof ConfigurationException) { + if (rootCause.getClass().getName().equals(ConfigurationException.class.getName())) { assertTrue(rootCause.getMessage().contains( "The Narayana JTA extension is configured to use the datasource 'test' but that datasource is not configured.")); } else {