You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2022/11/21 14:13:25 UTC
[activemq-artemis] branch main updated: NO JIRA - test that shows need for lower case property prefix with existing fluent introspector
This is an automated email from the ASF dual-hosted git repository.
gtully pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new eb0aa118b4 NO JIRA - test that shows need for lower case property prefix with existing fluent introspector
eb0aa118b4 is described below
commit eb0aa118b46fc639eb9e0a8c6af56ad26959c1aa
Author: Gary Tully <ga...@gmail.com>
AuthorDate: Mon Nov 21 11:06:10 2022 +0000
NO JIRA - test that shows need for lower case property prefix with existing fluent introspector
---
.../artemis/core/config/impl/ConfigurationImplTest.java | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImplTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImplTest.java
index 1c35aa9eee..0219017b35 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImplTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImplTest.java
@@ -925,6 +925,20 @@ public class ConfigurationImplTest extends ActiveMQTestBase {
Assert.assertEquals(false, configuration.getAddressConfigurations().get(0).getQueueConfigs().get(0).isDurable());
}
+ @Test
+ public void testIDCacheSizeViaProperties() throws Throwable {
+ ConfigurationImpl configuration = new ConfigurationImpl();
+
+ Assert.assertTrue(configuration.isPersistIDCache());
+ Properties properties = new Properties();
+
+ properties.put("iDCacheSize", "50");
+ properties.put("persistIDCache", false);
+ configuration.parsePrefixedProperties(properties, null);
+
+ Assert.assertEquals(50, configuration.getIDCacheSize());
+ Assert.assertFalse(configuration.isPersistIDCache());
+ }
@Test
public void testAcceptorViaProperties() throws Throwable {