props.put(ConfigConstants.modelUpdatePeriod.name(), "30");
return props;
}
};
Mockito.when(filterConfig.getInitParameter(ConfigConstants.cacheUpdatePeriod.name())).thenReturn("10");
final WroConfiguration config = factory.create();
Assert.assertEquals(10, config.getCacheUpdatePeriod());
Assert.assertEquals(true, config.isDebug());
// This value should be overriden
Assert.assertEquals(10, config.getCacheUpdatePeriod());
// This value should be the same as defined in properties
Assert.assertEquals(30, config.getModelUpdatePeriod());
}