mock(EventLogger.class),
mock(LogRecorder.class),
brokerOptions);
parentObject.open();
DurableConfigurationStore configurationStore = parentObject.getConfigurationStore();
configurationStore.closeConfigurationStore();
final List<ConfiguredObjectRecord> initialRecords = new ArrayList<>();
_store.visitConfiguredObjectRecords(new ConfiguredObjectRecordHandler()
{
@Override
public void begin()
{
}
@Override
public boolean handle(final ConfiguredObjectRecord record)
{
initialRecords.add(record);
return true;
}
@Override
public void end()
{
}
});
configurationStore.openConfigurationStore(parentObject,true,initialRecords.toArray(new ConfiguredObjectRecord[initialRecords.size()]));
configurationStore.closeConfigurationStore();
return true;
}