clebertsuconic commented on code in PR #6201:
URL: https://github.com/apache/artemis/pull/6201#discussion_r2746613584


##########
artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImplTest.java:
##########
@@ -3042,6 +3044,13 @@ public void testExportInvalidPropertyOnAcceptor() throws 
Exception {
       configuration.addAcceptorConfiguration("test", 
"tcp://0.0.0.0:61616?useKQueue");
       File fileOutput = new File(getTestDirfile(), "broker.properties");
       assertDoesNotThrow(() -> configuration.exportAsProperties(fileOutput));
+      Properties properties = new Properties();
+      try (InputStream inStream = Files.newInputStream(fileOutput.toPath())) {
+         properties.load(inStream);
+      }
+      assertFalse(properties.isEmpty());
+      
assertTrue(properties.containsKey("acceptorConfigurations.test.params.useKQueue"));
+      assertEquals("", 
properties.get("acceptorConfigurations.test.params.useKQueue"));

Review Comment:
   just thinking now... I guess we should settle with empty strings... 
otherwise things can get messy
   
   what if you make it null on an existing configuration.
   
   It's kind of difficult to mess with setting as it could mess with existing 
configurations. Hard to predict



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to