From 7e92d874a8f27738a1110a46d7c5b9409f68fd4f Mon Sep 17 00:00:00 2001 From: Stefan Obermeier Date: Wed, 30 Aug 2017 13:59:50 +0200 Subject: [PATCH] Add missing test --- .../sync/SyncConfigurationSpecs.scala | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scray-querying/src/test/scala/scray/querying/sync/SyncConfigurationSpecs.scala 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