static class TestingPropertiesProvider extends PropertiesProviderBaseImpl {
- private static Properties prop = new Properties();
+ private final Properties prop;
- public TestingPropertiesProvider() {
+ public TestingPropertiesProvider(Properties prop) {
super(null);
+ this.prop = prop;
}
public static TestingPropertiesProvider loadFile(String fileName) {
+ Properties prop = new Properties();
try {
prop.load(TestingPropertiesProvider.class.getClassLoader().getResourceAsStream(fileName));
} catch (IOException e) {
throw new RuntimeException(e);
}
- return new TestingPropertiesProvider();
+ return new TestingPropertiesProvider(prop);
}
@Override
List<PersisterWithConfiguration> persisters = persisterAggregator.getPersisterWithConfigurations();
assertEquals(1, persisters.size());
PersisterWithConfiguration persister = persisters.get(0);
- assertEquals(DummyAdapter.class.getName() ,persister.getStorage().getClass().getName());
+ assertEquals(DummyAdapter.class.getName(), persister.getStorage().getClass().getName());
assertFalse(persister.isReadOnly());
persisterAggregator.persistConfig(null);
netconf.config.persister.active=1
netconf.config.persister.1.storageAdapterClass=org.opendaylight.controller.netconf.persist.impl.DummyAdapter
-netconf.config.persister.1.properties.fileStorage=configuration/initial/
\ No newline at end of file
+netconf.config.persister.1.properties.fileStorage=target/configuration/initial/
netconf.config.persister.active=2
# read startup configuration
netconf.config.persister.1.storageAdapterClass=org.opendaylight.controller.config.persist.storage.directory.DirectoryStorageAdapter
-netconf.config.persister.1.properties.directoryStorage=configuration/initial/
+netconf.config.persister.1.properties.directoryStorage=target/configuration/initial/
netconf.config.persister.1.readonly=true
netconf.config.persister.2.storageAdapterClass=org.opendaylight.controller.config.persist.storage.file.FileStorageAdapter
-netconf.config.persister.2.properties.fileStorage=configuration/current/controller.config.2.txt
-netconf.config.persister.2.properties.numberOfBackups=3
\ No newline at end of file
+netconf.config.persister.2.properties.fileStorage=target/configuration/current/controller.config.2.txt
+netconf.config.persister.2.properties.numberOfBackups=3
netconf.config.persister.active=3
netconf.config.persister.3.storageAdapterClass=org.opendaylight.controller.config.persist.storage.file.FileStorageAdapter
-netconf.config.persister.3.properties.fileStorage=configuration/current/controller.config.2.txt
-netconf.config.persister.3.properties.numberOfBackups=0
\ No newline at end of file
+netconf.config.persister.3.properties.fileStorage=target/configuration/current/controller.config.2.txt
+netconf.config.persister.3.properties.numberOfBackups=0