This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/artemis.git

commit 294b0dc149c69b95c6337aced6d0be781e121b3c
Author: Guillaume Nodet <[email protected]>
AuthorDate: Tue Mar 10 21:29:01 2026 +0100

    ARTEMIS-5947: Use text block for XML config in test
---
 .../activemq/artemis/core/server/ActiveMQServersTest.java | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git 
a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/ActiveMQServersTest.java
 
b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/ActiveMQServersTest.java
index 45d71496f0..575e9d80c9 100644
--- 
a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/ActiveMQServersTest.java
+++ 
b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/ActiveMQServersTest.java
@@ -32,15 +32,12 @@ public class ActiveMQServersTest {
    @Test
    public void 
testNewActiveMQServerFromConfigURLRespectsXmlPersistenceEnabled(@TempDir Path 
tempDir) throws Exception {
       Path configFile = tempDir.resolve("broker.xml");
-      String xml = "<configuration xmlns=\"urn:activemq\" 
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"; +
-         "               xsi:schemaLocation=\"urn:activemq 
../../../../activemq-server/src/main/resources/schema/artemis-server.xsd\">\n" +
-         "   <core xmlns=\"urn:activemq:core\">\n" +
-         "      <persistence-enabled>false</persistence-enabled>\n" +
-         "      <acceptors>\n" +
-         "         <acceptor name=\"vm\">vm://0</acceptor>\n" +
-         "      </acceptors>\n" +
-         "   </core>\n" +
-         "</configuration>\n";
+      String xml = """
+         <configuration xmlns="urn:activemq">
+            <core xmlns="urn:activemq:core">
+               <persistence-enabled>false</persistence-enabled>
+            </core>
+         </configuration>""";
       Files.writeString(configFile, xml);
 
       ActiveMQJAASSecurityManager securityManager = new 
ActiveMQJAASSecurityManager(InVMLoginModule.class.getName(), new 
SecurityConfiguration());


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to