From 65df4cfade43e0197ae1c7b527540d5cecbb0014 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Mon, 9 Dec 2024 10:42:38 -0500 Subject: [PATCH] ARTEMIS-4173 Looking for full log code on assertions over logHandler.findTest --- .../artemis/core/server/impl/ActiveMQServerStartupTest.java | 2 +- .../artemis/tests/integration/paging/JournalPagingTest.java | 4 ++-- .../tests/integration/paging/PageCountSyncOnNonTXTest.java | 4 ++-- .../artemis/tests/integration/paging/PagingCounterTest.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerStartupTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerStartupTest.java index ea38614b9d..1960242ce0 100644 --- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerStartupTest.java +++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerStartupTest.java @@ -59,7 +59,7 @@ public class ActiveMQServerStartupTest extends ServerTestBase { // this will be faking a condition server.setState(ActiveMQServer.SERVER_STATE.STARTING); CriticalAnalyzerAccessor.fireActions(server.getCriticalAnalyzer(), new CriticalComponentImpl(server.getCriticalAnalyzer(), 2)); - assertTrue(loggerHandler.findText("224116")); + assertTrue(loggerHandler.findText("AMQ224116")); assertEquals(ActiveMQServer.SERVER_STATE.STARTING, server.getState()); // should not be changed server.stop(); } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/JournalPagingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/JournalPagingTest.java index 1cf743f798..d4dee678c7 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/JournalPagingTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/JournalPagingTest.java @@ -96,8 +96,8 @@ public class JournalPagingTest extends ActiveMQTestBase { if (loggerHandler != null) { try { // These are the message errors for the negative size address size - assertFalse(loggerHandler.findText("222214")); - assertFalse(loggerHandler.findText("222215")); + assertFalse(loggerHandler.findText("AMQ222214")); + assertFalse(loggerHandler.findText("AMQ222215")); } finally { loggerHandler.close(); } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PageCountSyncOnNonTXTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PageCountSyncOnNonTXTest.java index 29b520f295..11608bfca2 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PageCountSyncOnNonTXTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PageCountSyncOnNonTXTest.java @@ -73,8 +73,8 @@ public class PageCountSyncOnNonTXTest extends SpawnedTestBase { if (loggerHandler != null) { try { // These are the message errors for the negative size address size - assertFalse(loggerHandler.findText("222214")); - assertFalse(loggerHandler.findText("222215")); + assertFalse(loggerHandler.findText("AMQ222214")); + assertFalse(loggerHandler.findText("AMQ222215")); } finally { loggerHandler.close(); } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingCounterTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingCounterTest.java index 5b48913705..b39cdfd1d2 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingCounterTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingCounterTest.java @@ -85,8 +85,8 @@ public class PagingCounterTest extends ActiveMQTestBase { if (loggerHandler != null) { try { // These are the message errors for the negative size address size - assertFalse(loggerHandler.findText("222214")); - assertFalse(loggerHandler.findText("222215")); + assertFalse(loggerHandler.findText("AMQ222214")); + assertFalse(loggerHandler.findText("AMQ222215")); } finally { loggerHandler.close(); }