gemmellr commented on code in PR #5477: URL: https://github.com/apache/activemq-artemis/pull/5477#discussion_r1934097403
########## tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/brokerConnection/mirror/SingleMirrorSoakTest.java: ########## @@ -164,23 +163,30 @@ private static void createServer(String serverName, File brokerXml = new File(serverLocation, "/etc/broker.xml"); assertTrue(brokerXml.exists()); // Adding redistribution delay to broker configuration - assertTrue(FileUtil.findReplace(brokerXml, "<address-setting match=\"#\">", "<address-setting match=\"#\">\n\n" + " <redistribution-delay>0</redistribution-delay> <!-- added by SimpleMirrorSoakTest.java --> \n")); + assertTrue(FileUtil.findReplace(brokerXml, "<address-setting match=\"#\">", """ + <address-setting match="#"> + + <redistribution-delay>0</redistribution-delay> <!-- added by SimpleMirrorSoakTest.java -->\s + """)); if (TRACE_LOGS) { File log4j = new File(serverLocation, "/etc/log4j2.properties"); - assertTrue(FileUtil.findReplace(log4j, "logger.artemis_utils.level=INFO", "logger.artemis_utils.level=INFO\n" + - "\n" + "logger.ack.name=org.apache.activemq.artemis.protocol.amqp.connect.mirror.AckManager\n" - + "logger.ack.level=TRACE\n" - + "logger.config.name=org.apache.activemq.artemis.core.config.impl.ConfigurationImpl\n" - + "logger.config.level=TRACE\n" - + "logger.counter.name=org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionCounterImpl\n" - + "logger.counter.level=DEBUG\n" - + "logger.queue.name=org.apache.activemq.artemis.core.server.impl.QueueImpl\n" - + "logger.queue.level=DEBUG\n" - + "logger.rebuild.name=org.apache.activemq.artemis.core.paging.cursor.impl.PageCounterRebuildManager\n" - + "logger.rebuild.level=DEBUG\n" - + "appender.console.filter.threshold.type = ThresholdFilter\n" - + "appender.console.filter.threshold.level = info")); + assertTrue(FileUtil.findReplace(log4j, "logger.artemis_utils.level=INFO", """ + logger.artemis_utils.level=INFO + + logger.ack.name=org.apache.activemq.artemis.protocol.amqp.connect.mirror.AckManager + logger.ack.level=TRACE + logger.config.name=org.apache.activemq.artemis.core.config.impl.ConfigurationImpl + logger.config.level=TRACE + logger.counter.name=org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionCounterImpl + logger.counter.level=DEBUG + logger.queue.name=org.apache.activemq.artemis.core.server.impl.QueueImpl + logger.queue.level=DEBUG + logger.rebuild.name=org.apache.activemq.artemis.core.paging.cursor.impl.PageCounterRebuildManager + logger.rebuild.level=DEBUG + appender.console.filter.threshold.type = ThresholdFilter + appender.console.filter.threshold.level = info\ + """)); Review Comment: Similarly -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For additional commands, e-mail: gitbox-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact