Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
33814
Description
The file configurations are not cleared when the source is loaded, thus if the
configuration is loaded twice, we end up with duplicate properties.
public void testDoubleLoading() throws Exception
{ FileConfiguration config = new PropertiesConfiguration(); config.setFileName("conf/test.properties"); config.load(); config.load(); assertEquals("Number of elements in the 'test.integer.array' list", 2, config.getList("test.integer.array").size()); }