NO-JIRA Fixing SystemPropertyOverrideTest

This commit is contained in:
Clebert Suconic 2017-12-21 03:27:24 -05:00
parent 2dda27e1b7
commit 515560be2a
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -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";