diff --git a/scray-querying/src/test/scala/scray/querying/sync/SyncConfigurationSpecs.scala b/scray-querying/src/test/scala/scray/querying/sync/SyncConfigurationSpecs.scala new file mode 100644 index 000000000..be0ebdcd9 --- /dev/null +++ b/scray-querying/src/test/scala/scray/querying/sync/SyncConfigurationSpecs.scala @@ -0,0 +1,21 @@ +package scray.querying.sync + +import scray.querying.sync.conf.SyncConfiguration +import org.scalatest.WordSpec +import scray.querying.sync.conf.SyncConfigurationLoader +import org.junit.Assert + +class SyncConfigurationSpecs extends WordSpec { + + "SyncConfiguration" should { + "load configuration from file" in { + val confLoader = SyncConfigurationLoader + val conf = confLoader.loadConfig + + Assert.assertEquals(conf.dbSystem, "scray") + Assert.assertEquals(conf.tableName, "synctable") + Assert.assertEquals(conf.replicationSetting, "{'class': 'NetworkTopologyStrategy', 'DC1': '5', 'DC2': '3', 'DC3': '0'}") + } + } + +} \ No newline at end of file