Skip to content

Commit 294b0dc

Browse files
gnodetclebertsuconic
authored andcommitted
ARTEMIS-5947: Use text block for XML config in test
1 parent aba64df commit 294b0dc

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

artemis-server/src/test/java/org/apache/activemq/artemis/core/server/ActiveMQServersTest.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@ public class ActiveMQServersTest {
3232
@Test
3333
public void testNewActiveMQServerFromConfigURLRespectsXmlPersistenceEnabled(@TempDir Path tempDir) throws Exception {
3434
Path configFile = tempDir.resolve("broker.xml");
35-
String xml = "<configuration xmlns=\"urn:activemq\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
36-
" xsi:schemaLocation=\"urn:activemq ../../../../activemq-server/src/main/resources/schema/artemis-server.xsd\">\n" +
37-
" <core xmlns=\"urn:activemq:core\">\n" +
38-
" <persistence-enabled>false</persistence-enabled>\n" +
39-
" <acceptors>\n" +
40-
" <acceptor name=\"vm\">vm://0</acceptor>\n" +
41-
" </acceptors>\n" +
42-
" </core>\n" +
43-
"</configuration>\n";
35+
String xml = """
36+
<configuration xmlns="urn:activemq">
37+
<core xmlns="urn:activemq:core">
38+
<persistence-enabled>false</persistence-enabled>
39+
</core>
40+
</configuration>""";
4441
Files.writeString(configFile, xml);
4542

4643
ActiveMQJAASSecurityManager securityManager = new ActiveMQJAASSecurityManager(InVMLoginModule.class.getName(), new SecurityConfiguration());

0 commit comments

Comments
 (0)