NO JIRA - test that shows need for lower case property prefix with existing fluent introspector

This commit is contained in:
Gary Tully 2022-11-21 11:06:10 +00:00
parent 0866a2eb88
commit eb0aa118b4
1 changed files with 14 additions and 0 deletions

View File

@ -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 {