NO-JIRA Fixing SystemPropertyOverrideTest
This commit is contained in:
parent
2dda27e1b7
commit
515560be2a
|
@ -45,6 +45,13 @@ public final class GroupingHandlerConfiguration implements Serializable {
|
|||
private long reaperPeriod = ActiveMQDefaultConfiguration.getDefaultGroupingHandlerReaperPeriod();
|
||||
|
||||
public GroupingHandlerConfiguration() {
|
||||
if (System.getProperty(GROUP_TIMEOUT_PROP_NAME) != null) {
|
||||
this.groupTimeout = Long.parseLong(System.getProperty(GROUP_TIMEOUT_PROP_NAME));
|
||||
}
|
||||
|
||||
if (System.getProperty(REAPER_PERIOD_PROP_NAME) != null) {
|
||||
this.reaperPeriod = Long.parseLong(System.getProperty(REAPER_PERIOD_PROP_NAME));
|
||||
}
|
||||
}
|
||||
|
||||
public SimpleString getName() {
|
||||
|
|
|
@ -19,7 +19,6 @@ package org.apache.activemq.artemis.tests.unit.core.server.group.impl;
|
|||
import org.apache.activemq.artemis.api.core.SimpleString;
|
||||
import org.apache.activemq.artemis.core.server.group.impl.GroupingHandlerConfiguration;
|
||||
import org.apache.activemq.artemis.tests.util.ActiveMQTestBase;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
public class SystemPropertyOverrideTest extends ActiveMQTestBase {
|
||||
|
@ -34,7 +33,6 @@ public class SystemPropertyOverrideTest extends ActiveMQTestBase {
|
|||
// Public --------------------------------------------------------
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void testSystemPropertyOverride() throws Exception {
|
||||
final String groupTimeoutPropertyValue = "1234";
|
||||
final String reaperPeriodPropertyValue = "5678";
|
||||
|
|
Loading…
Reference in New Issue