File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed
src/test/scala/com/sfxcode/nosql/mongo/server Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ package com .sfxcode .nosql .mongo .server
2+
3+ import org .specs2 .mutable .Specification
4+
5+ class ServerConfigSpec extends Specification {
6+
7+ sequential
8+
9+ " ServerConfig" should {
10+
11+ " be created" in {
12+ val config = ServerConfig ()
13+ config.host mustEqual " localhost"
14+ config.port mustEqual 28018
15+ config.serverName mustEqual " local-mongo-server"
16+ }
17+
18+ " be created from config path" in {
19+ val config = ServerConfig .fromPath(" unit.test.local.mongo.server" )
20+ config.host mustEqual " localhost"
21+ config.port mustEqual 28028
22+ config.serverName mustEqual " local-unit-test-server"
23+ config.h2BackendConfig.get.inMemory must beFalse
24+ config.h2BackendConfig.get.path mustEqual " /tmp/local-unit-test-server.mv"
25+ }
26+ }
27+ }
You can’t perform that action at this time.
0 commit comments