Skip to content

Commit

Permalink
Add missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
obermeier committed Aug 30, 2017
1 parent c27d4c1 commit 7e92d87
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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'}")
}
}

}

0 comments on commit 7e92d87

Please sign in to comment.