summaryrefslogtreecommitdiffstats
path: root/src/lib/database
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2019-07-03 16:59:03 +0200
committerFrancis Dupont <fdupont@isc.org>2019-07-04 01:10:51 +0200
commitde19650f6f12acb872902a1b558efe16940086a3 (patch)
treeec82c41bd31b48beebcb7d1e5219efc5ea2e22c1 /src/lib/database
parent[709-cb_cmds-add-support-for-commands-to-manage-the-servers] Added a toElemen... (diff)
downloadkea-de19650f6f12acb872902a1b558efe16940086a3.tar.xz
kea-de19650f6f12acb872902a1b558efe16940086a3.zip
[#709,!407] Minor updates to the server unittests as a result of review.
- Fixed a typo in the toElement test name, - Added missing whitespace - Fixed a typo in getByTag test description.
Diffstat (limited to 'src/lib/database')
-rw-r--r--src/lib/database/tests/server_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/database/tests/server_unittest.cc b/src/lib/database/tests/server_unittest.cc
index 8cc0ceb5a7..63e189bcc4 100644
--- a/src/lib/database/tests/server_unittest.cc
+++ b/src/lib/database/tests/server_unittest.cc
@@ -35,8 +35,8 @@ TEST(ServerTest, tooLongDescription) {
BadValue);
}
-// Tests that toElement method works well.
-TEST(ServerTest, toEDlement) {
+// Tests that toElement method returns expected JSON map.
+TEST(ServerTest, toElement) {
ServerPtr server1 = Server::create(ServerTag("foo"), "a server");
std::string expected1 = "{"
"\"server-tag\": \"foo\","
@@ -44,7 +44,7 @@ TEST(ServerTest, toEDlement) {
" }";
isc::test::runToElementTest<Server>(expected1, *server1);
- ServerPtr server2 =Server::create(ServerTag("bar"));
+ ServerPtr server2 = Server::create(ServerTag("bar"));
std::string expected2= "{"
"\"server-tag\": \"bar\","
"\"description\": \"\""
@@ -52,7 +52,7 @@ TEST(ServerTest, toEDlement) {
isc::test::runToElementTest<Server>(expected2, *server2);
}
-// Tests that it is possible to fetch server by tag fromn the collection.
+// Tests that it is possible to fetch server by tag from the collection.
TEST(ServerFetcherTest, getByTag) {
ServerCollection servers;