ARTEMIS-4173 Looking for full log code on assertions over logHandler.findTest

This commit is contained in:
Clebert Suconic 2024-12-09 10:42:38 -05:00
parent 0c47c90911
commit 65df4cfade
4 changed files with 7 additions and 7 deletions

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}